Starting httpd: (13)Permission denied: httpd: could not open error log file
2016-05-11 15:31
766 查看
[root@subversion logs]# service httpd start Starting httpd: (13)Permission denied: httpd: could not open error log file /opt/uploads/discuz2.5/logs/error_log. Unable to open logs [FAILED]
问题来源是selinux 挡住了,只要关闭即可
临时关闭selinux:
setenforce 0 ##设置SELinux 成为permissive模式 ##setenforce 1 设置SELinux 成为enforcing模式
永久关闭:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
附:getenforce命令可查看selinux状态
相关文章推荐
- DNS同时使用TCP和UDP?
- 使用HttpUrlConnection进行post请求上传文件
- OkHttp介绍
- java通过传入HttpServletRequest判断 来源是否是 Pc / Mobile / Ipad
- Linux网络基础命令
- 关于okhttp和retrofit的使用的疑问
- Java Socket 实现HTTP与HTTPS协议发送POST/GET请求
- [转]ping检测网络连接异常
- 网络HTTP请求状态详解
- 使用http代理svn访问
- Unable to process Jar entry [org/apache/http/message/BasicLineParser.class] from Jar [jar:file:/D:/d
- Http 中Connection: close和Connection: keep-alive有什么区别?
- [置顶] Spring MVC的简单案例报错:警告: No mapping found for HTTP request with URI [/springMVC/hello2] in DispatcherSe
- 在Unity3d中使用GZip来压缩网络传输数据
- 几个网络命令(ping,telnet,ssh,netstat)
- 以下 ID 的密钥没有可用的公钥: 1397BC53640DB551W: 无法下载 http://dl.google.com/linux/chrome/deb
- 中文搜索引擎技术揭密:网络蜘蛛
- 简单的使用HttpClient访问网络
- TCP三次握手连接和TCP四次挥手及大量TIME_WAIT解决方法:
- 网络流二十四题之五 —— 圆桌问题(TABLE)