据说最近喜欢自己写脚本,我也写了一个= =

php5、mysql采用apt-get方式安装,nginx采用编译安装,加入了一键反代加替换脚本。

仅在Debian测试通过

各软件版本:

获取一键包:

安装过程及注释:



需要手动输入的东西非常少。由于mysql及php采用apt-get方式安装,速度比lnmp.org的快不少

 

添加虚拟主机及反向代理:


虚拟主机添加方式跟军哥的脚本差不多。

关于反向代理请看:http://jybb.me/nginx-proxy-pass-and-substitutions4nginx

反代成功截图:

部分目录:

php: /etc/php5

nginx: /etc/nginx

mysql: /etc/mysql

虚拟主机目录:/etc/nginx/host

Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}

PHP-FPM状态管理:/etc/init.d/php5-fpm {start|stop|quit|restart|reload|logrotate}

PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}

MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}

phpinfo : http://前面输入的域名或IP/phpinfo.php

phpMyAdmin : http://前面输入的域名或IP/phpmyadmin/

探针 : http://前面输入的域名或IP/tz.php

 

由于此脚本是我一个人写的,难免出错,出错请反馈= =

本一键包在Host1Free、aoyohostxehost、Renderhosting 测试成功,由于手上vps少,其他的自己测试吧。。。

下面是在128M openvz的vps上的安装情况

   

已有 16 條評論

  1. New赵木木三 11 年前 (2013-02-21)
    @

    学习了~~~~~

  2. 小锋 11 年前 (2013-01-10)
    @

    踩场 。 。

  3. thavess 12 年前 (2012-11-19)
    @

    设置了主域名和www子域名反代同一个网站,主域名可以打开,子域名打开403,何解?

  4. 单飞花絮 12 年前 (2012-11-14)
    @

    不管。。有个站用了cloudflare反代不了

    • 飛天鼠 12 年前 (2012-11-16)
      @

      用cloudflare一样可以反代

  5. eagle 12 年前 (2012-11-06)
    @

    BuyVM oz mysql 无法启动 老循环 要输入密码~!│ Unable to set password for the MySQL “root” user │ │ │ │ An error occurred while setting the password for the MySQL │ │ administrative user. This may have happened because the account already │ │ has a password, or because of a communication problem with the MySQL │ │ server. │ │ │ │ You should check the account’s password after the package installation. │ │ │ │ Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for │ │ more information.

    • 魅客网 12 年前 (2012-11-08)
      @

      明天,等月姐处理….

    • 飛天鼠 12 年前 (2012-11-09)
      @

      – -你已经装过mysql了吧?

  6. 小人物 12 年前 (2012-10-19)
    @

    i7-3770 h1f。。。你在怎么隐藏也是没用滴。。。

  7. hzqim 12 年前 (2012-10-14)
    @

    犀利!

  8. ★Extreme★ 12 年前 (2012-10-14)
    @

    话说反代理是干嘛用的……昨天我把我的VPS的LNMPA环境给搞定了!cdit.hk的VPS可以拿去测试用,过了手机验证可以得到30元代金券,可以买五天的Linux VPS了!

    • 飛天鼠 12 年前 (2012-10-14)
      @

      反代麽。。。很多作用可以做负载均衡,这是适合大站用的,像腾讯新浪这些都反代的。。。也可以当小偷用,反代——替换

  9. 慕叶思晨 12 年前 (2012-10-13)
    @

    唉,我都不知道有留言这个东西了。。。

  10. 七年 12 年前 (2012-10-13)
    @

    make~