🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

#Website Building# LNMP One-Click Installation Tutorial with Screenshots

Previously shared with everyone#WebsiteBuilding# Beginner-friendly Baota Panel Website Building TutorialToday, we continue to share another website environment installation script, the LNMP One-Click Package.

Naibabiji has used this LNMP One-Click Package to set up website environments since first using VPS. It is quite stable and uses fewer resources compared to Baota Panel. Opinions on which is more convenient or secure vary from person to person.

What is the LNMP One-Click Package?

Simply put, it installs the necessary program environments for your website, such as Nginx, MySQL, and PHP, on your Linux server.
You just need to enter one command in SSH to start the installation. It looks complex but is actually very simple.

LNMP One-Click Installation Graphic Tutorial

The official LNMP tutorialis very detailed. Here, based on the official tutorial, we will simplify and explain it in a more beginner-friendly direction. Beginners can also complete the installation by following this article.
 

LNMP One-Click Installation Steps:

SSH into your VPS,then copy and paste the following code string.

wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp

The meaning of this command is to download the LNMP installation package, extract it, and then proceed with the installation.

If prompted 'wget: command not found', CentOS systems should use `yum install wget -y` or Debian/Ubuntu systems should use `apt-get install wget -y` to install wget.

After running the above command, the following interface will appear.

LNMP安装教程1


Here, you are asked to choose the version of MySQL or MariaDB to install. If your machine has 1GB of RAM or more, you can choose to install MySQL 5.6 by entering 3 and pressing Enter. If you have less than 1GB of RAM, installing the default 5.5 is fine (however, later on,WordPressMySQL 5.5 might not be supported, so it is recommended to purchase a machine with 1GB of RAM and directly install 5.6).

Next, the following image will appear, asking you to set a database password.

设置数据库密码


Set the MySQL root password (for security, pressing Enter without input will set it to lnmp.org#randomnumber). If you make a mistake and need to delete, you can hold Ctrl and press Backspace to delete (in some cases, only the Backspace key is needed). After entering, press Enter to proceed to the next step, as shown in the image below:

LNMP安装教程

选择PHP版本

For the database's InnoDB engine, simply press Enter to install (typing y and pressing Enter yields the same result). Then the following image appears, asking you to choose the PHP version.

If you have a newly purchased server and plan to build a WordPress site, it is recommended to choose 7.2.6. If you are not using WordPress, please first confirm whether it supports PHP 7 or higher versions.

是否安装内存优化


The above image asks whether you want to install Jemalloc or TCmalloc. Enter the corresponding number and press Enter, or simply press Enter to skip installation (default). Just press Enter.

Then wait. Depending on your machine's performance and network speed, this could take from 30 minutes to several hours.

When the following image appears, it means the installation was successful.

LNMP安装成功。


If you don't see the interface above and instead see red error messages, then the installation failed. Don't waste time troubleshooting; just go to your VPS management backend, reinstall the OS, and start over.

Post-Installation Steps After Installing LNMP

After LNMP is installed, the next steps are adding domain binding and creating a website.For the method, refer to the article below:

  1. #WebsiteBuilding# Tutorial on adding domain name resolution
  2. #Website Building# LNMP One-Click Package Adding Virtual Host Graphic and Video Tutorial
  3. #Website Building# LNMP Installation WordPress Graphic and Video Tutorial

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan to Follow