상세 컨텐츠

본문 제목

Usr/sbin/setsebool P 1

카테고리 없음

by nasrycongtibb1977 2020. 1. 24. 01:35

본문

Usr/sbin/setsebool P 1

In the spirit of The Hitchhiker's Guide to the Galaxy, here are the 42 answers to the big questions about managing and using SELinux with your systems. SELinux is a LABELING system, which means every process has a LABEL. Every file, directory, and system object has a LABEL. Policy rules control access between labeled processes and labeled objects.

We have configured Apache as a load balancer for two apache tomcat instances.The tomcat instance1 is running on ajp port 8009 and the instance2 is running ajp port 8109And the tomcat instances are running without having any errors in the log and when we send the request to individual instances, both of them are processing the requests perfectly.When we send the requests via apache, then, all the requests are routed to instance1. And the requests are not reached to insatnce2.When we investigated the logs of Apache, we saw the below error messages.Thu Feb 28 08: error (13)Permission denied: proxy: AJP: attempt to connect to 10.137.1 (10.137.111.12) failedThu Feb 28 08: error approxyconnectbackend disabling worker for (10.137.111.12)Thu Feb 28 08: error proxy: AJP: failed to make connection to backend: 10.137.111.12Here we found the root cause because of SELinux. Here, the solution is to disable the SELinux or change the mode from enforce to permissive.To change the mode from enforce to permissivesetenforce 0To disable SELinux edit the file /etc/sysconfig/selinux and change the SELINUX line to SELINUX=disabled then reboot the systemOr You can change the default policy/usr/sbin/setsebool -P httpdcannetworkconnect 1and restarted the Apache, then onwards the apache is routing the requests to both the instances.

AboutI am Siva Prasad Rao Janapati. Working as a software developer. Has hands on experience on ATG Commerce(DAS/DPS/DCS), Mozu commerce, Broadleaf Commerce, Java, JEE, Spring, Play, JPA, Hibernate, Velocity, JMS, Jboss, Weblogic,Tomcat, Jetty, Apache, Apache Solr, Spring Batch, JQuery, NodeJS, SOAP, REST, MySQL, Oracle, Mongo DB, Memcached, HazelCast, Git, SVN, CVS, Ant, Maven, Gradle, Amazon Web services, Rackspace, Quartz, JMeter, Junit, Open NLP, Facebook Graph,Twitter4J, YouTube Gdata, Bazzarvoice,Yotpo, 4-Tell, Alatest, Shopzilla, Linkshare.

Usr/sbin/setseboolUsr/sbin/setsebool

Usr/sbin/setsebool P 150

I have hands on experience on open sources and commercial technologies.

Usr/sbin/setsebool P 1