Skip to content
Snippets Groups Projects
Commit ff53d25a authored by User expired's avatar User expired
Browse files

changes for centos7 (firewall settings; service start/stop)

parent 22aa6d69
No related branches found
No related tags found
No related merge requests found
......@@ -394,11 +394,20 @@ if $INSTALL_POSTGRES; then
yum -y localinstall $DOWNLOAD_DIR/epel-repo.rpm > install_epel_repo.log 2>&1
fi
echo "Stopping iptables and SELinux"
echo "Stopping Firewall and SELinux"
service iptables stop > stop_iptables.log 2>&1
service ip6tables stop >> stop_iptables.log 2>&1
service firewalld stop >> stop_iptables.log 2>&1
chkconfig iptables off >> stop_iptables.log 2>&1
chkconfig iptables off >> stop_iptables.log 2>&1
chkconfig iptables off >> stop_iptables.log 2>&1
systemctl disable iptables >> stop_iptables.log 2>&1
systemctl disable ip6tables >> stop_iptables.log 2>&1
systemctl disable firewalld >> stop_iptables.log 2>&1
if [ $(getenforce) == "Enforcing" ]; then
setenforce 0 > stop_selinux.log 2>&1
fi
sed -i 's/SELINUX=enabled/SELINUX=disabled/' /etc/selinux/config
if $INSTALL_HTTPD; then
echo "Installing httpd server"
......@@ -739,21 +748,25 @@ fi
echo "Starting services"
if $INSTALL_HTTPD; then
service httpd start > start_httpd.log 2>&1
systemctl enable httpd >> start_httpd.log 2>&1
chkconfig httpd on >> start_httpd.log 2>&1
sleep 2
fi
if $INSTALL_POSTGRES; then
service $POSTGRESQL_SERVICE_NAME start > start_pg.log 2>&1
systemctl enable $POSTGRESQL_SERVICE_NAM >> start_pg.log 2>&1
chkconfig $POSTGRESQL_SERVICE_NAME on >> start_pg.log 2>&1
sleep 2
fi
if $INSTALL_NEO4J; then
service $NEO4J_SERVICE_NAME start > start_neo4j.log 2>&1
systemctl enable $NEO4J_SERVICE_NAME >> start_neo4j.log 2>&1
chkconfig $NEO4J_SERVICE_NAME on >> start_neo4j.log 2>&1
sleep 2
fi
if $INSTALL_TOMCAT; then
service $TOMCAT_NAME start > start_tomcat.log 2>&1
systemctl enable $TOMCAT_NAME >> start_tomcat.log 2>&1
chkconfig $TOMCAT_NAME on >> start_tomcat.log 2>&1
sleep 2
fi
......
Alias /phpPgAdmin /usr/share/phpPgAdmin
<Location /phpPgAdmin>
Order deny,allow
Allow from all
<IfVersion < 2.4>
Order deny,allow
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Location>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment