Live platform build environment configuration in detail

After the broadcast platform development is completed, the next will face the problem of broadcast platform to build. Then broadcast platform to build specific process what is it? Usually we need to follow the following links: build environment configuration (LNMP), Redis configuration, create databases, web site building, node.js deployment, management, configuration and other background information. In this part Billiton Magic Technology First to introduce the process of configuring LNMP Redis configuration environment and under.
Preparation before building
Note: The following operations, carried out at above 64 centos7.0 premise operating system
(1) to generate package information buffer
yum makecache
(2) install the update
yum Update -Y
(. 3) installing the necessary software
yum install -y wget curl git vim the unzip ZIP zsh Nano Screen
(4) installation oh my zsh (help complement and select a directory)
SH -c "$ (wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh /master/tools/install.sh -O -) "

LNMP built environment
LNMP means Nginx + MySQL + PHP this web server architecture in the Linux system. LNMP novice can select a key installation package. DETAILED build process is as follows:
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
the tar-full.tar.gz xzvf oneinstack
CD oneinstack
the ./install.sh
NOTE: Do not sh install.sh or bash install .sh performed such
for the specific installation option selection Procedure:
1. set SSH port (default 22), the transport to
the Do you want to enable iptables [Y / n-]:? n-
2. Web then choose whether to install, input Y
3. enter mounting Nginx
4. enter 3 without installing the Apache
5. The input 5 is not installed Tomcat
6. The database then choose whether to install database, input Y
7. The input 2-mounted 5.7 MySQL
8. The password is then entered into the database root 123456 (Note : safekeeping)
9. select 1 input from the binary and mounting
10. the mounting y and enter the pHP
11. the input 5 is mounted PHP7.0
12. the input buffer php y mounting plug
Do you want to instal opcode cache of the pHP [y /? n]: y
13. Enter a mounting OPcache the Zend
14. A n input without installing ionCube

  1. N is not mounted input the ImageMagick
    16. A n input-FTPd not installed Pure
    17. A mounting phpMyAdmin input y
  2. Input y mounting Redis
    19. A n input does not install the memcached
    20. A n input HHVM not installed
    here simply configured LNMP reason the use environment. First of all, Linux is the most popular free operating system, and widely used, reducing the cost of deploying broadcast platform to build a great extent; secondly, Nginx web server software under Linux system, take up less resources, while supporting more concurrent connections, and for live platform in terms of high concurrency support is an important measure of the stability of the system, and in most cases we will choose the load balancing server when deployed as a broadcast platform, Nginx can also serve as load balancing servers; and finally in a small PHP is a server-side execution and precision of scripting languages, although compared to Java is not very complete in terms of ecology, but its deployment cost is lower, and also supports a distributed deployment platform for live operators to say, the vast majority of the cost is to use the platform to promote and pay high cost of CDN, live platform so when making a selection PHP language development server a bad idea.

Redis configuration operation flow
configuration password redis
execute commands to modify /usr/local/redis/etc/redis.conf file, you can manually modify redis.conf file
echo requirepass redis password >> / usr / local / redis / etc / redis. conf
restart Redis
systemctl the restart Redis-Server
NOTE: service redis-server restart does not support the centos7.x
Redis primarily responsible for storing cache data broadcast platform, because it supports master-slave synchronization, the read operation of the data redundancy and scalability more than helpful, can greatly ease the pressure of the live server platform building process.

Guess you like

Origin blog.51cto.com/14528075/2461218
Recommended