master
11617 2 years ago
parent c13ac4d9be
commit 2d07ab7734
  1. 4
      os/get-os-init.sh
  2. 4
      os/get-py3104.sh

@ -2,7 +2,8 @@
#set -e
yum_host=192.168.96.197
yum_host=10.36.176.43
yum_host2=10.36.174.100
color(){
unset c
declare -A c=([Error]=31 [Success]=32 [Warning]=33 [Info]=34)
@ -48,6 +49,7 @@ local_yum_make(){
if [ $? -ne 0 ];then
cat >> /etc/hosts <<EOF
$yum_host package.qf.com
$yum_host2 package2.qf.com
EOF
fi
curl -o /etc/yum.repos.d/centos7.repo https://download.beyourself.org.cn/repo/centos7-repo && \

@ -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/download/package/openssl-1.1.1n.tar.gz && \
wget http://download.beyourself.org.cn/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/download/package/Python-3.10.4.tar.xz && \
wget http://download.beyourself.org.cn/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 && \

Loading…
Cancel
Save