作者:金良([email protected]) csdn博客:http://blog.csdn.net/u012176591
今天突然发现Ubuntu上的程序不能运行了,而它们之前都运行得好好的怪哉。例如,启动MySQL错误提示如下:
root@jin-ThinkPad-R400:/usr/bin# /etc/init.d/mysql restart Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop mysql ; start mysql. The restart(8) utility is also available. mysql stop/waiting mysql start/running, process 17595启动samba服务错误提示:
root@jin-ThinkPad-R400:/usr/bin# /etc/init.d/smbd restart Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service smbd restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop smbd ; start smbd. The restart(8) utility is also available. smbd stop/waiting smbd start/running, process 18144甚至连我自己写的几十行的C代码程序也不能运行。
删除了这种大文件,系统恢复正常。
按照提示,如上边的samba,输入:
service smbd restart也可以。