查看ip地址:ifconfig
修改ip地址:/etc/sysconfig/network-scripts/ifcfg-enoxxx
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno"
UUID="e2926f11-5e90-40f9-8a64-408d44cad4c5"
ONBOOT="yes"
IPADDR0="192.168.10.101"
PREFIX0="24"
GATEWAY0="192.168.10.2"
HWADDR="00:0C:29:27:4F:03"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
重启网卡:systemctl restart network
创建同一包管理: mkdir -p /export/software 存安装包 mkdir -p /export/servers 存相关服务
查询当前mysql版本号及当前时间:select version(),CURRENT_DATE