CentOS7 minimal installation configuration (7.8)

One, configure DHCP or static IP
1.DHCP

vim /etc/sysconfig/network-scripts/ifcfg-ens33

Insert picture description here

systemctl restart network
ping www.baidu.com

2. Configure static IP

Insert picture description here

systemctl restart network
ping www.baidu.com

2. Install common tools

  1. Install ifconfig, vim, upload tool
yum -y install net-tools  vim  lrzsz

Three, configure ssh connection acceleration

vim /etc/ssh/sshd_config
修改以下配置
UseDNS no
GSSAPIAuthentication no

systemctl restart sshd

Insert picture description here
Fourth, turn off the firewall

systemctl stop firewalld
systemctl disable firewalld

Close selinux

vim /etc/selinux/config
SELINUX=disabled

Insert picture description here
5. Set the handle
In order to solve the problem that Squid under high load, the number of open files in mysql will exceed the process limit of the system, causing system bottleneck.

vim /etc/security/limits.conf
* soft nofile 10240
* hard nofile 10240

Insert picture description here
Restart the system

reboot

Insert picture description here
Just save the snapshot

Guess you like

Origin blog.csdn.net/APPLEaaq/article/details/109295849