zoukankan      html  css  js  c++  java
  • lnmp 脚本

    #!/bin/sh
    
    echo "欢迎使用 lnmp 脚本 (fanshengshuai@gmail.com) ";
    echo "增加资源。。。";
    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    # CentOS 7
    #rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
    rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm yum install -y mailx setuptool ntsysv system-config-firewall-tui system-config-network-tui wget curl screen unzip vim rsync openssh-clients ntpdate yum install -y nginx memcached nload spawn-fcgi yum install -y php-cgi php-mysql php-gd php-mcrypt php-mbstring php-mysql php-odbc php-pdo php-xml php-zip php-pecl-memcache yum install -y mysql-server wget http://bash.cyberciti.biz/dl/419.sh.zip unzip 419.sh.zip mv 419.sh /etc/init.d/php_cgi chmod +x /etc/init.d/php_cgi /etc/init.d/httpd stop /etc/init.d/nginx start /etc/init.d/php_cgi start /etc/init.d/mysqld start chkconfig nginx on chkconfig php_cgi on chkconfig mysqld on
    #!/bin/sh
    
    echo "欢迎使用 lnmp 脚本 (fanshengshuai@gmail.com) ";
    echo "增加资源。。。";
    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
    
    yum install -y mailx setuptool ntsysv system-config-firewall-tui system-config-network-tui  wget curl screen unzip vim rsync openssh-clients ntpdate
    
    yum install -y nginx memcached nload spawn-fcgi
    yum install -y php-cgi php-mysql php-gd php-mcrypt php-mbstring php-mysql php-odbc php-pdo  php-xml php-zip php-pecl-memcache
    
    yum install -y mysql-server
    
    
    
    /etc/init.d/httpd stop
    /etc/init.d/nginx start
    
    /etc/init.d/mysqld start
    
    chkconfig nginx on
    chkconfig spawn-fcgi on
    chkconfig mysqld on

    vim /etc/sysconfig/spawn-fcgi

    SOCKET=/var/run/php-fcgi.sock
    OPTIONS="-u nginx -g nginx -s $SOCKET -P /var/run/spawn-fcgi.pid -- /usr/bin/php-cgi"

    /etc/init.d/spawn-fcgi restart

    站点配置:

    server {
    listen       80
    location ~ \.php$
    {
    root   /www/kuboluo.com;
    index  index.html index.php  index.htm;
    fastcgi_pass   unix:/var/run/php-fcgi.sock;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME /www/kuboluo.com$fastcgi_script_name;
    include        fastcgi_params;
    }
    }
  • 相关阅读:
    log4net 无法输出日志,跟踪发现IsErrorEnabled等,都是Flase
    jquery load加载不了内容
    数据库中的表还是一定要建索引
    最近的项目中用到读卡器,用的华视身份证阅读器,附上SDK使用手册
    背景自动滚动
    理解JavaScript函数(函数和对象的区别和联系)
    代码运行框
    ie8以ie7方式解析
    js开发工具集
    cssZip
  • 原文地址:https://www.cnblogs.com/shengshuai/p/2980995.html
Copyright © 2011-2022 走看看