Linux 的基本配置

  Linux

1.SSH

禁止密码登录

2. A start job is running for wait for network to be configured

Run the command as below,

root@XSHQSHE02:~# systemctl mask systemd-networkd-wait-online.service

3.CentOS 密令该yum仓库( repository)

# sed -i ‘s/mirrorlist/#mirrorlist/g’ /etc/yum.repos.d/CentOS-*

# sed -i ‘s|#baseurl=http://mirror.centos.org|baseurl=

http://vault.centos.org|g’ /etc/yum.repos.d/CentOS*

4. MySQL 5.7 initial password

Actually for mysql community server 5.7, the default root password is randomly generated when you install. Check your /var/log/mysqld.log for a line talking about a “temporary password”. Saves hours of messing around. 

LEAVE A COMMENT