摘要:centos7使用systemd管理开机自启动服务,不提倡rc.local。假设现在有2个服务,分别为:my111;my222;希望在开机时自动启动my222服务,但是my222启动需要my111也启动;假设上面的2个服务在启动时,会分别调用2个脚本:my111; ==>/tmp/run1my222; ==>/tmp/run2下面讲述如何完成上面的工作:systemctl enable my222...
阅读全文
03 2016 档案
摘要:安装ntp#检查服务是否安装rpm -q ntp#安装ntp服务器yum -y install ntp修改配置文件:/etc/ntp.conf内容如下:restrict default kod nomodify notrap nopeer noqueryrestrict -6 default kod nomodify notrap nopeer noqueryrestrict 127.0.0.1 ...
阅读全文