- 浏览: 344683 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (238)
- j2ee (22)
- mysql (14)
- hibernate (2)
- struts (3)
- spring (7)
- php (28)
- cakephp (12)
- pattern (0)
- 数据结构 (0)
- python (17)
- redis (1)
- sql (2)
- ibatis (1)
- jquery (3)
- 测试 (3)
- linux (37)
- solr (3)
- oracle (5)
- jira (5)
- 版本控制 (3)
- xp (1)
- IDE (3)
- apache (4)
- hadoop (2)
- freemarker (2)
- maven (5)
- 项目管理 (2)
- UML (1)
- Django (6)
- 正则 (1)
- Scrapy (1)
- 文档管理 (3)
- 项目集成 (8)
- MQ (3)
- 架构 (1)
- HTML (1)
- IT (1)
- 云 (0)
- 应用服务器 (4)
- win 7 (1)
- thrift (1)
- 学习 (3)
- OpenStack (3)
- sqlserver (1)
- javascript (1)
- zabbix (3)
- IOS (1)
- rabbitmq (1)
- springcloud (2)
最新评论
-
xushenkun4:
至今仍然有这个bug,0.9.1无法传输中文utf8。
thrift使用出现诡异问题 -
feiniao2029:
[i][/i][u][/u]引用
spring 配置init方法 -
wt811004:
非常感谢朋友慷慨指导
dotproject项目管理工具使用 -
hackpro:
这将是一个经典,就像大话西游...
javaeye怀旧 -
raymond2006k:
个人更偏好 Velocity。我觉得还有个对比点,就是编程方式 ...
jsp freemarker velocity 比较
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]
- 博客分类:
- linux
如果修改过端口或添加过端口监听,重新Apache的时候可能会出现如下错误:
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:9000
故事发生理由:
我在设置9000端口为testlink服务端口后重新apache时出错:
[root@LC-VM12 testlink]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:9000
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:9000
no listening sockets available, shutting down
Unable to open logs
[FAILED]
解决办法:
semanage port -l|grep http
semanage port -a -t http_port_t -p tcp 81
过程:
[root@LC-VM12 testlink]# semanage port -l|grep http http_cache_port_t tcp 3128, 8080, 8118, 11211, 10001-10010 http_cache_port_t udp 3130, 11211 http_port_t tcp 80, 443, 488, 8008, 8009, 8443 pegasus_http_port_t tcp 5988 pegasus_https_port_t tcp 5989 [root@LC-VM12 testlink]# service iptables status Firewall is stopped. [root@LC-VM12 testlink]# semanage port -a -t http_port_t -p tcp 9000 [root@LC-VM12 testlink]# service iptables status Firewall is stopped. [root@LC-VM12 testlink]# semanage port -l|grep http http_cache_port_t tcp 3128, 8080, 8118, 11211, 10001-10010 http_cache_port_t udp 3130, 11211 http_port_t tcp 9000, 80, 443, 488, 8008, 8009, 8443 pegasus_http_port_t tcp 5988 pegasus_https_port_t tcp 5989 [root@LC-VM12 testlink]# semanage |
参考信息:
semanage使用详解
NAME
semanage – SELinux Policy Management tool
SYNOPSIS
Output local customizations:导出selinux当前策略
semanage [ -S store ] -o [ output_file | - ]
Input local customizations:导入selinux策略
semanage [ -S store ] -i [ input_file | - ]
Manage booleans. Booleans allow the administrator to modify the confinement of processes based on his configuration.:管理一些进程、服务的开关、配置等等,全是开关两个状态
semanage boolean [-S store] -{d|m|l|n|D} -[-on|-off|1|0] -F boolean | boolean_file
Manage SELinux confined users (Roles and levels for an SELinux user)
semanage user [-S store] -{a|d|m|l|n|D} [-LrRP] selinux_name
Manage login mappings between linux users and SELinux confined users:将linux已存在的用户user映射到登陆保护
semanage login [-S store] -{a|d|m|l|n|D} [-sr] login_name | %groupname
-a:添加
-d:删除
-m:修改
-l:列举
-n:不打印说明头
-D:全部删除
例子:semanage login -a -s unconfined_u leowang
Manage network port type definitions:管理网络端口
semanage port [-S store] -{a|d|m|l|n|D} [-tr] [-p proto] port | port_range
-t:类型
-r:角色
例子:semanage port -a -t http_port_t -p tcp 81
Manage network interface type definitions
semanage interface [-S store] -{a|d|m|l|n|D} [-tr] interface_spec
Manage network node type definitions
semanage node [-S store] -{a|d|m|l|n|D} [-tr] [ -p protocol ] [-M netmask] address
Manage file context mapping definitions:管理文件安全上下文的映射
-f:文件
-s:用户
-t:类型
-r:角色
semanage fcontext [-S store] -{a|d|m|l|n|D} [-frst] file_spec
semanage fcontext [-S store] -{a|d|m|l|n|D} -e replacement target
例子:semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?" //新建一条规则,指定/web目录及其下的所有文件的扩展属性为httpd_sys_content_t
Manage processes type enforcement mode
semanage permissive [-S store] -{a|d|l|n|D} type
Disable/Enable dontaudit rules in policy
semanage dontaudit [-S store] [ on | off ]
Execute multiple commands within a single transaction.
semanage [-S store] -i command-file
参考地址:http://kinggoo.com/app-httpderrornotport.htm?replytocom=601
发表评论
-
详解 Nginx + Tomcat HTTPS/SSL 配置
2014-08-27 14:43 875前言:这篇文章涉及到很多专业术语,例如密钥对,私钥,公钥,证 ... -
CentOS6.2下YUM安装MySQL
2014-08-26 16:26 651用yum安装MySql 打入如下命令: [root@my ... -
centos直接yum安装nginx三部曲
2014-07-28 10:03 595第一步: CentOS 6,获取资源,先执行:rpm - ... -
linux局域网内磁盘映射【摘录】
2012-11-30 15:57 816同事需要局域网挂着硬盘,找了一下!顺便学习。哈哈 ... -
Cron 用法说明
2012-11-29 13:32 836更新:添加日志 cron.* -/var/log/cr ... -
Ubuntu下KVM的安装配置
2012-08-28 11:21 13911. KVM KVM的全称是“基于内核的虚拟机 ... -
Linux中通过locale来设置字符集
2012-08-28 11:11 1058在Linux中通过locale来 ... -
ubuntu 12.04 mysql 编码问题
2012-08-24 21:50 15181. 修改/etc/mysql/my.conf [mysq ... -
[Ubuntu]E: Unable to locate package - apt-get install error
2012-08-24 17:42 2852E: Unable to locate package ... -
httpd.tar.gz配置开机自启服务
2012-07-23 11:36 10731. httpd 2.2.22 安装 步骤一 ... -
在linux上安装rz/sz包
2012-07-23 10:17 1012在SecureCRT这样的ssh登录软件里, 通过在Linux ... -
yum命令处理时报错:undefined symbol: SSL_load_error_strings
2012-07-20 17:24 17801. 问题 使用yum时出现下列错误: ... -
linux 常用指令
2012-06-25 17:21 7931. 系统 # uname -a ... -
linux文件合并,去重复
2012-06-11 09:42 1279第一:两个文件的交集,并集前提条件:每个文件中不得有重复行 1 ... -
[Centos] 安装 semanage
2012-02-29 23:16 4643'm trying to use semanage co ... -
Linux关机命令详解
2012-02-28 00:33 902在linux下一些常用的关机/重启命令有shutdown、ha ... -
[Centos 6] 同一台机器部署多个Tomcat应用服务器
2012-02-28 00:25 19001. 修改/etc/profile文件 TOMC ... -
[Centos 6] Subversion安装配置
2012-02-26 00:52 1344svnserver 1. 安装 yum安装命令 ... -
[Centos 6] 常用软件安装配置
2012-02-25 22:13 1703[Centos 6] 常用软件安装配置 1. mysq ... -
linux 后台运行python程序(不可见)
2011-12-31 09:26 9006nohup python *.py & noh ...
相关推荐
Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_...
启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...
HTTPD is the main program for the Apache hypertext transfer protocol (HTTP) server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
simple httpd server hello world
/* Tell the user that we could not find a usable */ /* WinSock DLL. */ return 1; } /* Confirm that the WinSock DLL supports 2.2.*/ /* Note that if the DLL supports versions greater */ /* ...
张中庆_Apache源代码全景分析_第1卷 (高清pdf,因为原文件太大,所以分成几个文件上传)
UNIX/Linux平台上的微型http服务器,实现网页浏览,cgi接口,php页面查看等功能
“httpd未被被识别的服务”的解决办法.docx
Task11:“:Japanese_symbol_for_beginner:11.1使用Ansible Playbook配置...:Japanese_symbol_for_beginner:11.3重新启动HTTPD服务本质上不是等幂的,而且也消耗了更多资源,这是一种纠正方法Ansible剧本中的挑战”
tomcat-connectors-1.2.40-windows-x86_64-httpd-2.4.x.zip mod_jk 64位 用于连接Apache httpd2.4
red had Linux上的迷你http服务器,增加了对php访问的支持
:small_blue_diamond: 配置Docker :small_blue_diamond: 启动并启用Docker服务 :small_blue_diamond: 从Docker Hub提取httpd服务器映像 :small_blue_diamond: 运行Docker容器并将其公开 :small_blue_diamond: 复制/...
A purge of a module will not have to wait for completion of all ongoing dirty NIF calls. erts: Improved accuracy of timeouts on MacOS X. kernel: Add net_kernel:setopts/2 and net_kernel:getopts/2 to ...
限制并发数 ...apxs -c mod_vhost_limit.c -o /path/to/libexec/mod_vhost_limit.so 在 httpd.conf加入: LoadModule vhost_limit_module libexec/mod_vhost_limit.so AddModule mod_vhost_limit.c
经典的server/client架构,学习网络编程的好例子
#coding:utf-8 from wsgiref.simple_server import make_server def RunServer(environ, start_response): ... return '<h1>Hello, ... httpd = make_server('localhost', 8000, RunServer) print ("Serving HTTP on por