修改域名

master
Your Name 2 years ago
parent a3a51074a0
commit 945dda03eb
  1. 4
      os/get-os-init.sh
  2. 6
      os/get-py3104.sh

@ -47,7 +47,7 @@ local_yum_make(){
10.8.161.40 package.qf.com
EOF
fi
curl -o /etc/yum.repos.d/centos7.repo http://download.beyourself.org.cn/repo/centos7-repo && \
curl -o /etc/yum.repos.d/centos7.repo http://download.beyourself.org.cn/download/repo/centos7-repo && \
yum repolist && yum clean all && yum makecache && \
color Success "本地源配置完成" || color Error "yum配置错误,可以\ncd /etc/yum.repos.d/ && rm -rf centos7.repo && rename .repo.bak .repo *.repo.bak \n使用手动恢复历史yum"
}
@ -82,7 +82,7 @@ init(){
remote_yum_make
fi
color Info "开始安装常用软件"
yum install -y wget unzip vim yum-utils httpd-tools psacct net-tools nc ntpdate jq htop && \
yum install -y wget unzip vim yum-utils httpd-tools psacct net-tools nc ntpdate jq htop bash-completion && \
color Success "安装完成" || color Warning "部分包可能失败"
color Info "开始进行时间校准"
ntpdate ntp.aliyun.com && \

@ -13,12 +13,12 @@ mkdir -pv $path
cd $path && \
yum -y install gcc gcc-c++ zlib-devel bzip2-devel sqlite-devel readline-devel libffi-devel && \
color Info "openssl 包下载,请稍等..." && \
wget http://download.beyourself.org.cn/package/openssl-1.1.1n.tar.gz && \
wget http://download.beyourself.org.cn/download/package/openssl-1.1.1n.tar.gz && \
tar xf openssl-1.1.1n.tar.gz && \
cd openssl-1.1.1n && \
./config --prefix=/usr/local/openssl && \
make -j $(cat /proc/cpuinfo | grep processor |wc -l) && make install && cd .. && \
wget http://download.beyourself.org.cn/package/Python-3.10.4.tar.xz && \
wget http://download.beyourself.org.cn/download/package/Python-3.10.4.tar.xz && \
tar xf Python-3.10.4.tar.xz && \
cd Python-3.10.4 && \
./configure --enable-shared --prefix=/usr/local/python3.10.4 --with-openssl=/usr/local/openssl --with-openssl-rpath=auto && \
@ -36,4 +36,4 @@ tee ~/.pip/pip.conf <<EOF
index_url=https://mirrors.aliyun.com/pypi/simple
timeout=6000
EOF
color Success "配置完成"
color Success "配置完成"

Loading…
Cancel
Save