rm -f /etc/localtime
cp /usr/share/zoneinfo/asia/shanghai /etc/localtime
yum install wget
rm -f /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/centos-7.repo
curl -o /etc/yum.repos.d/epel-7.repo
如何需要最新版本的rpm包,請安裝下面的倉庫
rpm -uvh
rpm -uvh
sed -i 's#selinux=enforcing#selinux=disabled#g' /etc/selinux/config
setenforce 0
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop networkmanager
systemctl disable networkmanager
yum install -y vim openssh-clients ntpdate man lrzsz net-tools
echo "$((random%60)) $((random%24)) * * * /usr/sbin/ntpdate time1.aliyun.com" >> /var/spool/cron/root
vim /etc/hostname
#臨時修改,立刻生效
ulimit -n 655350
#永久修改
echo "* soft nofile 655360" >> /etc/security/limits.conf
echo "* hard nofile 655360" >> /etc/security/limits.conf
cat >> /etc/modprobe.d/ipv6.conf 《配置國內pip源
mkdir .pip
cat >> .pip/pip.conf 《安裝yum源
yum install -y
可以安裝的版本很多,我們這裡安裝python3.6
yum install -y python36u python36u-libs python36u-devel python36u-pip
驗證
[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
>>> exit()
>>>
[root@localhost ~]# pip3.6 -v
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)
配置國內pip源
mkdir .pip
cat >> .pip/pip.conf <[global]
trusted-host = pypi.douban.com
index-url =
eof
CentOS7 安裝部署GitLab伺服器
一,安裝 安裝,2 連線出錯502 3 解決ok安裝,2 連線出錯502 3 解決ok502 gitlab is not responding.please contact your gitlab administrator if this problem persists.一 安裝中 安裝依賴軟體...
centos7上svn伺服器部署
步驟一 安裝subversion伺服器 yum y install subversion 若需檢視svn安裝位置,可以用以下命令 rpm ql subversion 步驟二 啟動服務並建立版本庫 mkdir p usr local svndata svnserve d r usr local svn...
centos7安裝部署gitlab伺服器
1.安裝依賴軟體 yum y install policycoreutils openssh server openssh clients postfix 2.設定postfix開機自啟,並啟動,postfix支援gitlab發信功能 systemctl enable postfix systemc...