October 2016
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

October 2016
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

[CentOS 7.0] Change the default “enxx” network device to old “eth0” on CentOS 7

[CentOS 7.0] Change the default “enxx” network device to old “eth0” on CentOS 7 The easiest way to restore the old way Kernel/modules/udev rename your ethernet interfaces is supplying these kernel parameters to CentOS 7:

net.ifnames=0 biosdevname=0

To do so follow this steps:

Edit /etc/default/grub At the end of GRUB_CMDLINE_LINUX line append “net.ifnames=0 biosdevname=0” Save […]

[CentOS 7.0] Configure Networking

[CentOS 7.0] Configure Networking [1] Set static IP address to the server. ( Replace the section ‘ifcfg-***’ to your own interface name )

# install the package below which includes ifconfig, netstat and so on first

[root@dlp ~]#yum -y install net-tools

[root@dlp ~]#vi /etc/sysconfig/network-scripts/ifcfg-eno16777736

HWADDR=”00:0C:29:CD:9C:2D” TYPE=”Ethernet”

# change BOOTPROTO=”none” DEFROUTE=”yes” PEERDNS=”yes” PEERROUTES=”yes” IPV4_FAILURE_FATAL=”no” IPV6INIT=”yes” IPV6_AUTOCONF=”yes” […]

[CentOS 7.0] Change RunLevel

[CentOS 7.0] Change RunLevel [1] RunLevel is set with linking to /etc/systemd/system/default.target. For example, the default setting without GUI is like follows.

# show current setting [root@dlp ~]#systemctl get-default multi-user.target

[root@dlp ~]#ll /etc/systemd/system/default.target lrwxrwxrwx. 1 root root 37 Jul 9 06:04 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target

[2] For example, if you’d like to change the RunLevel to […]

[CentOS 7.0] Configure Services

[CentOS 7.0] Configure Services [1] Configure Services of the System.

# list services which are booted (list all includes inactive one with “–all” option)

[root@dlp ~]#systemctl -t service

UNIT LOAD ACTIVE SUB DESCRIPTION auditd.service loaded active running Security Auditing Service avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack crond.service loaded active running Command Scheduler dbus.service loaded […]

MySQL : interactive_timeout v/s wait_timeout

MySQL : interactive_timeout v/s wait_timeout

Most of the database intensive applications are working about the default values of these variables obviously. Developers used to inform me that they need to extend the wait_timeout value in order to complete the query execution.

After some googling, it is found that default “wait_timeout” value is good enough. […]

How and Why You Should Change MySQL’s wait_timeout and interactive_timeout Variables

How and Why You Should Change MySQL’s wait_timeout and interactive_timeout Variables

wait_timeout variable represents the amount of time that MySQL will wait before killing an idle connection. The default wait_timeout variable is 28800 seconds, which is 8 hours. That’s a lot.

I’ve read in different forums/blogs that putting wait_timeout too low (e.g. 30, 60, 90) […]