Nginx + PHP (FastCGI) build high concurrency WEB server (automatic installation script) Second Edition

Source: Internet
Author: User
This article is based on the banquet Nginx0.7.x + PHP5.2.10 (FastCGI) to build a Web server that is 10 times better than Apache (version 5th ).

This article is based on the banquet
Nginx 0.7.x + PHP 5.2.10 (FastCGI) build a Web server that is 10 times better than Apache (version 5th)
Original article address
Http://blog.s135.com/nginx_php_v5/
Because the compilation process and wait time are cumbersome, I wrote a fully automated shell script. this script can be modified at will. for reprinting, please indicate the source.
This article is the second version of this series.
1. log cutting
2. install yum or rpm intelligently

Note: If the yum source cannot be used, place it on the system disc and a single dvd. if multiple discs are used, find all the rpm packages to be installed on the disc and copy them to a directory, and modify
Umount/dev/cdrom
Mkdir/mnt/cdrom _ $
Mount/dev/cdrom/mnt/cdrom _ $
Cd/mnt/cdrom _ $/
RPMPATH = $ (find $ (pwd)-name 'Kernel-2 *')
RPMPATH =$ {RPMPATH % /*}
Cd $ {RPMPATH}
Is
Cd yourdir
Yourdir stores the root path of all your packages
After download
# Unzip install.zip
# Chmod + x install. sh
#./Install. sh
Run the command as root.
Note: many parameters of this script are based on the configuration of a large load server. if a virtual machine is used for experiments, some services may fail to start. for example, mysql parameters require large memory support, modify the configuration parameters manually.

 

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.