spring 配置文件有哪些可配置项, 可以从官网查询 https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html
如何使用nologin用户执行命令
nologin 用户执行命令 [root@node1 ~]# ls -al /tmp/qemu-user-test ls: cannot access ‘/tmp/qemu-user-test’: No such file or directory [root@node1 ~]# su -s /bin/bash -c ‘echo “i am nologin user.” > /tmp/qemu-user-test’ qemu [root@node1 ~]# ls -al /tmp/qemu-user-test -rw-r–r– 1 qemu qemu 19 Jan 31 11:29 /tmp/qemu-user-test [root@node1 ~]# cat /tmp/qemu-user-test i am nologin user.
检查ip冲突的方法
使用arping检查ip冲突. [root@node1 ~]# arping -I enp4s0f0 192.168.11.3 ARPING 192.168.11.3 from 192.168.12.196 enp4s0f0 Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.683ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.551ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.562ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.548ms 如果返回的mac 地址有多个, 说明这个局域网出现ip冲突.
centos7编译打包keepalived-2.2.8
centos7 compile package keepalived-2.2.8 rpm
统计linux系统进程内存使用百分比
使用 top 或者ps 统计进程使用的内存总和.