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

配置Linux服务下mysql数据库服务开机自启动

2014-08-01 10:02 330 查看
第一步:新建start文件,里面的内容如下

#!/bin/bash

#chkconfig:  2345 80 08

#description: Start

echo "service iptables stop"

service iptables stop

echo "Starting MySQL Service ..." 

/opt/sudytech/mysql/bin/mysqld_safe &

linux服务器mysql开机自启动 (这个是我百度微云里的,已分享,可以下载查看)

第二步:

1)放在/etc/rc.d/init.d/start

2)把start的属性改成 “777”(chmod -R 777 /etc/rc.d/init.d/start)

3)查看start的属性是否修改成功 ls -l /etc/rc.d/init.d/start

4)运行 chkconfig --add start 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux mysql