[root@localhost ~]# cd /usr/local/src/
[root@localhost src]# tar -zxvf lnmp1.0-full.tar.gz
[root@localhost src]# cd lnmp1.0-full
[root@localhost lnmp1.0-full]#./centos.sh
==========================================================
LUMP V1.0 for CentOS/RadHat Linux VPS Written by Licess
==========================================================
A tool to auto-compile & install Nginx+mysql+PHP on Linux
For more information please visit http://www.lnmp.org/
==========================================================
Please input the root password of mysql:
(Default password: root) : 123  #設(shè)定MySQL 的密碼,這里設(shè)為 123
==========================================================
Do you want to install the InnoDB Storage Engine?
(Default no,if you want please input: y , if not please press the enter button):y
#是否需要安裝MySQL InnoDB,如果需要安裝則輸入y
Install PHP 5.3.17,Please input y
Install PHP 5.2.17,Please input n or press Enter
(Please input y or n) :y
#選擇安裝PHP的版本,輸入y安裝的是5.3.17
Install MySQL 5.5.27,Please input y
Install MySQL 5.1.60,Please input n or press Enter
(Please input y or n) :y
#選擇安裝MySQL的版本,輸入y安裝的是5.5.27
Press any key to start. . .or Press Ctrl+c to cancel #按任意鍵開始安裝
=========================================================
Manager for LNMP VI.0 , Written by Licess
=========================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================
Nginx is runing!
php-fpm is runing!
MySQL running (12489)   [確定]
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp 0 0 0.0.0.0:53575   0.0.0.0:*   LISTEN
tcp 0 0 0.0.0.0:3306    0.0.0.0:*   LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:*   LISTEN
tcp 0 0 0.0.0.0:80  0.0.0.0:*   LISTEN
tcp 0 0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp 0 0 127.0.0.1:631   0.0.0.0:*   LISTEN
tcp 0 0 127.0.0.1:25    0.0.0.0:*   LISTEN
tcp 0 0 :::57454    :::*    LISTEN
tcp 0 0 :::111  :::*    LISTEN
tcp 0 0 :::22   :::*    LISTEN
tcp 0 0 ::1:631 :::*    LISTEN
tcp 0 0 ::1:25  :::*    LISTEN
| 默認(rèn)安裝軟件 | 軟件安裝位置 | 軟件相關(guān)配置文件名 | 配置文件安裝位置 | 
|---|---|---|---|
| Nginx | /usr/local/nginx/ | Nginx 配置文件 | /usr/local/nginx/conf/nginx.conf | 
| 默認(rèn)網(wǎng)站目錄 | /home/wwwroot/delault | ||
| 曰志文件 | /home/wwwlogs/ | ||
| MySQL | /usr/local/mysql/ | MySQL 配置文件 | /etc/my.cnf | 
| 數(shù)據(jù)所在位置 | /usr/local/mysql/var/ | ||
| PHP | /usr/local/php/ | PHP 配置文件 | /usr/local/php/etc/php.ini | 
| php-fpm配置文件 | /usr/local/php/clc/php-rpm.conf | ||
| phpMyAdmin | /homc/wwwroot/dcfault/phpmyadmin/ | 無 | 無 | 
| Zend Optimizer | /usr/local/zend/ | 無 | 無 | 
新聞熱點(diǎn)
疑難解答
圖片精選