国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
CentOS 7 新裝服務(wù)器部署流程

1、設(shè)置時(shí)區(qū)

rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2、配置內(nèi)網(wǎng)IP (如果是外網(wǎng)IP,linux要修改遠(yuǎn)程端口)

3、配置自己的yum源

yum install wget
rm -f /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel-7.repo https://mirrors.aliyun.com/repo/epel-7.repo

如何需要最新版本的rpm包,請(qǐng)安裝下面的倉(cāng)庫(kù)

rpm -Uvh http://repo.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

4、關(guān)閉SELinux

sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
setenforce 0

5、添加zabbix監(jiān)控

6、關(guān)閉防火墻和NM

systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop NetworkManager
systemctl disable NetworkManager

7、安裝軟件包

yum install -y vim openssh-clients ntpdate man lrzsz net-tools

8、時(shí)間同步任務(wù)

echo "$((RANDOM%60)) $((RANDOM%24)) * * * /usr/sbin/ntpdate time1.aliyun.com" >> /var/spool/cron/root

9、配置主機(jī)名

vim /etc/hostname

10、修改文件句柄數(shù)

#臨時(shí)修改,立刻生效
ulimit -n 655350         

#永久修改
echo "* soft nofile 655360" >> /etc/security/limits.conf
echo "* hard nofile 655360" >> /etc/security/limits.conf

11、可以禁用ipv6

cat >> /etc/modprobe.d/ipv6.conf <<EOF
alias net-pf-10 off
alias ipv6 off
EOF

12、去除ssh遠(yuǎn)程DNS認(rèn)證

sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config
sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/g' /etc/ssh/sshd_config
systemctl restart sshd

13、配置LDAP客戶端

yum install openldap-clients nss-pam-ldapd -y
authconfig --enablemkhomedir --disableldaptls --enablemd5 --enableldap --enableldapauth --ldapserver=ldap://211.x.x.27:8389 --ldapbasedn="dc=wzlinux,dc=com" --enableshadow --update

14、安裝python3(epel方式)

yum install -y python36-setuptools
easy_install-3.6 pip

配置國(guó)內(nèi)pip源

mkdir .pip
cat >> .pip/pip.conf <<EOF
[global]
trusted-host =  pypi.douban.com
index-url = http://pypi.douban.com/simple
EOF

15、安裝python3(rpm方式)

安裝yum源

yum install https://centos7.iuscommunity.org/ius-release.rpm -y

可以安裝的版本很多,我們這里安裝python3.6

yum install -y python36u python36u-libs python36u-devel python36u-pip

驗(yàn)證

[root@localhost ~]# python3.6
Python 3.6.5 (default, Apr 10 2018, 17:08:37) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
>>> 
[root@localhost ~]# pip3.6 -V
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)

配置國(guó)內(nèi)pip源

mkdir .pip
cat >> .pip/pip.conf <<EOF
[global]
trusted-host =  pypi.douban.com
index-url = http://pypi.douban.com/simple
EOF
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
yum 報(bào)錯(cuò)處理
centos6.6通過(guò)yum 安裝ceph
在CentOS 6.5上安裝RHEL EPEL Repo
linux服務(wù)器搭建之路1-安裝各種軟件
RHEL/CentOS 6.x使用EPEL6與remi的yum源安裝MySQL 5.5.x
centos初始化環(huán)境
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服