Linux常见问题及解决错误.docxVIP

  • 20
  • 0
  • 约1.69万字
  • 约 20页
  • 2017-06-12 发布于湖北
  • 举报
Linux常见问题及解决错误精要

locate无法查询文件,提示locate:can no stat () `/var/lib/mlocate/mlocate.db:no such file or director解决方法:使用updatedb命令更新一下数据库即可修改httpd.conf中的监听端口为8081,然后重启httpd服务,提示错误解决办法:1.设置色Linux的模式为宽容模式(permissive)查看selinux的模式:getenforce查看selinux的政策(Policy):sestatus修改selinux的模式:setenforce0:转成permissive宽容模式;1:转成enforcing强制模式;重启httpd服务如果防火墙没有开放TCP8081端口,需要使用iptables添加端口准入重启失效,需要重新设置,或者将SELinux设置为永久宽容模式,但是不建议这样设置,于系统造成不安全2.设置SELinux中允许http的服务的允许端口为需要的端口---待完善重启http的服务提示Starting httpd: httpd: Could not reliably determine the servers fully qualified domain name, using localhost.localdomain for ServerName解决办法:----截图另做修改/e

文档评论(0)

1亿VIP精品文档

相关文档