Permission denied: make_sock: could not bind to address [::]:80
来源:互联网 发布:江苏省人工智能学会 编辑:程序博客网 时间:2024/04/30 08:58
Some words about the errors you get which hopefully will save you from similar situations in future.
In Linux ports from 0 to 1024 are reserved for system use. This means that in order to use one, you must have the authority to change - access basic system settings. The root user has such privileges and can actually use a port from the range 0 - 1024.
In your problem as you can see, the system through Apache2 response indicates the root of the problem ([...]could not bind to address blah blah 80):
(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
When the Apache2 http daemon starts, it tries to bind the 80 port as it is the default port for use in HTTP see, which is a port within the system assigned ports and as such it can only be accessed by root.
You executed the start command as a typical user without root privileges and led to failure to do so.
In simple words:
You:
Hi Apache2 i am Kongthap and i am telling you to start (
/etc/init.d/apache2 start
)
Apache2:
Ok i am starting (Starting web server apache2)
System please give me port 80 to use and listen for connections
System:
OK one moment to check
ahh sorry Apache2 but i cannot let you run at 80 port, it is for personal use
and you do not have the correct privileges to bind it.(
Operation not permitted
)
Apache2:
Ohh, Kongthap i failed to start, the system did not let me do it ((13)Permission denied:[...])
Conclusion
There are mainly two solutions to this problem:
1) Run the Apache2 http daemon with root privileges using sudo:
sudo service apache2 start
prefered method or sudo /etc/init.d/apache2 start
2) Change the default port from 80
to something greater than 1024
, say 2000
, 2500
, 9000
, etc. A typical port to run when in such situation is 8080
sudo vi /etc/apache2/ports.conf
look for or if not there add:
Listen 8080
or any other port of your choice such as port > 1024
and the selected port is not used by another process.
- Permission denied: make_sock: could not bind to address [::]:80
- Permission denied: make_sock: could not bind to address处理
- permission denied make_sock could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- 解决:Permission denied: make_sock: could not bind to address
- Linux:解决Permission denied: make_sock: could not bind to address
- 关于Centos 出现httpd:(13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission
- httpd 13 permission denied make_sock could not bind to address 失败的原因
- linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)
- Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]
- Permission denied: make_sock: could not bind to address [::]:81 Apache 虚拟主机
- linux apache报Permission denied: make_sock: could not bind to address
- Starting httpd: (13)Permission denied: make_sock: could not bind to address
- httpd 13 permission denied make_sock could not bind to address 失败的原因
- apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address
- apache2.x修改默认端口后报 Starting httpd: (13)Permission denied: make_sock: could not bind to address .
- apahce 启动错误make_sock:could not bind to address [::]:80
- 下列有关windows系统的EXE和DLL文件说法错误的是?
- 关于 iOS启动图控制器的一些发现 姿势
- python string字符串的7种连接方式
- HDU4461 The Power of Xiangqi
- spring-mvc跳转根目录下的jsp文件
- Permission denied: make_sock: could not bind to address [::]:80
- windows安装composer方法和使用方法
- Centos 6.5 配置连接Windows远程桌面
- 前言
- JavaScript笔记——this的取值
- linux 下 .sh 文件语法
- 1043. Is It a Binary Search Tree (25)-PAT甲级真题
- CountDownLatch的使用
- java常见问题: