
Mr. Zheng
书籍备而不读如废纸
基本所有的VPS商家,都会提供免费的Linux系统供安装,如CentOS、Debian、Ubuntu等。那为什么还要使用一键DD脚本重装/更换系统呢?
以上几种情况,一键DD脚本就可以为服务器更换一个纯净的系统,帮你解决问题。
目前CentOS系统只支持任意版本重装为 CentOS 6.x 及以下版本. 特别注意: OpenVZ构架不适用。
注意重装有风险,可能导致无法开机,谨慎操作!
使用脚本前最好先安装如下软件
# CentOS 与 RedHat
yum install -y xz openssl gawk file wget
# Debian 与 Ubuntu
apt-get install -y xz-utils openssl gawk file
##镜像文件在OneDrive
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-od.sh && chmod +x dd-od.sh && ./dd-od.sh
##镜像文件在GoogleDrive
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh
Github 地址:https://github.com/veip007/dd
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
# 安装CentOS 6.10 64位
bash InstallNET.sh -c 6.10 -v 64 -a --mirror 'http://mirror.centos.org/centos'
# 安装CentOS 7
wget --no-check-certificate -qO AutoDD.sh 'http://git.io/autodd.sh' && bash AutoDD.sh
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
# 安装 debian 8 64位
bash InstallNET.sh -d 8 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'
# 安装 debian 9 64位
bash InstallNET.sh -d 9 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
# 安装ubuntu 16.10 64位
bash InstallNET.sh -d 16.10 -v 64 -a --mirror 'http://archive.ubuntu.com/ubuntu/'
# 安装ubuntu 18.10 64位
bash InstallNET.sh -u 18.10 -v 64 -a --mirror 'http://archive.ubuntu.com/ubuntu/'
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -d 9 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/'
bash InstallNET.sh -d 9 -v 64 -a --mirror 'https://mirrors.aliyun.com/debian/'
bash InstallNET.sh -d 9 -v 64 -a --mirror 'https://mirrors.cloud.tencent.com/debian/'
# 所有脚本都可以加入参数 -p 来设置默认密码,如:
bash InstallNET.sh -d 9 -v 64 -p 123456 -a --mirror 'https://mirrors.cloud.tencent.com/debian/'
安装后默认端口: 22
安装后默认用户名: root
安装后默认密码: MoeClub.org