From 945dda03ebafc16b2544d845c7416b52f4dca9f1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 12 Dec 2022 23:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os/get-os-init.sh | 4 ++-- os/get-py3104.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/os/get-os-init.sh b/os/get-os-init.sh index 51153a0..7dcb8f3 100644 --- a/os/get-os-init.sh +++ b/os/get-os-init.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 && \ diff --git a/os/get-py3104.sh b/os/get-py3104.sh index dee8f79..345d299 100644 --- a/os/get-py3104.sh +++ b/os/get-py3104.sh @@ -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 <