http:\/\/www.lanmps.com\/install.html<\/a>
<\/p>\u5b89\u88c5\u73af\u5883\uff1acentos6.5\uff0ccentos6.7\u4e2d\u5747\u5b89\u88c5\u6210\u529f
<\/p>
\u5b89\u88c5<\/p>
\r\n\t 1.\u4f7f\u7528SSH\u5de5\u5177\u767b\u9646\u670d\u52a1\u5668<\/p>
\u767b\u9646\u6210\u529f\u540e\u8fd0\u884c\uff1ascreen -S lanmps<\/p>
\u6ce8\u610f\uff1a\u6b64\u6b65\u4e3a\u4e86\u9632\u6b62SSH\u767b\u9646\u8d85\u65f6\u6216\u6389\u7ebf\uff0c\u4e2d\u65ad\u5b89\u88c5\uff08lanmps \u4e3a\u81ea\u5b9a\u4e49\u540d\u79f0\uff09\u3002<\/p>
\u5982\u679c\u6389\u7ebf\u4e86\uff0c\u6267\u884c screen -r lanmps ,\u5373\u53ef\u6062\u590d \u6389\u7ebf\u524d\u7684\u6267\u884c\u754c\u9762\uff0c\u5982\u679c\u5fd8\u8bb0\u540d\u5b57\u4e86\uff0c\u6267\u884c screen -ls \u4f1a\u5217\u51fa\u6240\u6709\u4f1a\u8bdd\u5217\u8868\uff0c\u5176\u4e2d \u6570\u5b57.lanmps \u5373\u4e3a\u521a\u624d\u7684\u4f1a\u8bdd
\u5982\u679c\u63d0\u793ascreen: command not found \u547d\u4ee4\u4e0d\u5b58\u5728\u3002<\/p>
CentOS \u53ef\u4ee5\u6267\u884c\uff1ayum install -y screen<\/p>
Ubuntu\u53ef\u4ee5\u6267\u884c\uff1aapt-get install -y screen<\/p>
\u67e5\u770b\u662f\u4ec0\u4e48\u7cfb\u7edf\u7684\u547d\u4ee4\uff1acat \/etc\/issue<\/p>
<\/p>
<\/p>
\u7136\u540e\u4e0a\u4f20\u6587\u4ef6\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u6267\u884c\uff08\u6839\u636e\u6700\u65b0\u7248\u672c\u7684\u7248\u672c\u53f7\uff0c\u66f4\u6539\u4e0b\u9762\u76f8\u5e94\u7684\u4ee3\u7801\u7248\u672c\u53f7\uff09\uff1a
tar -zxvf lanmps-2.2.2.tar.gz && cd lanmps-2.2.2 && .\/lanmps.sh<\/p>
<\/p>
\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u540e\uff0c\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u63d0\u793a\uff1a<\/p>
<\/p>
2.1 \u4e0a\u56fe\u4e2d\u662f\u8981\u9009\u62e9\u5b89\u88c5\u5957\u4ef6\u7c7b\u522b\uff08\u9ed8\u8ba4\u90091\uff09<\/p>
\u76ee\u524d\u53ea\u6709 \u4e00\u79cd nginx php mysql opcache memcache phpmyadmin xdebug sphinx<\/p>
\u4ee5\u540e\u4f1a\u5728\u65b0\u7248\u4e2d\u589e\u52a0\u529f\u80fd<\/p>
don\u2019t install is now \uff1a\u73b0\u5728\u4e0d\u5b89\u88c5\uff0c\u9000\u51fa<\/p>
<\/p>
2.2 \u4e0a\u56fe\u4e2d\u662f\u9009\u62e9php\u7248\u672c\uff08\u9ed8\u8ba4\u9009\u52191\uff0c\u90fd\u9009\u9ed8\u8ba4\u7684\u6bd4\u5bb9\u6613\u5b89\u88c5\u6210\u529f\uff09<\/p>
don\u2019t install is now \uff1a\u73b0\u5728\u4e0d\u5b89\u88c5\uff0c\u9000\u51fa<\/p>
<\/p>
2.3 \u4e0a\u56fe\u4e2d\uff0c\u63d0\u793a\u201dPress any key to start\u2026\u201d\uff0c\u6309\u4efb\u610f\u952e\u5f00\u59cb\u5b89\u88c5<\/p>
LANMPS\u811a\u672c\u5c31\u4f1a\u81ea\u52a8\u5b89\u88c5\u7f16\u8bd1Nginx\u3001MySQL\u3001PHP\u3001phpMyAdmin\u3001Opencache\u3001Memcache\u3001Xdebug\u8fd9\u51e0\u4e2a\u8f6f\u4ef6\u3002<\/p>
\u5176\u4e2dXdebug\u9ed8\u8ba4\u5173\u95ed\uff0c\u5982\u9700\u4f7f\u7528\u5728php.ini\u5f00\u542f\uff08\u5f00\u542f\u6559\u7a0b\uff09\u3002<\/p>
\u5b89\u88c5\u65f6\u95f4\u53ef\u80fd\u4f1a\u51e0\u5341\u5206\u949f\u5230\u51e0\u4e2a\u5c0f\u65f6\u4e0d\u7b49\uff0c\u4e3b\u8981\u662f\u673a\u5668\u7684\u914d\u7f6e\u7f51\u901f\u7b49\u539f\u56e0\u4f1a\u9020\u6210\u5f71\u54cd\u3002<\/p>
3.\u5b89\u88c5\u5b8c\u6210<\/p>
\u5982\u679c\u51fa\u73b0\u4ee5\u4e0b\u754c\u9762\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\uff01<\/p>
<\/p>
<\/p>
\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8\uff1a<\/strong><\/p>\u628a\u542f\u52a8\u7a0b\u5e8f\u7684\u547d\u4ee4\u6dfb\u52a0\u5230\/etc\/rc.d\/rc.local\u6587\u4ef6\u4e2d\uff0c\u5728rc.local\u4e2d\u589e\u52a0\u7ea2\u8272\u7684\u90a3\u51e0\u884c\uff1b<\/p>
[root@localhost ~]# cat \/etc\/rc.d\/rc.local
#!\/bin\/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch \/var\/lock\/subsys\/local
\/www\/lanmps\/action\/nginx start
\/www\/lanmps\/action\/httpd start
\/www\/lanmps\/action\/mysql start
\/www\/lanmps\/action\/php-fpm start
\/www\/lanmps\/action\/memcached start<\/span>
[root@localhost ~]#<\/p>
<\/p>
nginx\u4e0b\u914d\u7f6e\u7ad9\u70b9\uff1a<\/strong><\/p>\u8fdb\u5165\u5b89\u88c5\u6587\u4ef6\u6240\u5728\u76ee\u5f55
[root@iZ62vgzgugyZ ~]# ls
lanmps lanmps-2.2.3 lanmps-2.2.3.tar.gz vhost.sh<\/p>
\u8fd0\u884c.\/vhost.sh,\u6309\u63d0\u793a\u8f93\u5165\u57df\u540d\u5373\u53ef<\/p>
[root@iZ62vgzgugyZ ~]# .\/vhost.sh
\u7136\u540e\u4f1a\u4ea7\u751f\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e8e\uff1a\/www\/lanmp\/nginx\/conf\/vhost\/\u4e0a\u4e00\u6b65\u8f93\u5165\u7684\u57df\u540d.conf<\/p>
\u5982\uff1a
[root@iZ62vgzgugyZ vhost]# ls
00000.default.conf www.3gcb.com.conf www.gupiaojz.com.conf
00000.default.conf\u4e3a\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<\/p>
<\/p>
<\/p>
thinkphp rewrite\u6a21\u5f0f=2\u65f6\u4f2a\u9759\u6001\u914d\u7f6e\uff1a<\/strong><\/p>\u52a0\u5165\u7ea2\u8272\u90a3\u6bb5\u4ee3\u7801\u5373\u53ef
<\/strong><\/p>[root@iZ62vgzgugyZ vhost]# cat www.3gcb.com.conf
server
{
listen 80;
server_name www.3gcb.com ;
root \/www\/wwwroot\/www.3gcb.com;
location \/ {
index index.html index.htm index.php default.html default.htm default.php;
if (!-e $request_filename) {
rewrite ^(.*)$ \/index.php?s=$1 last;
break;
}<\/span>
}
location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*.(js|css)?$ {
expires 12h;
}
location ~ .php$ {
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:\/tmp\/php-cgi.sock;
fastcgi_pass bakend;
fastcgi_index index.php;
include fastcgi.conf;
}
include \/www\/wwwroot\/www.3gcb.com\/lanmps-*.conf;
access_log off;
}
<\/p>
<\/p>
phpmyadmin\u9ed8\u8ba4\u5e10\u53f7<\/strong><\/p>\u5b89\u88c5\u5b8c\u6210\u540e\u76f4\u63a5\u8bbf\u95ee\u4e3b\u673aip\u5730\u5740\uff0c\u5728\u91cc\u9762\u7684\u94fe\u63a5\u4e2d\u53ef\u4ee5\u8fdb\u5165phpmyadmin,\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801\u5747\u4e3aroot<\/strong>
<\/p>"}