There has been no time to organize the installation and configuration of LNMP. Today, I have time to sort out the process of installing LNMP in person:
I installed it through yum.
1. Install nginx: nginx installation is not much to pull
2. Install Mysql: #yum install mysql-server -y
3. Install php:# Yum install php -y
4. Install spawn-fcgi: Before you need to install lightwd to get spawn-fcgi to manage in FastCGI mode, now spawn-fcgi has become a stand-alone project. Download spawn-fcgi:#wget http://www.lighttpd.net/download/spawn-fcgi-1.6.0.tar.gz and get the spawn-fcgi by compiling and installing.
5. Modify the nginx configuration file
server {listen 80;server_name 192.168.18.142;
#charset koi8-r;#access_log logs/host.access.log main ;
location /{root /usr/html;index index.php index/index.htm;}location ~ .*\\.php5?$ {root /usr/html;fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;}
error_page 500 502 503 504 /50x/;location = /50x/{root html;}}6.Start mysql:service mysqld start7 Start php+fastcgi:/usr/local/spawn-cgi/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C (uppercase) 5 -f /usr/bin/php-cgi, of course before our Nginx has started. Of course, this is a simple and crude description of the installation and configuration process, which is equal to the start, the next process is difficult and long. .
For ease of use, we will save the Xshell session. How to transfer the session information saved on
for Windows 7 computers Microsoft will allow its computer OEMs and their system co-developers to d
In the era of Internet, the high availability of the network has always been a very critical part, n
(1) Ifconfig command The first type uses the ifconfig command to configure the ip
A safe processing method after the Linux server crashes
Linux disk partitioning, formatting, verification, mounting basic tutorial
Want to be an embedded programmer should know 0x10 basic questions
How to read multiple files at the same time in the shell
RHEL5.4 install nginx-1.0 + php-5.2.17 (fastcgi) + mysql-5.1.40
Debian installation chrome scim
RedHat5 uses CentOS yum source Latest available
Modify IP, DNS, and routing configuration under Linux operating system
Win10 ten full patch KB3159635 released upgrade RTM to Version 1511
How to set up 360 guards to automatically clean up junk files
Win10 system to open and close the flight mode method
Windows 7 accesses Ubuntu desktop environment through VNCViewer
Windows: I am not in your automatic shutdown
How to disable User Account Control (UAC)