我已经在我的 ubuntu 12.4 中使用 安装了 apache2 sudo apt-get install apache2,现在我无法启动服务器,当我使用时service apache2 start,显示以下内容。
bharathkumar@hkbharath:~$ service apache2 start
* Starting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
mktemp: failed to create directory via template `/var/lock/apache2.XXXXXXXXXX': No such file or directory
chmod: missing operand after `755'
Try `chmod --help' for more information.
[fail]
Run Code Online (Sandbox Code Playgroud)
我尝试卸载并重新安装 apache2,但仍然得到同样的结果,请帮助我启动我的 apache2 服务器。
谢谢
小智 7
我在虚拟服务器上运行时遇到了同样的问题。原来 /var/lock 是指向 /run/lock 的符号链接,而 /run/lock 并不存在。我是这样解决的:
须藤 mkdir /运行/锁定
须藤服务 apache2 重启
希望对你有效。
| 归档时间: |
|
| 查看次数: |
17110 次 |
| 最近记录: |