根据启动Bash Shell的方式不同,对Shell有两种分类方式
根据Shell的启动方式不同,可以将Shell分为
| #!/bin/bash | |
| #Author: timger <yishenggudou@gmail.com> | |
| #weibo <http://t.sina.com/zhanghaibo> | |
| #@yishenggudou http://twitter.com/yishenggudou | |
| #1.安装(CentOS 6.2) | |
| wget --output-document=redis-2.4.14.tar.gz https://code.google.com/p/redis/downloads/detail?name=redis-2.4.14.tar.gz&can=2&q= | |
| tar zxf redis-2.4.14.tar.gz | |
| cd redis-2.4.14 | |
| make |
| #This is the "site config" for nginx | |
| upstream django { | |
| # Distribute requests to servers based on client IP. This keeps load | |
| # balancing fair but consistent per-client. In this instance we're | |
| # only using one uWGSI worker anyway. | |
| ip_hash; | |
| server unix:/tmp/uwsgi.sock; | |
| } | |
| server { |
| #!/bin/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /etc/nginx/nginx.conf | |
| # config: /etc/sysconfig/nginx |
| #!/bin/bash | |
| FASTCGI_USER=www-data #需要和nginx的一至 查看/etc/group /etc/passwd | |
| FASTCGI_GROUP=www-data | |
| SOCKET=/var/run/php-fastcgi/php-fastcgi.socket | |
| PIDFILE=/var/run/php-fastcgi/php-fastcgi.pid | |
| CHILDREN=6 | |
| PHP5=/usr/bin/php5-cgi #需要查看自己的php版本或许为php-cgi | |
| /usr/bin/spawn-fcgi -s $SOCKET -P $PIDFILE -C $CHILDREN -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5 |
| #!/bin/bash | |
| FASTCGI_USER=www-data | |
| FASTCGI_GROUP=www-data | |
| SOCKET=/var/run/php-fastcgi/php-fastcgi.socket | |
| PIDFILE=/var/run/php-fastcgi/php-fastcgi.pid | |
| CHILDREN=6 | |
| PHP5=/usr/bin/php5-cgi | |
| /usr/bin/spawn-fcgi -s $SOCKET -P $PIDFILE -C $CHILDREN -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5 |
| #!/usr/bin/env python | |
| """ | |
| RSS.py | |
| Classes for working with RSS channels as arbitrary data structures. | |
| Requires Python 2.2 or newer and PyXML 0.7.1 or newer. | |
| ChannelBase - Base class for RSS Channels. | |
| CollectionChannel - RSS Channel modeled as a URI-per-entry |