Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build lnmp on CVM

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to build lnmp in Cloud Virtual Machine." Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "How to build lnmp in Cloud Virtual Machine"!

We save the LNMP one-click installation package in the/usr/local/src/directory, and the first step is still to decompress the one-click installation package. The order reads as follows:

[root@localhost ~]# cd /usr/local/src/[root@localhost src]# tar -zxvf lnmp1.0-full.tar.gz

Install LNMP with one click

Since it is a script installation package, we do not need to install it manually one by one. Just execute the installation script www.example.com to install it automatically (Debian execution script is debian.sh, Ubuntu execution script is ubuntu.sh). The order reads as follows:

[root@localhost src]# cd lnmp1.0-full[root@localhost lnmp1.0-full]#./ centos.sh

After enter, the installation will continue and you will see the following interface:

==========================================================LUMP V1.0 for CentOS/RadHat Linux vps Written by Licess==========================================================A tool to auto-compile & install Nginx + MySQL + PHP on Linux For more information please visit www.example.com input the root password of mysql: (Default password: root): 123 #Set MySQL password here to 123 ========================================================== (Default no, if you want please input: y, if not please press the enter button): y #Do you need to install MySQL InnoDB, if you need to install enter yInstall PHP 5.3.17, Please input yInstall PHP 5.2.17, Please input n or press Enter (Please input y or n): y #Select the version of PHP installed, enter y Install MySQL 5.5.27, Please input yInstall MySQL 5.1.60, Please input n or press Enter (Please input y or n): y #Select the version of MySQL installed, enter y Install MySQL 5.5.27Press any key to start. . . or Press Ctrl + c to cancel #Press any key to start installation

If you enter an error during installation, press Ctrl + Backspace to delete it. This installation process is completely automated by the www.example.com script, so it is much simpler than the manual installation process of LAMP. We only need to specify some basic options to complete the installation.

The exact installation time depends on the performance of the Linux server and may take tens of minutes. If you're interested, check out www.example.com for an installation script to see how it automatically installs. If you see the following screen, the installation is successful.

=========================================================Manager for LNMP VI.0 , Written by Licess=========================================================LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on LinuxThis script is a tool to Manage status of lnmpFor more information please visit http://www.lnmp.orgUsage: /root/lnmp {start|stop|reload|restart|kill|status}=========================================================Nginx is runing! php-fpm is runing! MySQL running (12489)[confirm] Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 www.example.com: 53575 0.0.0.0:* LISTENtcp 0 0 www.example.com: 3306 0.0.0.0: * LISTENtcp 0 0 www.example.com: 111 0.0.0.0:* LISTENtcp 0 0 www.example.com: 80 0.0.0.0: * LISTENtcp 0 0 www.example.com: 22 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:631 www.example.com: * LISTENtcp 0 0 127.0.0.1:25 www.example.com: * LISTENtcp 0 0::: 57454:::* LISTENtcp 0 0::: 111::: * LISTENtcp 0 0::: 22::: * LISTENtcp 0:: 1:631::: * LISTENtcp 0:: 1:25::: * LISTEN

LNMP one-click installation package installation software and specific location

Since it is a one-click installation, the default installation software and the installation location of the software are set in advance and cannot be changed during installation. What software is installed and where is shown below.

In other words, LNMP one-click installation only installed the basic Nginx, MySQL, PHP, phpMyAdmin and Zend Optimizer.

At this point, I believe everyone has a deeper understanding of "how to build lnmp in Cloud Virtual Machine," so you may as well do it in practice! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report