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 network interface name (eno* to eth0)

[CentOS 7.0] Change network interface name (eno* to eth0) Step1) # vim /etc/udev/rules.d/70-persistent-net.rules ———————————————————————– # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:7b:d8:06“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eno16777736“, NAME=”eth0” ———————————————————————– or ———————————————————————– # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:7b:d8:06“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eno*“, NAME=”eth0” ———————————————————————– Step2) # mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ifcfg-eth0

Step3) # vim /etc/sysconfig/network-scripts/ifcfg-eth0 ———————————————————————– HWADDR=”00:0C:29:7B:D8:06″ […]

[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) […]

Detailed MySQL basic commands

Detailed MySQL basic commands

Format: mysql -h host address -u user name -p User password

1, is connected to the machine on MYSQL. First, open a DOS window, then enter the directory mysql \ bin, then type the command mysql -u root -p, you lose the password prompt after the carriage return may or may […]

CentOS 7.0 server installation configuration vsftp

CentOS 7.0 server installation configuration vsftp

First, configure the firewall to open the ports needed to FTP server

CentOS 7.0 is the default firewall as a firewall, here to iptables firewall. 1, closed firewall:

systemctl stop firewalld.service # Stop firewall

systemctl disable firewalld.service # prohibit firewall boot

2. Install iptables firewall

yum install iptables-services # […]

Centos7 on an HP G5 DL380

Starting with RHEL/EL7 the drivers for the raid controller card, the P400i, are no longer loaded in by default. When you go to install Centos 7 on one of these you will likely see that it doesn’t detect your LD.

When you boot up and go into the install, press tab to get to your […]