Chinaunix首页 | 论坛 | 博客
  • 博客访问: 929934
  • 博文数量: 245
  • 博客积分: 11429
  • 博客等级: 上将
  • 技术积分: 2662
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-15 00:16
文章存档

2011年(56)

2010年(174)

2009年(15)

分类: LINUX

2010-11-15 14:12:36

由于业务上的不便,需要将apache改端口,当我把apache的监听端口改为8000时报如下错误
 lamp]# /etc/init.d/httpd restart
停止 httpd:                                               [失败]
启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:8000
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8000
no listening sockets available, shutting down
Unable to open logs
                                                           [失败]

这是因为apache的默认端口修改后不能运行
因此解决方法
echo 0 > /selinux/enforce 或setenforce 0
重启 ok
阅读(1220) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~