httpd 启动报错“”Permission denied: make_sock: could not bind to address [::]:80“”

简介:

  今天闲来无事复习一下普通用户httpd源码的安装,安装过程不赘述,在启动过程中提示错误


[coco@cocodb01 bin]$ ./httpd -k start

httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.56.115 for ServerName

(13)Permission denied: make_sock: could not bind to address [::]:80

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs


解决过程:

1、使用httpd -t 命令检查http.conf 是否有问题,结果显示Syntax OK

2、检查selinux等,发现也已经Disable,结果细看一下才发现,已经提示是Permission denied 说明为权限问题

3、经过测试root用户是能够正常启动的,后来查询了一下资料才知道是因为端口权限问题

因为系统在1024端口下为自留端口,使用普通用户需要将端口修改为1024以上,这里就随便写了一个即可


wKiom1ei1__SzxWbAACgYEkdj2g496.jpg-wh_50


4、在使用httpd -k start启动


[coco@cocotdb01 bin]$ ps -ef | grep httpd | grep  coco | grep -v grep

coco      20726   1   0 11:46 ?        00:00:00 ./httpd -k start

coco      20727 20726  0 11:46 ?        00:00:00 ./httpd -k start

coco      20728 20726  0 11:46 ?        00:00:00 ./httpd -k start

coco      20729 20726  0 11:46 ?        00:00:00 ./httpd -k start


总结:

其实端口使用1024为系统自留端口的知识,自己是知道的,但在实际过程中还是没有做到知识的贯通

已后还应勤加实践才是




本文转自 yuri_cto 51CTO博客,原文链接:http://blog.51cto.com/laobaiv1/1834310,如需转载请自行联系原作者

相关文章
|
4月前
|
网络协议 Linux 网络安全
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
|
7月前
|
应用服务中间件 nginx
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
194 1
|
5月前
|
关系型数据库 MySQL Linux
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
37 0
sshd报错status=203/EXEC,/sbin/sshd permission denied
sshd报错status=203/EXEC,/sbin/sshd permission denied
176 0

热门文章

最新文章