Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2065928
  • 博文数量: 354
  • 博客积分: 4955
  • 博客等级: 上校
  • 技术积分: 4579
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-21 11:46
文章分类

全部博文(354)

文章存档

2015年(1)

2013年(4)

2012年(86)

2011年(115)

2010年(67)

2009年(81)

我的朋友

分类:

2010-04-02 14:21:02

MySql加入到系统服务里面

cp  /usr/local/mysql/share/mysql/mysql.server      /etc/init.d/mysql      

#把msql的脚本文件拷到系统的启动目录下

cd /etc/init.d/

chkconfig --add mysql                                #将mysql加到启动服务列表里

chkconfig mysql on                                    #让系统启动时自动打开mysql服务

Apache加入启动项里面:

echo '/usr/local/apache2/bin/apachectl start ' >> /etc/rc.local

Apache加入到系统服务里面:

cp /安装目录下/apache/bin/apachectl /etc/rc.d/init.d/httpd

修改httpd

在文件头部加入如下内容:

###

# Comments to support chkconfig on RedHat Linux

# chkconfig: 2345 90 90

# description:http server

###

保存

在打入

#chkconfig --add httpd

#chkconfig --level 345 httpd on
阅读(1374) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~