Ubuntu自动启动命令写法例子

Linux大全评论255 views阅读模式

位置 /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

企鹅博客
  • 本文由 发表于 2019年9月5日 23:24:35
  • 转载请务必保留本文链接:https://www.qieseo.com/206312.html

发表评论