Linux check list

Install tools for operation.

[code]yum install nano wget epel-release[/code]

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:

[code]yum install https://centos7.iuscommunity.org/ius-release.rpm[/code]

Use u suffix for Installing package from ius repo. For example use below for installing git 2.x:

[code]yum install git2u[/code]

Postgres

Download rpm package, check this list for other versions.
[code]wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm[/code]
Install package.
[code]rpm -i pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib
/usr/pgsql-9.6/bin/postgresql96-setup initdb[/code]

Create db and user.
[code]
su postgres
createuser –interactive
createdb -O myuser mydb
[/code]

Run psql for setting password to new user.
[code]
psql
ALTER USER mydbuser WITH PASSWORD ‘mynewpass’;
\q[/code]

Proxy

If you need proxy you can use nginx. You need give permission to nginx for accessing http resources.

[code]setsebool httpd_can_network_connect true -P[/code]

Check nginx.log with

[code]tail -10f /var/log/nginx/error.log[/code]

php & php-fpm

Use IUS for latest release, php72u.

Permissions overwritten after update, check /var/lib/php/fpm permissions.

Java

JRE

[code]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”[/code]
[code]yum localinstall jre-8u181-linux-x64.rpm[/code]

JDK

[code]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”[/code]

Firewall

firewalld

İlişkili yazılar / related posts:

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.