Installing lnmp Online
Introduction
lnmp is compiled using Linux Shell and can be used to install LNMP (Nginx, MySQL, and PHP), LNMPA (Nginx, MySQL, PHP, and Apache), or LAMP (Apache, MySQL, and PHP) for a variety of Linux servers or independent servers.
This tutorial describes how you can install lnmp in HCE 2.0.
Preparations
Prepare an ECS and assign a public IP address or EIP to the ECS.
Procedure
- Run the following command to download lnmp2.0 and decompress it to the directory:
wget http://soft.vpser.net/lnmp/lnmp2.0.tar.gz -O lnmp2.0.tar.gz && tar zxf lnmp2.0.tar.gz && cd lnmp2.0
- Run the following command to modify the main.sh file:
vim include/main.sh
Add an elif judgment to the Get_Dist_Name function.
elif grep -Eqi "Huawei Cloud EulerOS" /etc/issue || grep -Eq "Huawei Cloud EulerOS" /etc/*-release; then DISTRO='HCE' PM='yum'
- Run the following command to modify the init.sh file:
vim include/init.sh
Add the following to the if judgment of the Install_Freetype function:
echo "${HCE_Version}" | grep -Eqi "^2\.[0-9]" ||
- Run the following command to start the installation:
./install.sh lnmp
If the following information is displayed, the installation is successful.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot