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

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

[[email protected] 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以上,这里就随便写了一个即可

4、在使用httpd -k start启动

[[email protected] 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为系统自留端口的知识,自己是知道的,但在实际过程中还是没有做到知识的贯通

已后还应勤加实践才是

时间: 2024-10-09 21:58:31

httpd 启动报错“”Permission denied: make_sock: could not bind to address [::]:80“”的相关文章

apache报Permission denied: make_sock: could not bind to address 解决方案

启动Apache时报错信息: [[email protected] httpd]# /etc/init.d/httpd startStarting httpd: (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:8000no listening sockets availab

permission denied make_sock could not bind to address 81问题解决

在apache中绑定非http标准端口时,一直出现如下的错误提示: [[email protected] ~]# /etc/init.d/httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:888 no listening sockets available, shutting down Unable to open logs [FAILED] 解决方案:

linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)

想建立一个测试用的虚拟主机,遇到了这个问题:[[email protected] html]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for ServerName(13)Permission denied: make_sock: could not bin

httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:8888

Install semanage tools: sudo yum -y install policycoreutils-python Allow port 88 for httpd: sudo semanage port -a -t http_port_t -p tcp 88 Allow port 8445 for httpd: sudo semanage port -a -t http_port_t -p tcp 8445

java sftp 报错 Permission denied (没有权限;拒绝访问)

解决办法: 1.检查账号密码是否错误 2.检查freeSSHD是否是以管理员身份运行的 3.检查sftp路劲有没有配置错误,java通过sftp将图片文件传输到指定文件夹,如果这个文件夹在配置的当前目录找不到,则会报错Permission denied 2017/5/2 今天就是路径配置错误,调试了半天,差点放弃,幸好我坚持了下来,这是一个很小的错误,下次谨记要仔细一点,不要轻言放弃.

httpd启动报错httpd: Could not reliably determine the server's fully qualified domain name

安装完apache-httpd后,启动时报错如下: [[email protected] app]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for ppt httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName  [  OK  

Visual Studio Code 使用 Git插件报错 - Permission denied (publickey)

在使用GitHub的时候,为了避免每次输入用户名密码,都会使用SSH方式代替Https. 按网上教程,大多数使用SSH-KeyGen生成公私钥对,而后上传公钥至Github,并切换Repositorie为SSH. 使用SSH-KeyGen输出如下: Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ss

apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80

# /usr/local/apache2/bin/apachectl start Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80no listening sockets available, shutting downU

Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to address [::]:80

1. 启动 Apache 时报错: [[email protected] sh]# service httpd start Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName (98)Address already in use: make_sock: could not bi