Last update at :2024-06-22,Edit by888u
6.1 every year is the day when Jun Ge’s LNMP one-click script version is upgraded. As promised, the official version of LNMP 1.3 will be released this year. According to the official documentation provided, it will definitely include optimizing scripts, upgrading component versions, supporting PHP7 version, and adding MYSQL5 .7 support, and fixes for various recent security issues. Although another OneInstack script has a relatively large number of users recently, there are still many users who are accustomed to LNMP, so they have been using it, but the update speed is a bit slow.
But for general WEB website building needs, the LNMP script environment is still relatively capable of meeting common application environments. After all, after so many years of user use, I have accumulated a lot of usage documents that can be consulted. Today, a friend asked Snail to help his Alibaba Cloud ECS server mount the data hard disk and install the latest version of LNMP 1.3. So I will record this process. After all, I have not used version 1.3 after this update. I will take a look at the changes.
First, Alibaba Cloud ECS mounts the data disk
Snail is not sure what this friend is thinking. By default, the Alibaba Cloud ECS server system disk has 40GB. He also wants to buy a 50GB data disk, and the website data is only a few GB. Is this what the rich think? Are they just different from us?
1. Check the data disk
We can see that 53GB of the /dev/xvdb/ data disk is not mounted. This is the data disk purchased by this friend. Because the LNMP one-click package will be used, the site will use the HOME folder, so We just need to mount the data disk to the HOME directory.
2. Mount the data hard disk (fdisk /dev/xvdb)
According to the prompts, we enter n p 1 Enter Enter wq
3. Check the mounting status (fdisk -l)
We can see that the mounting disk is already there, we need to load it into the directory.
4. Format partition, create directory and mount
mkfs.ext3 /dev/xvdb1echo \\’/dev/xvdb1 /home ext3 defaults 0 0\\’ >> /etc/fstabmount -a
Generally, the environment we use has a HOME directory, so there is no need to create a directory. For example, if a special directory is needed to mount, mkdir is needed to create the directory. After the mounting is complete, let's check whether it was successful.
We can see that the directory has been created and mounted. There is a 50GB drive letter in the HOME directory. We can install the LNMP environment package.
Second, install LNMP1.3 one-click package
screen -S lnmpwget -c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz && tar zxf lnmp1.3-full.tar.gz && cd lnmp1.3-full && ./install.sh lnmp
We used the official one-click package installation, but the Alibaba Cloud ECS server was very slow to drag the default data package, so I used the officially provided mainland China node.
Mainland China node package: https://api.sinas3.com/v1/SAE_lnmp/soft/lnmp1.3-full.tar.gz
Then we choose to set the MYSQL password, PHP version, MYSQL database version, and install cache optimization according to actual needs. Compared with the ONEINSTACK installation setting, it is simpler because other components support us and we can do it after LNMP installation. Install. Compared with the installation process of the LNMP1.2 version, the interface is the same, except that there are more update options for PHP7 and MYSQL versions, and everything else is the same.
If we see this interface, it means the installation is complete, and then we restart it to take effect.
To summarize, through the above process, we can install the LNMP one-click package program after mounting it on the Alibaba Cloud ECS server. The HOME directory is used by default, so we can just mount it to the HOME directory. There is a question that needs to be solved here. For example, the Alibaba Cloud system disk has 40GB. Can we merge the system disk with the purchased data hard disk and then mount it for use. Configure the LVM implementation according to Mr. P's introduction, but it feels a bit troublesome.
Recommended site searches: registered domain name query, registered domain name query, website registration, website virtual host space, me domain name registration virtual host service provider, foreign host shopping guide, cloud host rental, overseas server rental price, foreign domain name, < /p>
发表评论