配置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
#!/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下 配置weblogic 与nodemanager到服务里,开机自启动
- linux上安装tomcat,配置tomcat服务开机自启动
- Linux下配置Tomcat为系统服务并开机自启动
- linux上安装tomcat,配置tomcat服务开机自启动
- Linux下Tomcat配置为系统服务,并开机自启动
- postgresql在linux下的的开机自启动服务与环境变量的配置
- Linux Oracle服务启动&停止脚本与开机自启动
- 如配置tomcat为Linux启动服务,开机启动,登陆启动
- Linux下配置jboss开机自启动
- linux 服务开机自启动
- Linux 下 Oracle 开机自启动配置
- Linux设置开机自启动服务
- JBoss Linux开机自启动配置
- linux系统中配置oracle开机自启动
- Linux Oracle服务启动&停止脚本与开机自启动[转]
- linux配置tomcat开机自启动
- Linux下建立Oracle服务及其开机自启动
- Linux基本配置自如何配置自启动服务
- Linux 中 怎么配置开机启动的服务?
- Linux下将自己安装的Apache(httpd)新增为系统服务,开机自启动