12.1 Lnmp Architecture Introduction 12.2 mysql installation 12.3/12.4 PHP installation 12.5 Nginx

Source: Internet
Author: User
Tags fpm

12.1 Lnmp Architecture Introduction

13.12.2 MySQL Installation

[[Email protected] ~]# service MySQL stop
Redirecting To/bin/systemctl Stop Mysql.service
[[email protected] ~]# ps-aux |grep MySQL
Root 1064 0.0 0.0 112676 956 pts/0 s+ 23:07 0:00 grep--color=auto MySQL
[Email protected] ~]# Rm-rf/usr/local/mysql
[Email protected] ~]# Rm-rf/etc/init.d/mysqld
[email protected] mysql]# CP support-files/my-default.cnf/etc/my.cnf
[email protected] mysql]# CP support-files/mysql.server/etc/init.d/mysqld
[Email protected] mysql]# Vi/etc/init.d/mysqld

[[email protected] mysql]#/etc/init.d/mysqld start
Starting MySQL ... success!
[Email protected] mysql]# Ps-aux | grep MySQL
Root 1193 0.0 0.1 113264 1560 pts/0 S 23:26 0:00/bin/sh/usr/local/mysql/bin/mysqld_safe--datadir=/data/mysql--pid-file =/data/mysql/martin001.pid
MySQL 1302 0.9 44.9 973056 449444 pts/0 Sl 23:26 0:01/usr/local/mysql/bin/mysqld--basedir=/usr/local/mysql--datadir=/da Ta/mysql--plugin-dir=/usr/local/mysql/lib/plugin--user=mysql--log-error=/data/mysql/martin001.err--pid-file=/ Data/mysql/martin001.pid
Root 1377 0.0 0.0 112676 956 pts/0 s+ 23:29 0:00 grep--color=auto MySQL

[Email protected] mysql]# chkconfig--add mysqld
[Email protected] mysql]# chkconfig mysqld on
[[Email protected] mysql]# service mysqld stop
Shutting down MySQL. success!
[[Email protected] mysql]# service mysqld start
Starting MySQL. success!

14.12.3/12.4 PHP Installation

[Email protected] php-5.6.30]# LS/USR/LOCAL/PHP-FPM
Bin etc include Lib Php sbin var
[Email protected] php-5.6.30]# ls/usr/local/php
Bin etc include Lib Php
[Email protected] php-5.6.30]# LS/USR/LOCAL/PHP7
Bin etc include Lib php var
[Email protected] php-5.6.30]# Useradd PHP-FPM
[email protected] php-5.6.30]# CP Php.ini-production/usr/local/php-fpm/etc/php.ini

[Email protected] init.d]# chmod 755/etc/init.d/php-fpm
[Email protected] init.d]# chkconfig--add php-fpm
[Email protected] init.d]# chkconfig php-fpm on
[[Email protected] init.d]# service PHP-FPM start
Starting php-fpm Done
[Email protected] init.d]# Ps-aux |grep php-fpm
Root 117430 0.1 0.4 123612 4912? Ss 00:50 0:00 php-fpm:master process (/usr/local/php-fpm/etc/php-fpm.conf)
PHP-FPM 117431 0.0 0.4 123612 4700? S 00:50 0:00 Php-fpm:pool www
PHP-FPM 117432 0.0 0.4 123612 4700? S 00:50 0:00 Php-fpm:pool www
PHP-FPM 117433 0.0 0.4 123612 4700? S 00:50 0:00 Php-fpm:pool www
PHP-FPM 117434 0.0 0.4 123612 4700? S 00:50 0:00 Php-fpm:pool www

15.12.5 Nginx Introduction

12.1 Lnmp Architecture Introduction 12.2 mysql installation 12.3/12.4 PHP installation 12.5 Nginx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.