文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>将apache/mysql in linux安装成service

将apache/mysql in linux安装成service

时间:2006-05-09  来源:一地风飞

  mysql:

cp mysql.server /etc/init.d/mysql

chmod +x /etc/init.d/mysql

chkconfig --add mysql

  apache:

cp apachectl /etc/init.d/httpd

chmod +x /etc/init.d/httpd

chkconfig --add httpd

  #注:你可能需要编辑/etc/init.d/httpd ,并加入以下两行注释

#chkconfig :345 85 15

#description:some words you like!!

  然后,就可以使用service httpd start|stop|restart 等命令操作apache,同样的,mysql操作类似。 你也可以使用ntsysv命令调出简易图形GUI,来设定服务是否开机自动运行。   附:另一种设定开机自己运行的方法,将以下启动脚本加入/etc/rc.local中 path-to-apache/bin/apachectl start
path-to-mysql/bin/mysqld_safe --user=mysql &
     
相关阅读 更多 +
排行榜 更多 +
盒子小镇2游戏手机版下载

盒子小镇2游戏手机版下载

冒险解谜 下载
世界盒子模组版下载最新版本

世界盒子模组版下载最新版本

模拟经营 下载
音乐搜索app最新版本下载

音乐搜索app最新版本下载

趣味娱乐 下载