- 设置静态IP
1)编辑配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0(默认是dhcp)
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.177.128 NETMASK=255.255.255.0 GATEWAY=192.168.177.2 HWADDR=00:0C:29:EE:60:EF ONBOOT=yes
2)编辑DNS配置文件:/etc/resolv.conf; generated by /sbin/dhclient-script search localdomain nameserver 192.168.177.2
或直接在/etc/sysconfig/network-scripts/ifcfg-eth0,添加如下配置
DNS1=192.168.177.2
3)重启网络服务:service network restart
- 添加普通用户sudo权限
a)修改配置文件/etc/sudoersvisudo -f /etc/sudoers
#添加如下配置项 yuyj ALL=(ALL) ALL Defaults:yuyj timestamp_timeout=-1
- 修改主机名及host
a)修改配置文件/etc/hosts
b)修改配置文件/etc/sysconfig/network192.168.177.181 S181
HOSTNAME=S181
- 安装文件传送工具lrzsz
sudo yum -y install lrzsz.x86_64
安装mysql./mysql_install_db --basedir=/home/yuyj/software/mysql-5.6.22 --datadir=/home/yuyj/software/mysql-5.6.22/data