Generally, after we purchase the server, we will directly select a familiar version to install according to the vendor's own image. Basically, there is no problem. At most, we can directly update the source to solve some software that is not built-in. However, some system vendors will customize some software in it, or sometimes we can't install some software when we install it. We will choose a custom image, but not all businesses can hang it.
![CentOS/Debian/Ubuntu one click reinstallation pure version system script sorting](https://images.laozuo.org/wp-content/uploads/2019/04/changeos.jpg)
For example, when Lao Zuo debugged and installed the remote desktop in the article, his own image could not be installed, so he installed the pure CentOS system( One click quick installation of CentOS7 pure system version )To solve the problem. Here Lao Zuo sees that cute students have sorted out to CentOS/Debian/Ubuntu to install the pure version system with one click. There are three kinds of regular images supported here, but CentOS only supports 6. X version (reference: https://moeclub.org/2018/04/03/603/ )。
First, installation of prerequisite software
#Debian/Ubuntu:
apt-get update -y
apt-get install -y xz-utils openssl gawk file
#RedHat/CentOS:
yum update -y
yum install -y xz openssl gawk file
It should be noted here that if the update fails, we need to change the source, such as Alibaba Cloud and 163 source. For example“ CentOS replaces Alibaba Cloud yum source to solve the problem of unable to update And Solve the problem that the Debian environment cannot update the source and replace the AliCloud image "。
Second, how to use one key script
wget --no-check-certificate -qO InstallNET.sh ' https://moeclub.org/attachment/LinuxShell/InstallNET.sh ' && chmod a+x InstallNET.sh
We need to download the script first.
bash InstallNET.sh -d/--debian [dist-name] -u/--ubuntu [dist-name] -c/--centos [dist-version
Install the version as needed.
Third, for example, install different versions
1. CentOS6.8 64 bit
bash InstallNET.sh -c 6.8 -v 64 -a
2. Debian8 64 bit
bash InstallNET.sh -d 8 -v 64 -a
3. Ubuntu 16.04 64 bit
bash InstallNET.sh -u xenial -v 64 -a
Lao Zuo doesn't test and install them one by one. Install feedback when necessary. After installation, the default password is Vicer, and we need to reset the password ourselves after installation.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge