CentOS开机自动运行程序的脚本

有些时候咱们须要在服务器里设置一个脚本,让他一开机就本身启动。方法以下:shell cd /etc/init.d vi youshell.sh #将youshell.sh修改成你本身的脚本名 编写本身的脚本后保存退出。 在编写脚本的时候,请先加入如下注释服务器 #add for chkconfig #chkconfig: 2345 70 30 #description: the descrip
相关文章
相关标签/搜索