Centos 7 安装 部署环境 新机配置

Centos 7 安装 部署环境 新机配置

  • 关闭SELINUX 【这是一个 Linux 内核模块,也是个安全子系统】
1.输入命令 vim /etc/selinux/config 进入配置文件

2.将SELINUX的值设置为 disabled
  • 修改系统文件数量打开数量
vim /etc/security/limits.conf ,在最下方添加 一下内容
* soft nofile 102400
* hard nofile 102400
  • yum 源配置,这里使用阿里的,如果是公司有内网私服,更换地址即可
# 备份
cd /etc/yum.repos.d/ && mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

# 下载
curl -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

# 生成缓存
yum makecache
  • 配置 ntp 时间同步
202.112.10.36 # 1.cn.pool.ntp.org
s2c.time.edu.cn 北京邮电大学

# 安装 ntp 时间服务
yum install ntp -y 

# 先手工同步下时间
ntpdate -u 202.112.10.36
同步结果如下:
13 Jan 16:46:15 ntpdate[398]: adjust time server 202.112.10.36 offset -0.002473 sec

# 修改配置
vim /etc/ntp.conf 
添加 server 202.112.10.36 iburst

# 启动
systemctl enable ntpd
systemctl start ntpd

# 检测是否设置成功
ntpq -p
得到一下内容:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*gus.buptnet.edu 10.3.8.150       4 u   23   64    7   44.607    1.931   5.726

remote   - 本机和上层ntp的ip或主机名,“+”表示优先,“*”表示次优先
refid    - 参考上一层ntp主机地址
st       - stratum阶层
when     - 多少秒前曾经同步过时间
poll     - 下次更新在多少秒后
reach    - 已经向上层ntp服务器要求更新的次数
delay    - 网络延迟
offset   - 时间补偿
jitter   - 系统时间与bios时间差
  • 如果是由 EXSI 管理的服务器,安装 VMware Tools
    先在EXSi点击安装
    在这里插入图片描述
# 挂载
mount /dev/cdrom /mnt/

# 解压安装
tar -zxvf /mnt/VMwareTools-10.2.0-7253323.tar.gz 
cd vmware-tools-distrib/
echo 'yes' | ./vmware-install.pl

# 安装完重启
reboot
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值