源码安装的mysql,怎样才能实现开机自启动
(2012-01-08 04:21:24)
标签:
怎样
mysql
杂谈
源码安装的mysql,怎样才能实现开机自启动源码安装的mysql,设置开机自启动,
# who -r
rc3 run .....
# cp /usr/local/share/mysql/mysql.server/etc/init.d/mysqld
# cd /etc/rc3.d
# ln -s ../init.d/mysqld s90mysql
# cd /etc/rc2.d
# ln -s ../init.d/mysqld k90mysql
重新启动计算机
# cd /usr/local/bin
# ./mysql
can not connect mysql server ......
怎样才能实现开机自启动??并且在rc0.drc1.d rc2.d rc3.d rc5.d
都没有postfixhttp://www.cdjunxiang.com的启动脚本,但是postfix却是自启动的参考一下这个帖子
http://bbs.chinaunix.net/thread-1632795-1-1.html
首先你需要自己写好 mysql start & stop的script。然后集成到smf中。# cd
/etc/rc3.d
# ln -s ../init.d/mysqld S90mysql
# cd /etc/rc2.d
# ln -s ../init.d/mysqld K90mysql
S和K都要大写,
另,postfix在init.d中没有启动脚本,可能是安装http://www.hztaoyi.com的三星5830时候集成到SMF中了,但是用svcs命令查看没有发现postfix服务,lrc 中没有 svc
中也没有
?????????你把启动脚本复制进去后要把它加入启动项才行
而且要注意权限
chmod 775 /etc/init.d/mysql
chkconfig --add mysql
然后就可以启
分享:
喜欢
0
赠金笔
加载中,请稍候......
评论加载中,请稍候...
发评论
登录名: 密码: 找回密码 注册记住登录状态
昵 称:
评论并转载此博文
发评论
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。