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 use yum to configure a lnmp environment in CentOS7.6 system

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article is about how to use yum to configure a lnmp environment in the CentOS7.6 system, the editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Details of the installation version

Server: MariaDB Server version: 5.5.60-MariaDB MariaDB Server [root@ln-125 ~] # cat / etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@ln-125 ~] # nginx-v nginx version: nginx/1.14.2 [root@ln-125 ~] # php-fpm-v PHP 5.4.16 (fpm-fcgi) (built: Oct 30 2018 19:32:20) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Second, install Nginx service

1. Configure the yum source for Nginx

[root@ln-125 ~] # cat > > / etc/yum.repos.d/nginx.repo group = nginx

Fourth, install the mariadb database

Yum install-y mariadb mariadb-server# Boot self-boot [root@ln-125 ~] # systemctl start MariaDB. Service [root @ ln-125 ~] # systemctl enable mariadb.service# initialization database configuration mysql_secure_installation # configuration default settings (root password login method, etc.) # set default character set edit vim / etc/ my.cnf [root @ ln-125 ~] # grep-Ev'^ # | ^ $'/ etc/ my.cnf [mysqld] datadir=/var/ Lib/mysqlsocket=/var/lib/mysql/mysql.socksymbolic-links=0character-set-server = utf8 # # set the default encoding [mysqld_safe] logMurray errorcodes, varmax, logram, MariaDB, mariadb.logpidML, filebanks, var, run,

5. Testing

Cat > > / usr/share/nginx/html/index.php

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