Sunday, August 28, 2016

Linux Commands on centos 7


linux commands
-----------------------------
1. yum remove java*

2. Create /etc/profile.d/java.sh


if ! echo ${PATH} | grep -q /opt/jdk18/bin ; then
   export PATH=/opt/jdk18/bin:${PATH}
fi
if ! echo ${PATH} | grep -q /opt/jdk18/jre/bin ; then
   export PATH=/opt/jdk18/jre/bin:${PATH}
fi
export JAVA_HOME=/opt/jdk18
export JRE_HOME=/opt/jdk18/jre
export CLASSPATH=.:/opt/jdk18/lib/tools.jar:/opt/jdk18/jre/lib/rt.jar



Php permission error to connect to server with error on Centos 7

fsockopen($address, $this->port, $errno, $errstr, 60);

Try this command in your linuxbox (as root).

setsebool -P httpd_can_network_connect 1

No comments:

Post a Comment