首先安装系统之前
1,我们需要检查,服务器光驱和系统盘是否有问题
2,检查服务器的各种硬件是否支持CentOS 6.9
下载CentOS系统ISO镜像的说明
要安装CentOS系统,就必须有CentOS系统软件安装程序,可以通过浏览器访问CentOS的官方站点http://www.centos.org,然后在导航栏找到“
然后在导航栏找到“Downloads→Mirrors”链接,单击进入后即可下载,或者打开如下的地址直接选择国内的高速镜像站点进行下载
![图片[1]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/72ccb-20220320093955image391.png)
开机启动安装
![图片[2]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/b5002-20220320121456image833.png)
更改网卡名称
![图片[3]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/cc178-20220320121740image182.png)
安装基础操作
选择中文,继续
![图片[4]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/74d18-20220320122357image668.png)
日期和时间,选择上海。软件选择,Gnome桌面
![图片[5]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/9874a-20220320122647image508.png)
开始系统分区
![图片[6]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/ef928-20220320123217image620.png)
![图片[7]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/5d1f6-20220320123247image869.png)
网络设置
![图片[8]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/689f4-20220320123811image740.png)
点击确定后,安装。用户设置 root密码,如果你设置的密码过于简单会有提示,直接双击两下确定就可以了
![图片[9]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/a0b02-20220320123916image498.png)
安装成功后查看ip
![图片[10]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/263af-20220320125806image914.png)
配置一下 第二块网卡内网
![图片[11]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/c6578-20220320131636image151.png)
查看配置的IP是否生效
![图片[12]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/d0a3d-20220320131800image547.png)
xshell连接虚拟机开始优化
![图片[13]-富哥指导CentOS 7.9最小安装-我的运维技术站](https://cdn.92fuge.com/92fuge.com//2023/06/6c045-20220320131926image808.png)
优化YUM仓库
cp -pr /etc/yum.repos.d /etc/yum.repos.d-bak
rm -f /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
安装基础软件包
yum install net-tools vim tree htop iftop \
iotop lrzsz sl wget unzip telnet nmap nc psmisc \
dos2unix bash-completion bash-completion-extras sysstat \
rsync nfs-utils httpd-tools -y
闭防火墙firewalld
systemctl disable firewalld
systemctl stop firewalld
关闭selinux
sed -i '/^SELINUX=/c SELINUX=disabled' /etc/selinux/config
调整单个进程最大能打开文件的数量
echo '* - nofile 65535' >> /etc/security/limits.conf
优化中文字符集
localectl set-locale LANG=zh_CN.utf8
内核参数优化
cat >>/etc/sysctl.conf<<EOF
net.ipv4.tcp_fin_timeout = 2
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_keepalive_time = 600
net.ipv4.ip_local_port_range = 4000 65000
net.ipv4.tcp_max_syn_backlog = 16384
net.ipv4.tcp_max_tw_buckets = 36000
net.ipv4.route.gc_timeout = 100
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_synack_retries = 1
net.core.somaxconn = 16384
net.core.netdev_max_backlog = 16384
net.ipv4.tcp_max_orphans = 16384
EOF
sysctl -p
感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
暂无评论内容