Install tools for operation.
yum install nano wget epel-release
Update
If you update some packages, your config files override with new ones. You can find old files with rpm extension in same directory.
Latest Packages
Some linux distributions update their package with delay. IUS is good option for using latest package. You can get IUS package list here and install them with below command.
Install ius rpm package first:
yum install https://centos7.iuscommunity.org/ius-release.rpm
Use u suffix for Installing package from ius repo. For example use below for installing git 2.x:
yum install git2u
Postgres
Download rpm package, check this list for other versions.
wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
Install package.
rpm -i pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib
/usr/pgsql-9.6/bin/postgresql96-setup initdb
Create db and user.
su postgres
createuser --interactive
createdb -O myuser mydb
Run psql for setting password to new user.
psql
ALTER USER mydbuser WITH PASSWORD 'mynewpass';
\q
Proxy
If you need proxy you can use nginx. You need give permission to nginx for accessing http resources.
setsebool httpd_can_network_connect true -P
Check nginx.log with
tail -10f /var/log/nginx/error.log
php & php-fpm
Use IUS for latest release, php72u.
Permissions overwritten after update, check /var/lib/php/fpm permissions.
Java
JRE
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u181-linux-x64.rpm"
yum localinstall jre-8u181-linux-x64.rpm
JDK
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm"
Firewall
firewalld
Leave a Reply