发布网友 发布时间:2022-04-20 18:25
共1个回答
热心网友 时间:2022-04-07 22:12
mysql设为linux服务cp
/usr/local/mysql/share/mysql/mysql.server
/etc/init.d/mysqldchkconfig
--add
mysqldchkconfig
--level
2345
mysqld
onchown
mysql:mysql
-R
/usr/local/mysql/service
mysqld
startapache设为linux服务cp
/usr/local/apache2/bin/apachectl
/etc/init.d/httpdvi
/etc/init.d/httpd在在#!/bin/sh后面加入下面两行#chkconfig:345
85
15#description:
Start
and
stops
the
Apache
HTTP
Server.然后chmod
+x
/etc/rc.d/init.d/httpdchkconfig
--add
httpd然后可以用setup命令进入服务设置,设置为开机启动第二种方法:在/etc/rc.d/rc.local中增加启动apache的命令,如:/usr/local/apache2/bin/apachectl
start/usr/local/mysql/bin/mysqld_safe
--user=root
&