Aliyun ECS Server Mount data disk and install LNMP1.3 version process record

Source: Internet
Author: User
Tags mysql version pack aliyun
Every year, 6.1 is the brother Lnmp. The day the version of the script was upgraded, as the official version of the LNMP1.3 was released this year, according to the official documentation provided, it must include optimizing the script, upgrading the component version, and supporting the PHP7 version, increasing MYSQL5.7 support, and fixing the various existing security issues. Although the recent period of time another Oneinstack script user is also relatively large, but there are still a lot of user habits lnmp, so has been in use, but a slight update speed a bit slow.

However, for the general web site requirements, the LNMP script environment is relatively able to meet the common application environment. After all, in so many years of user use to accumulate a lot of use documents can be consulted. Today, a friend asked Lao Zuo to help his Aliyun ECS server mounts the data hard disk and installs the latest version of the LNMP1.3 version. So this process is recorded, after all, 1.3 version after this update I have not used, incidentally see what changes.

First, Aliyun ECS mount data disk

Old left not clear this friend is what I think, the default Aliyun ECS Server system disk has 40GB, he also went to buy a 50GB data disk, and the site data is only a few GB, is tyrants's idea is different from us?

1, check the data disk

We can see that the/dev/xvdb/data disk has 53GB does not mount, this is also the friend buys the data disk, because will use the LNMP one key package, the site will use the home folder, therefore we can mount the data disk to the home directory.

2, Mounted data hard disk (FDISK/DEV/XVDB)

According to the prompts we enter N P 1 in turn return car return Wq

3. View Mount (FDISK-L)

We can see that the Mount disk is already in, and we need to load it into the directory.

4. Format partitions, create directories, and mount

The code is as follows Copy Code

Mkfs.ext3/dev/xvdb1
Echo '/dev/xvdb1/home ext3 defaults 0 0 ' >>/etc/fstab
Mount-a

Generally we use the environment has a home directory, so there is no need to create a directory, such as if you need a special directory mount, it is necessary to create a directory mkdir. After the mount is over, we'll see if it's successful.

We can see that the catalog has been created and mounted, and there are 50GB in the home directory and we can install the LNMP environment pack.

Second, install LNMP1.3 one key package

The code is as follows Copy Code

Screen-s LNMP
Wget-c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz && tar zxf lnmp1.3-full.tar.gz && CDs Lnmp1.3-full &&/install.sh Lnmp

We use the official one-click Package installation, but the Aliyun ECS server drags the default packets very slowly, so I used the official supply of the domestic node.

The code is as follows Copy Code

Domestic node Pack: https://api.sinas3.com/v1/SAE_lnmp/soft/lnmp1.3-full.tar.gz

Then we based on the actual requirements, choose to set the MySQL password, php version, MySQL database version, install cache optimization, compared to oneinstack installation settings This is still simple, because other components support we can install after LNMP installation. Compared to the LNMP1.2 version of the installation process, the interface is the same, except for the PHP7 and MySQL version of the update options, the other is the same.

If we see this interface to indicate that the installation is complete, then we restart it to take effect.

Summary, through the above process implementation we can mount the Aliyun ECS server after the installation LNMP a key package program, the default is to use the home directory, so we can mount to the home directory. Here is a question to solve, such as the Aliyun system disk has 40GB, we can be the system disk with the purchased data hard disk and then to mount the use. It is a bit cumbersome to configure the LVM implementation according to the general introduction of P.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.