Ubuntu 下apache和mysql的开机启动,ubuntuapache


ubuntu linux下mysql开机自启动 及 运行级别

ubuntu linux下mysql开机自启动

insserv: warning: script ‘mathkernel’ missing LSB tags and overrides

1、
#cp /usr/local/apache2/bin/apachectl  /etc/init.d/httpd

2、设置开机自己启动 或者用 sysv-rc-conf
#update-rc.d -f httpd defaults  

重启后查看状态
# service httpd  status 
● httpd.service - (null)
   Loaded: loaded (/etc/init.d/httpd)
   Active: active (running) since 三 2016-08-03 08:54:43 CST; 1h 35min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 564 ExecStart=/etc/init.d/httpd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/httpd.service
           ├─614 /usr/local/apache2/bin/httpd -k start
           ├─627 /usr/local/apache2/bin/httpd -k start
           ├─628 /usr/local/apache2/bin/httpd -k start
           └─629 /usr/local/apache2/bin/httpd -k start

 803 08:54:38 lv systemd[1]: Starting (null)...
 803 08:54:43 lv systemd[1]: Started (null).

相关内容

    暂无相关文章