🚀 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 Package Installation Illustrated Tutorial

Previously shared#WebsiteBuilding# Beginner-friendly Baota Panel setup tutorialToday, sharing another website environment installation script, the LNMP one-click package.

Naiba has used this LNMP one-click package to build website environments since starting with VPS; it's incredibly stable and uses fewer resources compared to Baota Panel. Opinions on which is more convenient or secure vary.

What is the LNMP One-Click Package?

Simply put, it installs the necessary program environment for a website (Nginx, MySQL, PHP) on your Linux server.
You just need to enter one command in SSH to start the installation. It looks complex, but it's actually very simple.

LNMP One-Click Installation Tutorial with Images

The official LNMP tutorialis very detailed. Here, based on the official tutorial, it is simplified and explained 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 with '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, which is option 3, then press Enter. If you have less than 1GB of RAM, installing the default 5.5 is fine (however, later onWordPressMySQL 5.5 might become unsupported, so it's 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 (in some cases, just Backspace works). After entering, press Enter to proceed to the next step, as shown in the image below:

LNMP安装教程

选择PHP版本

For the InnoDB engine of the database, 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 set up WordPress, it is recommended to choose 7.2.6. If you are not using WordPress, please first confirm if your application supports PHP 7 or above.

是否安装内存优化


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

Then it's a waiting game. Depending on the machine's performance and network speed, it could take from 30 minutes to several hours.

Finally, when the image below appears, it means the installation was successful.

LNMP安装成功。


If your screen does not look like the one above and has red error messages, then the installation has failed. There's no need to investigate the problem; simply go to your VPS management backend, reinstall the operating system, and start over.

Post-Installation Steps for 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.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the 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 QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: