VPS Tutorials www.vps-tutorial.info

VPS Tutorials

站名: VPS Tutorials

网址: http://www.vps-tutorial.info

目录: 电脑网络 > 域名空间

PR:

Alexa: 1,099,481

备案号:

服务器IP: 173.224.208.162   美国 加利福尼亚州洛杉矶县沃尔纳特市Psychz网络公司

描述: VPS Tutorials

查询: [ 网站综合查询 | PR查询 | Alexa排名 | 同IP网站 ]

详细介绍

VPS Tutorials Powered by PhotonVPSSubscribe via RSSHome9Oct/110Set time-out settings for Windows 2003Filed under: WindowsNo Comments15Jun/110Setting up DNS on a Linux Dedicated ServerFiled under: CentOS, Linux, OpenVZ, XenNo Comments21May/110LNMP Server on CentOS//32 bitrpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpmrpm -ivh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm//64 bitrpm -ivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmrpm -ivh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm//Visit http://dev.mysql.com/downloads/mysql/5.5.html?current_os=7#downloads//You need to download 4 packages, they are:MySQL-client MySQL-server MySQL-shared-compat MySQL-shared//After you download them run:rpm -ivh *.rpm//change MySQL root password:service mysql startmysqladmin -u root password 'yourpasswd'service mysql stopgroupadd wwwuseradd -g www -d /home/www www// We add www as user of nginx and php-fpmyum install php53u-cli php53u-common php53u php53u-devel php53u-mysql php53u-xmlrpc php53u-xml php53u-gd php53u-pdo php53u-tidy php53u-mcrypt php53u-mbstring php53u-pear php53u-pecl php53u-pecl-memcache php53u-pecl-apc php53u-fpm//The current PHP version is 5.3.5-3, IUS' package's name is php53u//You can run command blew to find out lastest versionyum list | grep -w \.ius\.//setup php-fpmvim /etc/php-fpm.d/www.conf//Find Unix user/group of processes//change user & group to www//visit http://nginx.org/en/download.html to get lastest Nginx
//for example, we use http://nginx.org/download/nginx-0.9.5.tar.gz
cd /tmp
wget http://nginx.org/download/nginx-0.9.5.tar.gz
tar -zxvf nginx-*.tar.gz
cd nginx-*
./configure --user=www --group=www --conf-path=/etc/nginx/nginx.conf --with-http_stub_status_module --with-http_ssl_module
make
make install
//register nginx as a service
vim /etc/init.d/nginx
//paste the script blew then run: chmod 755 /etc/init.d/nginx
#
# nginx - this script starts and stops the nginx daemin
#
# 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
# pidfile: /usr/local/nginx/logs/nginx.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
nginx="/usr/local/nginx/sbin/nginx"
prog=$(basename $nginx)
NGINX_CONF_FILE="/etc/nginx/nginx.conf"
[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx
lockfile=/var/lock/subsys/nginx
start() {
[ -x $nginx ] || exit 5
[ -f $NGINX_CONF_FILE ] || exit 6
echo -n $"Starting $prog: "

daemon $nginx -c $NGINX_CONF_FILE
retval=$?
echo
[ $retval -eq 0 ] &&

猜你喜欢