No Image

Awstats, Nginx log and Nginx Server

October 5, 2018 0

Install Required Packages yum install awstats htmldoc geoip-geolite perl-Geo-IP GeoIP httpd-tools Install CPAN # yum install perl-CPAN perl-CPAN-Changes perl-CPAN-Meta perl-CPAN-Meta-Requirements # cpan CPAN perl -MCPAN […]

No Image

Create bonded IPv4 and IPv6 network interface, CENTOS

April 19, 2018 0

Assuming we have 2 network cards eno1 and eno2. The configuration should look like the below: vi /etc/sysconfig/network-scripts/ifcfg-eno1 HWADDR=xx:xx:xx:xx:x1 TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no […]

No Image

Linux, get process ID (PID)

April 3, 2018 0

The following command will allow shell script to grab PID for further processing: ps -ef | grep KEYWORD | grep -v grep | awk ‘{print […]

No Image

Centos Change Hostname

March 28, 2018 0

CENTOS 6: Edit /etc/sysconfig/network change the line: HOSTNAME=app01.localdomain Edit /etc/hosts add hostname to the end of line: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 app01 Run hostname […]

No Image

Setup CENTOS Time Zone

March 28, 2018 0

All time zones are stored in: /usr/share/zoneinfo Remove locatime file and create symlink to the selected time zone file: # rm -rf /etc/localtime # ln […]

No Image

Increase ulimit

March 23, 2018 0

To increase the maximum open files: vi /etc/security/limits.conf Add: * soft nofile 50000 * hard nofile 60000 Change the statement that specifies the value of […]