设置开机自启可以通过2种方式
方式一:
在文件rc.local中写入服务启动命令
# ls -lh /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 587 1月 19 14:54 /etc/rc.d/rc.local
方式二:
加入systemctl
设置开机自启失败的原因:加入systemctl的同时,也写入了lc.local文件
设置开机自启可以通过2种方式
方式一:
在文件rc.local中写入服务启动命令
# ls -lh /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 587 1月 19 14:54 /etc/rc.d/rc.local
方式二:
加入systemctl
设置开机自启失败的原因:加入systemctl的同时,也写入了lc.local文件