July 2020
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

WordPress Quotes

I try to learn from the past, but I plan for the future by focusing exclusively on the present. That's were the fun is.
Donald Trump
July 2020
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (40)
Ansibile (19)
Apache (135)
Asterisk (2)
cassandra (2)
Centos (211)
Centos RHEL 7 (270)
centos8 (3)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (30)
Eassy (11)
ELKS (1)
EXCHANGE (3)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
health (2)
horoscope (23)
Hyper-V (10)
IIS (15)
IPTABLES (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (7)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (35)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (35)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
SCALEIO (1)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (62)
Ubuntu (1)
Uncategorized (30)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)
ZIMBRA (17)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

0 visitors online now
0 guests, 0 bots, 0 members

Hit Counter provided by dental implants orange county

YUM deployment of high-level LNMP environment

YUM deployment of high-level LNMP environment

 

Status:
yum epel comes with a low version of php mysql nginx can not meet the test and production environment in the program performance and security requirements

LNMP -> Web environment for rapid deployment

Demand:
yum source version of the php is 5.4, when we need to use 5.6 or 7.0 version of PHP, it can only compile and install. But sometimes we do not want to deal with some dependencies, hoping to be able to quickly deploy through yum, this time You need to introduce a third party yum source
WEBTATIC foreign third party EPEL

Https://webtatic.com/packages/

PHP third party EPEL source

CentOS 6.x source

Rpm -Uvh https: // dl. Fedora project.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

CentOS 7.x source

Rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

You can view the installation package for the source by command

Yum list –enablerepo = webtatic | grep php

Deploy LNMP environment steps —–> install Mysql —-> install PHP —>
NGINX to install php7.1 version of the example
yum install php71w php71w-fpm php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w -mysqlnd php71w-pdo php71w-bcmath -y

Install php5.6 version example:
yum install php56w php56w-fpm php56w-mysql php56w-mcrypt php56w-bcmath php56w-gd php56w-mbstring php56w-pdo -y

Simple description of the various PHP components function
# basic
php71w
# nginx connection using
php71w-fpm
# wide byte
php71w-mbstring
# connect mysql related
php71w-mysqlnd
# redis extended
php71w-pecl-redis
# encryption using
php71w-mcrypt
# performance acceleration php5. 5 more than the use of
php71w-opcache
installation of these basic can meet a large number of needs, as some expansion, will be installed in the installation of these libraries

 

Mysql official yum EPEL
introduced CentOS 6.x Platform, comes with the version are 5.1, of course, the MySQL website naturally have to provide the appropriate yum method, most people may not care.
CentOS 7.x series are carrying MariaDB

Official description link: https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html

# Update yum source
yum update
# add mysql5.6 yum source
# Centos6
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
# Centos7
rpm -Uvh http: //dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum install mysql-server

The installation is complete, start the Mysql service

123456 # start
service mysqld start
# restart
service mysqld restart
# close
service mysqld stop

If the start fails, first check whether the port number is temporary, followed by check the permissions, in addition to the need to check the mysql process

Set the mysql password

Mysqladmin -u root password 123456
Allow remote access
mysql -u root
mysql> use mysql;
# Allow external connection database
mysql> update user set host = ‘%’ where host = ‘127.0.0.1’;
# View the results of the change
mysql> select host, the User, the User password from;
# refresh authority table (this operation must be performed, or the need to restart MySQL)
MySQL> flush privileges;
remember, after a successful connection through the client, be sure to set a password, if a firewall is turned on, you need to let go Database external port, generally 3306

Reset the root password (this operation in two cases)
1, remember the root user password
# 123456 which is the original password, can not be separated from the -p, abcdefg for the new password
mysqladmin -u root -p 123456 password abcdef

2, forget the root user password
# If MySQL is running, first turn off
killall -TERM mysqld
# start MySQL
mysqld_safe – skip-grant-tables &
# this time is to go to MySQL
> use mysql
> update user set password = password (” New_pass “) where user =” root “;
> flush privileges
# Exit, start mysql

Nginx Deployment
Website provides different OS Platform Version Download

Http://nginx.org/en/linux_packages.html#stable

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Blue Captcha Image
Refresh

*

Protected by WP Anti Spam