您的位置:首页 > 运维架构 > Apache

Ubuntu 下apache和mysql的开机启动

2016-08-02 18:34 961 查看
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

8月 03 08:54:38 lv systemd[1]: Starting (null)...
8月 03 08:54:43 lv systemd[1]: Started (null).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu apache