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

The method of building CentOS7 LNMP+phpmyadmin environment

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "CentOS7 LNMP+phpmyadmin environment construction method", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "CentOS7 LNMP+phpmyadmin environment construction method"!

Virtual machine and centos7 installation

For those of you who haven't touched linux, it's recommended to start with virtual machine installation. Most of them use vmware. Here, I'm using vmware12. After installation, click Create new virtual machine and customize as shown below.

Next, select Install OS later. Next, select the appropriate version of linux, which I am using 64-bit.

Then select the installation location. Next, configure the number of virtual machine cores. Generally, if you install the command line interface, then 1 core is enough. This time I'm going to do a graphical demo, so I've got two cores.

The next step is to allocate memory, which needs to be a multiple of 4MB. Here my memory is 8g, so I allocated 2 g to the virtual machine, and we allocated it at our discretion. The command line can be allocated to 1 g.

Next, select the network connection method. Bridge and nat can be used.

And then keep going to the next. It is better to store disk files as a single file here, which is convenient for management.

Then next, when the virtual machine is ready, click Custom Hardware and change the path to the system iso. Click Close, Finish, and start the virtual machine.

Centos7 will display the following screen, Enter, and then ask for installation, Enter, and then the system image will install itself.

You will then be taken to the following language selection screen.

Then the following interface will appear, waiting for the system to complete the test, first install the selection.

Generally, servers used for production will choose to minimize installation. Then configure the software you need. Here I choose desktop installation for better presentation.

Then select the disk location to install.

Then we wait for the installation process to set the root password

If you use a simple password, you need to complete it twice.

After installation and restart, you will be presented with a license screen, click Accept License.

After some simple configuration, an account will be created again. This account is used to log in to the system. The command line interface does not have this.

After the installation is complete, when ping Baidu, I found that I could not connect, maybe I forgot to configure the network when I installed it. It doesn't matter. Next, use the command line to open the network card configuration.

First switch to root using su command. With root privileges, some linux configurations can be modified.

Type the following command and press tab to prompt for files that match the prefix.

vi /etc/sysconfig/network-scripts/ifcfg-

as shown below

After entering the file editing interface, it will be as follows: press the i key to change the last line of no to yes, then press the esc key to exit editing, type:wq Enter to save and exit editing. (This is just a simple network service enabled, IP address is still dynamic, because I am using WiFi network can not fix IP address.)

Then use the code to restart the network service, use the ping command again, and you will find that the network has been turned on.

sudo systemctl restart network.service

Thank you for reading, the above is the content of "CentOS7 LNMP+phpmyadmin environment building method", after learning this article, I believe that everyone has a deeper understanding of CentOS7 LNMP+phpmyadmin environment building method, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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

Development

Wechat

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

12
Report