LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包
LNMP是一个基于CentOS编写的Nginx、PHP、MySQL、phpMyAdmin、eAcelerator一键安装包。可以在VPS、独立主机上轻松的安装LNMP生产环境。
本页面为LNMP for CentOS的安装方法,Debian/Ubuntu请到:http://blog.licess.cn/lnmp-debian-ubuntu/
LNMP Ver0.3软件版本说明(2009年11月17日更新添加虚拟主机面板程序):
Nginx:0.7.63
PHP:5.2.10
MySQL:5.1.35
Zend Optimizer :3.3.9
eaccelerator:0.9.5.3
使用说明:
如果系统预安装Apahce或你已经安装Apache,请先运行yum remove httpd,删除Apache!
登陆Linux,下载LNMP压缩包,并解压. (一些朋友可能不知道怎么弄,登陆VPS或者主机,
执行命令 wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz ,将lnmp0.3.tar.gz下载到VPS中,执行 tar zxvf lnmp0.3.tar.gz 解压LNMP一键安装包)。
执行命令 cd lnmp0.3
然后再执行./centos.sh ,输入要绑定的域名,回车后。程序会自动安装编译Nginx、PHP、MySQL、phpMyAdmin、eAcelerator这几个软件。
注:如果需要安装eAcelerator,执行如下命令:./ 就会自动安装。
如需卸载,执行./ 就会自动卸载Nginx、PHP、MySQL。
自动添加虚拟主机:
如果是11月17日之前下载的lnmp需要修改nginx.conf,再最后一个 } 前加入include vhost/*.conf;
运行./ ,根据提示首先输入域名,再输入目录即可完成添加,直接到创建的目录上传文件即可。
程序安装路径:
MySQL : /usr/local/mysql
MySQL数据库:/usr/local/mysql/var
PHP : /usr/local/php
Nginx : /usr/local/nginx
PHPMyAdmin /home/wwwroot/phpmyadmin
Web目录 /home/wwwroot
MySQL默认用户名:root 密码:root
手动添加虚拟主机:
修改/usr/local/nginx/conf/nginx.conf 文件
在
server{
listen 80;
server_name ;
location / {
stub_status on;
access_log off;
}
}
后面添加上下面代码:
server{
listen 80;
server_name www.lnmp.org;
index index.html index.htm index.php;
root /home/wwwroot/abc;
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
再执行kill -HUP `cat /usr/local/nginx/logs/nginx.pid`虚拟机就生效了。
通过下面这几个链接查看phpinfo和管理MySQL
phpinfo http:///phpinfo.php
phpMyAdmin http:///phpmyadmin
PHP探针: http:///p.php
此版本为测试版本,已经在SWVPS、DiaVPS、RASHOST、thenynoc.com、BoxVPS、VMware CentOS最小化安装 上测试成功。
演示站点:http://
有任何问题请到 http://blog.licess.cn/lnmp/ 。
QQ交流群:12327692 (已升级高级群,可加) 2群:15762671
交流论坛: http:///forum-25-1.html
下载地址:
集成软件包(所需软件已打包在内):http://soft.vpser.net/lnmp/lnmp0.3.tar.gz
安装包(程序自动链接网站下载):http://soft.vpser.net/lnmp/lnmp0.3.tar.gz
友情提示:Linux下操作请注意大小写。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
LNMP是一个基于CentOS编写的Nginx、MySQL、PHP、phpMyAdmin、eAcelerator一键安装包。可以在VPS、独立主机上轻松的安装LNMP生产环境。
2009年3月27日发布vsftpd已经安装配置包,下载
2009年3月2日修复执行startup.sh时提示: /bin/bash^M: bad interpreter: No such file or directory 的错误。
使用说明(2009年3月2日修改):
登陆Linux,下载LNMP压缩包,并解压. (一些朋友可能不知道怎么弄,登陆VPS或者主机,执行命令 wget ,将LNMP.zip下载到VPS中,执行 unzip LNMP.zip 解压LNMP一键安装包)。
执行./下载LNMP所要的安装包 ,如果执行后提示:-bash: ./: Permission denied ,这个是因为权限不够引起的,可以执行命令:chmod +x run.sh 来加上执行权限。
然后再执行./ ,输入要绑定的域名,回车后。程序会自动安装编译Nginx、PHP、MySQL、phpMyAdmin、eAcelerator这几个软件。
安装vsftp:
下载vsftpd-for-LNMP.zip:执行 wget
unzip vsftpd-for-LNMP.zip
cd vsftpd-for-LNMP
chmod +x
./
安装完毕后即可使用你的SSH的帐号和密码登录,也可以修改/etc/vsftpd.chroot限制用户在家目录里。默认添加了adminftp用户,但是没有设置密码,可以执行passwd adminftp 来设置密码,或者userdel admintpd 删除用户。
执行 adduser -d /web/www/user1 -s /sbin/nologin user1 来添加一个不能SSH登录的FTP帐号,家目录为/web/www/user1 但是没有限制,添加限制,请修改/etc/vsftpd.chroot 添加要限制的用户。
程序安装路径:
MySQL : /usr/local/mysql
PHP : /usr/local/php
Nginx : /usr/local/nginx
PHPMyAdmin /web/www/phpmyadmin
Web目录 /web/www
让Nginx开机后手动执行 /root/run.sh 后Nginx会运行 ,开机自动运行可以运行 LNMP目录下面的 startup.sh 文件即可。
为优化文件,如果内存小于128MB可以通过执行 ./ 添加swap分区,并修改时区为东8区。注:并不一定在所有的VPS上都可以添加swap分区,swvps不可以,其他没有测试。
通过下面这几个链接查看phpinfo和管理MySQL
phpinfo http://ip/phpinfo.php
phpMyAdmin http://ip/phpmyadmin
此版本为测试版本,已经在SWVPS、thenynoc.com、VMware CentOS最小化安装 上测试成功。
演示站点:http://
有任何问题请到 http://blog.licess.cn/lnmp/ 。
QQ交流群:12327692 (已升级高级群,可加) 2群:15762671
交流论坛: http:///forum-25-1.html
下载地址:http://blog.licess.cn/uploads/200901/LNMP.zip
友情提示:Linux下操作请注意大小写。
VPS初始化及Nginx+MySQL+PHP/PHPMyAdmin安装优化
除非注明,本博客文章均为原创,转载请以链接形式标明本文地址
本文地址:http:///lnmp/
Trackback地址:http:///lnmp/trackback/
148 条评论
LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2009年11月17日更新) - After x @ 2010年03月3日 9:40 上午
林龙 @ 2010年02月27日 9:51 下午
难道默认目录不能该吗? 我想启用泛解析功能
licess Reply:
二月 27th, 2010 at 5:03 下午
@林龙, 泛解析,你直接用*. 就可以。更改目录也不会引起502,你把配置发上来看看。发论坛里吧:http:///forum-25-1.html
林龙 @ 2010年02月26日 4:47 下午
初试VPS的一些感想以及安装LNMP | linux | 猪小猪'space @ 2010年02月21日 4:24 下午
WordPress本地测试环境搭建 | 君看一叶舟,出没风波里 | Timothy's Space @ 2010年02月17日 8:43 下午
allgtd @ 2010年02月10日 12:39 下午
df @ 2010年02月5日 11:52 下午
二月 5th, 2010 at 3:42 下午
@Cody, lnmp0.4会加入PDO_MYSQL的。
具体安装方法如下:
wget -c http://soft.vpser.net/web/pdo/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql
make && make install
用老大的这个方法安装完后,还是phpinfo() 显示不了PDO_MYSQL 的支持
通过网上搜索 好像需要更改php.ini 但是我发现 php.ini好多组件都是没注释掉;这个的
所以不知道该如何修改php.ini
阿类 @ 2010年02月5日 6:02 下午
同时,现在遇到一个关于VSFTP 问题 利用的老大提供的集成包(VSFTP )遇到了没办法限制每个用户的空间大小,在网上找到一些利用磁盘配额
来做限制的,感觉上讲的很笼统,请问老大针对LNMP for VSFTP 集成包,有么有很更好的方法限制空间大小!
第二。老大提到的在lnmp0.4集成包会增加pdo_mysql的支持,请问如果我们安装了lnmp0.3的集成包,如何可以升级到lnmp0.4 是否有升级包,或是
有什么其他的方法,谢谢。
建议:希望老大在lnmp0.4中,增加对VSFTP 对单个用户空间大小流量限制的功能!
例外个人还有一件事,希望能联系到老大 详细和老大聊聊
请老大提供下,联系方式
Cody @ 2010年02月5日 4:28 下午
比如:pdo_mysql 添加这样类似的组件 对 lnmp本身的运行有没有什么冲突,麻烦老大提供下,在lnmp0.3环境下添加pdo_mysql的方法,谢谢
和后期我们需要添加其他组件需要注意的 !
licess Reply:
二月 5th, 2010 at 3:42 下午
@Cody, lnmp0.4会加入PDO_MYSQL的。
具体安装方法如下:
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/usr/local/php/bin/phpize
./configure --with-php-cnotallow=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql
make && make install
Cody @ 2010年02月4日 9:40 上午
出现这个问题,该如何解决,这个信息对PHPMYADMIN 有没有影响,或老大有更好的解决方法。谢谢
licess Reply:
二月 2nd, 2010 at 12:49 上午
对phpmyadmin没有影响的。
Cody @ 2010年02月1日 3:37 下午
done
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
怎么出现了这个错误?
我测试了Nginx的配置也没什么问题
#/usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
paul @ 2010年01月28日 4:58 下午
.... @ 2010年01月27日 2:55 下午
=========================================================================
Vsftpd for LNMP Written by Licess
=========================================================================
A tool to auto-compile & install VSftp for LNMP on Linux
For more information please visit http://blog.licess.cn/lnmp/=========================================================================
start download vsftpd package
--2010-01-24 10:06:26-- http:///files/vsftpd-2.1.0.tar.gzResolving ... 74.125.155.82
Connecting to |74.125.155.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 178636 (174K) [application/x-gzip]
Saving to: `vsftpd-2.1.0.tar.gz.3'
100%[======================================>] 178,636 636K/s in 0.3s
2010-01-24 10:06:27 (636 KB/s) - `vsftpd-2.1.0.tar.gz.3' saved [178636/178636]
download vsftpd package finished!
installing vsftpd 2.1.0.......
mkdir: cannot create directory `/usr/local/man/man8': File exists
mkdir: cannot create directory `/usr/local/man/man5': File exists
make: `vsftpd' is up to date.
if [ -x /usr/local/sbin ]; then \
install -m 755 vsftpd /usr/local/sbin/vsftpd; \
else \
install -m 755 vsftpd /usr/sbin/vsftpd; fi
if [ -x /usr/local/man ]; then \
install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
elif [ -x /usr/share/man ]; then \
install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
else \
install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
if [ -x /etc/xinetd.d ]; then \
install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
mkdir: cannot create directory `/etc/vsftpd': File exists
mkdir: cannot create directory `/var/ftp': File exists
setsebool: SELinux is disabled.
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: raw nat mangle filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_ns [FAILED]
adduser: user goicadminftp exists
Terminated
licess Reply:
一月 24th, 2010 at 11:37 上午
@wangjw302, 没有安装失败,iptables那个地方出了问题。把iptables关了吧。
wangjw302 @ 2010年01月24日 10:30 上午
Zeddicus @ 2010年01月20日 10:21 下午
koo2 @ 2010年01月19日 5:17 下午
Starting php_fpm Failed loading /usr/local/zend/Zend/: /usr/local/zend/: cannot restore segment prot segment prot after reloc: Permission denied done
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
koo2 @ 2010年01月19日 4:33 下午
Starting php_fpm done
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
我也出现了前面那位仁兄同样的问题,这是怎么回事呢?
koo2 @ 2010年01月19日 4:11 下午
如果我通过你购买vps,可否承诺替我配置ssl证书?
ym @ 2010年01月16日 12:00 上午
[root@centos ~]# ./run.sh
Starting php_fpm done
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
怎么回事呢?
licess Reply:
一月 13th, 2010 at 4:54 下午
@水手, 应该是修改过配置文件,/usr/local/nginx/sbin/nginx -t 看一下那个地方错了
水手 @ 2010年01月13日 4:37 下午
licess Reply:
一月 12th, 2010 at 10:30 下午
运行ps aux 查看是否nginx在运行,如果没有运行,killall php-cgi,再运行/root/run.sh
水手 @ 2010年01月12日 10:25 下午
还有一个问题就是新添加绑定个域名,也生成对应的文件了,但就是不能够访问绑定的目录,还是访问到根目录的???
希望管理员帮忙解决下这2个问题
licess Reply:
十二月 28th, 2009 at 11:10 下午
@Linux新手, 需要在编译的时候添加ngx_http_ssi_module模块,安装好后在nginx 的配置文件nginx.conf,在里面的http里添加下面几行配置:
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
Linux新手 @ 2009年12月28日 11:47 上午
Tweets that mention LNMP-Linux下Nginx+PHP+MySQL+phpMyAdmin+eAcelerator一键安装包 - Licess's Blog -- @ 2009年12月23日 12:05 下午
licess Reply:
十二月 22nd, 2009 at 10:13 下午
@小白, nginx绑定的同时,域名也要将IP解析过去才可以,直接用域名访问网站。
小白 @ 2009年12月22日 8:46 下午
LNMP V0.3 for CentOS/RadHat Linux VPS Written by Licess
=========================================================================
For more information please visit http://blog.licess.cn/lnmp/run nginx+php-cgi: /root/run.sh
default mysql root password:root
phpinfo test: http:///phpinfo.php
phpMyAdmin test: http:///phpmyadmin
Prober : http:///prober.php
The path of some dirs:
mysql dir: /usr/local/mysql
php dir: /usr/local/php
nginx dir: /usr/local/nginx
web dir /home/wwwroot
=========================================================================
imacer @ 2009年12月18日 10:22 上午
话说,卸载就是把那几个目录删除即可??
Showfom @ 2009年12月15日 7:31 上午
./: line 56: `fi'
licess Reply:
十二月 15th, 2009 at 12:09 下午
已解决,可以重新下载新版本。
Showfom @ 2009年12月15日 7:17 上午
Showfom @ 2009年12月14日 10:46 下午
licess Reply:
十二月 9th, 2009 at 12:38 下午
@ym, 这个提示是,你访问的域名对应的目录下面没有index 所指定index.html 或index.php~所以显示403 Forbidden~是正常现象,上传你的网站,只要你的网站目录下保护index.html、index.html、index.php其中的任意一个就会显示你的网站。
ym @ 2009年12月9日 9:20 上午
licess Reply:
十二月 8th, 2009 at 3:35 下午
@ym, 你怎么下载的,wget吗?这个地址是正确的,是不是没有安装wget~另外,放网盘上地址不方便而且没有多少网盘支持你直接给你下载地址的~
ym @ 2009年12月7日 8:00 下午
licess Reply:
十二月 6th, 2009 at 11:24 上午
默认没有安装,需要安装完后自己运行./ 就会自动安装好。
hzoom @ 2009年12月6日 10:29 上午
MySQL : /usr/local/mysql
MySQL数据库:/usr/local/mysql/var
PHP : /usr/local/php
Nginx : /usr/local/nginx
PHPMyAdmin /home/wwwroot/phpmyadmin
Web目录 /home/wwwroot
不知道哪一步出错了,郁闷~
licess Reply:
十二月 3rd, 2009 at 10:50 下午
一个都没有吗?你的VPS是CentOS还是Debian?
断峰狼 @ 2009年12月2日 12:00 上午
licess Reply:
十二月 8th, 2009 at 3:32 下午
@redasurc, lnmp一直走的是生产环境的路线,要的是稳定行,所以不会出了新版就会换上新版,当时机成熟适合生产环境,肯定会升级的。
redasurc @ 2009年11月30日 10:55 下午
licess Reply:
十一月 28th, 2009 at 9:24 下午
@lao, 说明写的很清楚了:
自动添加虚拟主机:
如果是11月17日之前下载的lnmp需要修改nginx.conf,再最后一个 } 前加入include vhost/*.conf;
运行./ ,根据提示首先输入域名,再输入目录即可完成添加,直接到创建的目录上传文件即可。
并不是修改nginx.conf,都是include进去的。
lao @ 2009年11月28日 1:53 下午
yum -y remove fonts-chinese scim-chewing scim-pinyin scim-tables-chinese
即可?
FM @ 2009年11月25日 12:11 下午
LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包beta发布 - Kenny's Blog @ 2009年11月25日 4:43 上午
licess Reply:
十一月 24th, 2009 at 3:42 下午
嘻嘻,应该是当时vmware上测试时弄上的,一直没删……
kangzj @ 2009年11月24日 11:43 上午
具体是出现过什么问题?是否严重?是否影响生产环境使用呢?
licess Reply:
十一月 23rd, 2009 at 12:37 下午
@FM, 很早之前的问题了,早已经解决只不过,忘记更新说明。
FM @ 2009年11月22日 11:49 下午
1.mysql优化:
删除原来的/etc/my.cnf,然后执行命令:
cp /usr/local/mysql/share/mysql/my-large.cnf /etc/my.cnf
2.nginx优化:
修改/usr/local/nginx/conf/nginx.conf中的
worker_processes 1为worker_processes 4
3.php-cgi优化:
修改/usr/local/php/etc/php-fpm.conf中的
5改为64
参考资料:http://blog.s135.com/nginx_php_v5/
FM Reply:
十一月 18th, 2009 at 7:04 下午
注意,以上优化为2G内存独立服务器
修改配置文件完成后,重启相关服务,执行命令:
/etc/init.d/mysql restart
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
/usr/local/php/sbin/php-fpm restart
FM Reply:
十一月 18th, 2009 at 7:06 下午
上文中的php-cgi优化不知为啥没显示出来:
/usr/local/php/etc/php-fpm.conf中的:
5
把5改为64
FM Reply:
十一月 18th, 2009 at 7:07 下午
还是没有显示。。。奇怪:
3.php-cgi优化:
修改/usr/local/php/etc/php-fpm.conf中的max_children值,5改为64
licess Reply:
十一月 19th, 2009 at 11:45 上午
2G的主要就是加些php-fpm,再就是把InnoDB加上,nginx多家上几个进程
FM @ 2009年11月18日 7:00 下午
FM @ 2009年11月18日 6:41 下午
我又看了一下我安装的lnmp0.3我是11月10日下载的,之后请问又升级了哪些东西呢?
FM @ 2009年11月18日 11:29 上午
Shutting down php_fpm . done
Starting php_fpm Failed loading " /usr/local/zend/" : " /usr/local/zend/" : cannot open shared object file: No such file or directory
/usr/local/zend/lib/Optimizer-3.3.3/
licess Reply:
十一月 17th, 2009 at 11:22 下午
@FM, 不会吧,我又看了一下脚本没错啊,就是3.3.9
FM @ 2009年11月17日 11:11 下午
licess Reply:
十一月 17th, 2009 at 11:21 下午
rm /usr/local/zend
如果是64位
wget -c http://soft.vpser.net/web/zend/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
tar zxvf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
mkdir -p /usr/local/zend/
cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ /usr/local/zend/
32位:
wget -c http://soft.vpser.net/web/zend/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
mkdir -p /usr/local/zend/
cp ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ /usr/local/zend/
在/usr/local/php/etc/php.ini结尾加上
[Zend Optimizer]
zend_optimizer.optimization_level=1
zend_extensinotallow="/usr/local/zend/"
FM @ 2009年11月17日 10:21 下午
糯米 @ 2009年11月17日 4:44 下午
LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2009年7月2日更新) @ Molutran's Blog - Have a try! @ 2009年11月16日 7:01 下午
FM @ 2009年11月16日 5:06 下午
VPS侦探Twitter每周汇总 – 2009-11-15 - VPS侦探 @ 2009年11月15日 9:02 上午
LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包beta发布 - VPS侦探 @ 2009年11月14日 12:26 下午
大地软件 @ 2009年11月13日 12:12 下午
licess Reply:
十一月 13th, 2009 at 3:25 下午
恩,今天中午在我的VPS上试了一下,不错,下步会加到lnmp中。
建议在新版本中加入nginx-rrd与memcache @ 2009年11月13日 8:27 上午
牛牛 @ 2009年11月11日 2:24 下午
六根不净» Blog Archive » LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包 @ 2009年11月11日 1:06 上午
LNMP - CentOS/RadHat/Debian/Ubuntu下Nginx+PHP+MySQL一键安装包V0.3发布 - Licess's Blog @ 2009年11月9日 10:12 下午
LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2009年10月25日更新) | sopo's blog @ 2009年11月2日 11:59 下午
请帮忙解决
哈哈 @ 2009年10月29日 6:38 下午
执行 adduser -d /web/www/user1 -s /sbin/nologin user1 来添加一个不能SSH登录的FTP帐号,家目录为/web/www/user1 但是没有限制,添加限制,请修改/etc/vsftpd.chroot
添加成功,但没法用FTP登陆,
VI /etc/vsftpd.chroot ,找不到这个
请兄台帮忙,多谢
pete @ 2009年10月15日 6:35 下午
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml image/x-icon text/html;
gzip_vary on;
output_buffers 1 512k;
postpone_output 1460;
顺便问一下nginx有解决中文路径和文件名的方案了么?
秋爱 @ 2009年09月28日 8:31 下午
sometime @ 2009年09月17日 2:04 上午
vaman的部落格 » Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包 @ 2009年09月11日 10:19 上午
joseph @ 2009年09月9日 10:56 下午
希望可以指导下
licess Reply:
九月 10th, 2009 at 10:06 上午
@leo, 默认已经都安装且启动了。
leo @ 2009年09月9日 7:47 上午
winsel @ 2009年09月1日 3:32 下午
LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包beta发布 - Licess's Blog @ 2009年08月28日 11:57 上午
licess Reply:
八月 10th, 2009 at 10:21 上午
@rootsecurity, 用LNMP安装是支持中文的,是不是你网页的编码的问题啊,检查文件的编码和文件中charset是否一致。
rootsecurity @ 2009年08月8日 4:40 下午
初学 @ 2009年07月26日 12:29 下午
向光明 @ 2009年07月21日 6:22 上午
运行install.php 以后,查看
echo "mysql dir: /usr/local/mysql"
echo "php dir: /usr/local/php"
echo "nginx dir: /usr/local/nginx"
这三个目录里面都是空的~
thankcms @ 2009年07月20日 5:43 下午
tar -zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql
make
make install
cd ../
PDO_MYSQL @ 2009年07月17日 3:27 下午
licess Reply:
七月 13th, 2009 at 8:59 上午
@sun, yum list
执行yum remove httpd,直接删除就行
sun @ 2009年07月12日 10:15 下午
(Default domain: http://www.lnmp.org):www.hello.com \\在这一步输入了我自已的域名
===========================
domain=www.hello.com
===========================
Press any key to start… \\再次按任意键确认,开始安装
博主,我在将要开始安装时,弹出输入域名,我输入了自已的域名,请问到装好结束后,我还需要修改/usr/local/nginx/conf/nginx.conf 文件再添加一次www.hello.com那段代码吗?
谢谢
licess Reply:
七月 10th, 2009 at 3:10 下午
@Vigo, 不用再添加这个了,如果再添加www.,在server{} 后面直接在复制server{},并修改相关信息保存,重启即可。
Vigo @ 2009年07月9日 10:56 下午
谢谢
thankcms @ 2009年07月9日 9:51 上午
{
listen 80;
server_name http://www.lnmp.org;
index index.html index.htm index.php;
root /web/www/abc;
如果我的网站放在abc目录下,请问在建FTP的时候,
执行 adduser -d /web/www/user1 -s /sbin/nologin user1 来添加一个不能SSH登录的FTP帐号
上面的应该设置成:adduser -d /web/www/abc 吗?
我是想用FTP登陆网站目录
Thanks
licess Reply:
七月 7th, 2009 at 1:54 下午
@Vigo, 恩,对
Vigo @ 2009年07月7日 12:07 下午
Loaded plugins: fastestmirror
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 84, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfi
LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2011年12月14日更新)
LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator 安装
LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包
lnmp一键安装包卸载mysql lnmp一键安装包 linux
用上了LNMP,一键安装实在爽,速度杠杠的 用上了LNMP,一键安装实在爽,速度杠杠的lnmp一键安装怎么用
lnmp一键安装包wordpress lnmp一键安装包使用教程
LNMP一键安装包+Thinkphp搭建基于pathinfo模式的路由(可以去除url中的.php)
Linux搭建lamp(Apache+PHP+Mysql环境)centos7.2版详细教程linux+apache+php+mysql