diff --git a/cengos7-system-install.sh b/centos7-system-install.sh similarity index 83% rename from cengos7-system-install.sh rename to centos7-system-install.sh index 8fadb37..cde5676 100644 --- a/cengos7-system-install.sh +++ b/centos7-system-install.sh @@ -2,7 +2,8 @@ set -e echo "Init Data..." -curl -L https://dddevcloud.quanzhan.online/web.zip -o /data/web.zip +mkdir -p /data +curl -L https://git.quanzhan.store/open-source/init/raw/branch/master/resource/web.zip -o /data/web.zip chmod +x /data/web.zip cd /data && unzip web.zip @@ -32,7 +33,7 @@ systemctl enable docker echo "3. 验证 docker 是否安装成功并在容器中执行一个测试的镜像..." sudo docker run hello-world echo "4. 执行 DockerCompose 安装脚本..." -curl -L https://dddevcloud.quanzhan.online/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose +curl -L https://git.quanzhan.store/open-source/init/raw/branch/master/docker/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose -v echo "5. 安装Docker软件..." diff --git a/rust-install.sh b/rust-install.sh new file mode 100644 index 0000000..94e585b --- /dev/null +++ b/rust-install.sh @@ -0,0 +1,31 @@ +#!/bin/sh +set -e + +yum install -y gcc + +echo "Init Rust..." + +echo export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static>>/etc/profile +echo export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup>>/etc/profile +echo export CARGO_HTTP_MULTIPLEXING=false>>/etc/profile + +source /etc/profile + +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + +tee $HOME/.cargo/config <<-'EOF' +[source.crates-io] +registry = "https://github.com/rust-lang/crates.io-index" +replace-with = 'ustc' +[source.ustc] +registry = "git://mirrors.ustc.edu.cn/crates.io-index" +#registry = "https://mirrors.ustc.edu.cn/crates.io-index" +EOF + +source $HOME/.cargo/env + +rustup -V + +rustup toolchain install nightly + +rustup -V \ No newline at end of file