之前自己编译安装的apache/php/mysql——什么,连mysql也自己编译?很正常,学习嘛—— 当时是好好的,今天启动却出错了,直接运行./httpd也一样:
[feng@localhost bin]$ ./apachectl start
httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain 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
同时seLinux报警,这两行是主要的错误
(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
毫无疑问,是权限拒绝,但之前为什么是好的呢
突然发现当前运行的账号是普通账号,而非管理员,这难怪,普通账号默认无权启动监听80端口的,su一下,输入密码,很顺利的正常启动了,当然这一行错误还是有的:
httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain for ServerName
,这无所谓,没有绑定域名,反正是本机运行的。
延伸阅读
- apache启用html gzip压缩方法/linux
- windows下配置apache支持运行asp
- apache代理模块mod_proxy_html,修改html页面内容的url引用链接
- 使用Apache进行虚拟主机设置
- Apache 配置文件config.conf详解
- Apache Windows2003 设置 站点 目录 权限
- 在apache中禁止一个目录执行php脚本的权限
- mac osx下apache下的坑: you don’t have permission to access / on this server
- Win2003下配置 Apache 网站目录 权限 方法
- 优化Apache服务器的性能方法汇编
- Linux 免费虚拟主机管理系统(支持apache+nginx)
- LINUX下三个内核文件详解(vmlinuz/initrd.img/System.map)
- 现在的linux内核编译太简单了:linux kernel2.6.36.2编译手记
- vi使用手册
- 教您30分钟打造基于Linux的VPN服务器
0 条评论。