LNMP一键安装过程详解

8个月前 (04-27)
本节介绍如何利用下载好的 LNMP 一键安装包在Linux系统上安装 LNMP 环境。

解压缩一键安装包

我们把 LNMP 一键安装包保存在 /usr/local/src/ 目录下,步仍然是解压缩一键安装包。令如下:

[root@localhost ~]# cd /usr/local/src/

[root@localhost src]# tar -zxvf lnmp1.0-full.tar.gz

执行安装脚本安装 LNMP 一键安装包

既然是脚本安装包,那就不需要我们一个一个手工安装了,只要执行安装脚本 centos.sh 即可自动安装(Debian 中执行脚本为 debian.sh,Ubuntu 中执行脚本为 ubuntu.sh)。令如下:

[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网站站点" rel="nofollow" /> =========================================================
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网站站点" rel="nofollow" />

Nginx

/usr/local/nginx/

Nginx 配置文件

/usr/local/nginx/conf/nginx.conf

默认网站目录

/home/wwwroot/delault

曰志文件

/home/wwwlogs/

MySQL

/usr/local/mysql/

MySQL 配置文件

/etc/my网站站点" rel="nofollow" />

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/


也就是说,LNMP 一键安装只安装了基本的 Nginx、MySQL、PHP、phpMyAdmin 和 Zend Optimizer。