2015-05-15 10:16:07
来 源
中存储网
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 th

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

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。