Back

LNMP安装笔记

|

在CentOS下安装web服务器, LNMP在这里指Linux+Nginx+MySQL+Php.
本文内容来自LNMP开发者网站:[LNMP.ORG](http://lnmp.org/), 在那里可以找更详尽的信息.
下载并解压LNMP一键安装包:
`cd /root
wget -c http://soft.vpser.net/lnmp/lnmp0.5.tar.gz
tar zxvf lnmp0.5.tar.gz`
安装LNMP.(for CentOS x86)
`cd lnmp0.5/
./centos.sh`
期间按照提示输入服务器域名并设置MySQL root密码,回车确认.
大约10几分钟,Nginx、PHP、MySQL、phpMyAdmin、Zend等软件就安装完毕了.
安装其他组件
eAccelerator,执行:
`./eaccelerator.sh`
PureFTPd, 执行:
`./pureftpd.sh`
后续过程请参看:[lnmp之pureftpd管理面板安装教程](http://www.vpser.net/manage/lnmp-pureftpd-cp.html).
LNMP还提供了一键添加虚拟主机的脚本/root/vhost.sh. 执行之后根据提示完成虚拟主机的添加.删除虚拟主机只用删除 /usr/local/nginx/conf/vhost下的对应配置文件就可以了.

No comments yet

Leave a comment

About me

I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.

Work

Work in IT industry, AI is my working partner.