Last update at :2023-12-28,Edit by888u
For those who have just purchased a Starlight Internet vps host, they may find that they cannot install various environments when using it for the first time, or after installing it, they may find that the hard drive capacity does not match what was purchased and placed the order, and they may have thought they were deceived. oh! In fact, the Starlight vps host still has a large part of the hard disk that needs to be mounted by itself. Last time, this site also reprinted the relevant tutorials of Starlight Girl for the first time. Today, I will mount the data disk again and install the WDCP tutorial. The mounting process may be the same as the previous one. There is a slight difference in the article "Tutorial on Mounting Data Disk on Starlight Internet VPS Host". In fact, the methods are similar, because this site likes the mounting method written today!
The test system used is centos6 series! I am using a vps host in Sha Tin, Hong Kong. I purchased it for the first time during the promotion launched in March. The memory was upgraded to 1G memory!
Initial partition related operations
1. Synchronize the update source and install related software.
Debian & Ubuntu:
apt-get update apt-get -y install kpartx lvm2
CentOS & Fedora:
yum -y install kpartx lvm2
Warning: The following steps will cause the original data in /dev/vdb to be completely lost. Please ensure that the data in /dev/vdb has been backed up.
2. Clear the partition table of /dev/vdb.
kpartx -d /dev/vdb dd if=/dev/zero of=/dev/vdb bs=512 count=1
The above two steps are recommended to be used after reinstalling the system, or you can start directly from the third step!
3. Create a partition on /dev/vdb:
fdisk /dev/vdb
4. View new partitions
Using the "fdisk -l" command, you can see that the new partition vdb1 has been created.
5. Format new partition command: mkfs.ext4 /dev/vdb16. Mount partition
Command: mkdir /www #Create a mount point
mount /dev/vdb1 /www # Mount the vdb partition disk to the /www directory (if you need to change www to home according to AMH requirements)
df -h # View the list of mounted disks
7. Write the information to fstab and let the system enable automatic mounting
Command: echo “/dev/vdb1 /www ext4 defaults 0 1″ >> /etc/fstab
Command: cat /etc/fstab # Check whether the configuration file is written
8. Installation of WDCP V3 version
wget http://dl.wdlinux.cn/files/lanmp_v3.tar.gz
tar zxvf lanmp_v3.tar.gz
sh lanmp.sh
In addition, when using the WGET command, a prompt such as: wget: command not found
appears, which actually means that the system WEGT is not installed. The installation method is very simple, you only need the following command! Enter the command: yum -y install wget
and WGET will be installed automatically, so the problem is solved!
Recommended site search: best US server, dynamic mainland China IP proxy, telecom host rental, server proxy IP, personal domain name registration, free domain name space, independent IP host, server high defense Hong Kong, how to register the website, how to buy Virtual host,
发表评论