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;
    }
    }
  • 相关阅读:
    luogu P1833 樱花 看成混合背包
    luogu P1077 摆花 基础记数dp
    luogu P1095 守望者的逃离 经典dp
    Even Subset Sum Problem CodeForces
    Maximum White Subtree CodeForces
    Sleeping Schedule CodeForces
    Bombs CodeForces
    病毒侵袭持续中 HDU
    病毒侵袭 HDU
    Educational Codeforces Round 35 (Rated for Div. 2)
  • 原文地址:https://www.cnblogs.com/shengshuai/p/2980995.html
Copyright © 2011-2022 走看看