摘要: 为了让mysql开机启动,我将mysql命令添加到/etc/rc.local中,但怎么也运行不了。一开始认为只是/etc/rc.local的权限问题,但通过以下命令修改后,还是不起作用。sudo chmod +x /etc/rc.local // 增加可执行权限sudo chmod +s /etc/rc.local // 让普通用户执行该文件时拥有文件所有者的权限后来Google之后才发现是Ubuntu默认的dash在作怪:#ls -al /bin/shlrwxrwxrwx 1 root root 4 2009-12-11 06:04 /bin/sh -> dash#ls -al /bi 阅读全文
posted @ 2013-10-18 16:52 流浪河 阅读(5356) 评论(0) 推荐(0) 编辑