Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6540881
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类:

2010-11-12 18:52:39

问题:

php(客户端) 不能连接 php(服务器端)   或者   php(客户端) 不能连接 C语言程序(服务器端)


解决:

[root@localhost ~]# getsebool -a|grep http
allow_httpd_anon_write --> off
allow_httpd_bugzilla_script_anon_write --> off
allow_httpd_cvs_script_anon_write --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_nagios_script_anon_write --> off
allow_httpd_prewikka_script_anon_write --> off
allow_httpd_squid_script_anon_write --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_network_connect --> off
httpd_can_network_connect_db --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> on
httpd_disable_trans --> off
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> on
httpd_read_user_content --> off
httpd_rotatelogs_disable_trans --> off
httpd_ssi_exec --> off
httpd_suexec_disable_trans --> off
httpd_tty_comm --> on
httpd_unified --> on
httpd_use_cifs --> off
httpd_use_nfs --> off
[root@localhost ~]# setsebool httpd_can_network_connect on
// 重启电脑,httpd_can_network_connect --> off


[root@localhost ~]# setsebool -P httpd_can_network_connect on
// 重启电脑,httpd_can_network_connect --> on


学习selinux 

阅读(1778) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~