感谢支持
我们一直在努力

Ubuntu自动启动命令写法例子

位置 /etc/rc.local


 rc.local                                                                                                                          
  #!/bin/sh -e
   #
   # rc.local
   #
   # This script is executed at the end of each multiuser runlevel.
   # Make sure that the script will “exit 0” on success or any other
  # value on error.
   #
   # In order to enable or disable this script just change the execution
  # bits.
  #
  # By default this script does nothing.
 
  /etc/init.d/apache start
  /etc/init.d/MySQLd start
 
  exit 0


******************************************************


放在 exit 0 之前

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu自动启动命令写法例子
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏