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,如需转载请自行联系原作者

相关文章
|
应用服务中间件 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)
440 1
|
网络安全
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1579 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
|
网络虚拟化
ValueError: check_hostname requires server_hostname的解决办法
报错ValueError: check_hostname requires server_hostname通常是因为版本冲突等原因,查遍网上众多大佬总结的经验后,最终发现是由网络代理导致的问题,即我们通常说的vpn问题。
307 0
sudo unable to resolve host错误
sudo unable to resolve host错误
162 0
|
开发工具 分布式计算 Hadoop
hadoop_异常_01_ Unable to determine address of the host-falling back to "localhost" address java.net.UnknownHostException: rayner
一、异常现象 安装好hadoop之后,执行格式化namenode命令时,抛出以下异常: 18/03/21 21:02:10 WARN net.DNS: Unable to determine local hostname -falling back to "localhost" java.
1733 0

热门文章

最新文章