亚洲视频免费一区,亚洲国产精品久久久久,亚洲理论片中文字幕电影http://m.tkk7.com/libin2722/category/53208.html虛其心,可解天下之問(wèn);專其心,可治天下之學(xué);靜其心,可悟天下之理;恒其心,可成天下之業(yè)。zh-cnMon, 06 Aug 2018 19:00:19 GMTMon, 06 Aug 2018 19:00:19 GMT60Linux centos 6.3 Tomcat Installhttp://m.tkk7.com/libin2722/articles/394027.html禮物禮物Wed, 09 Jan 2013 07:01:00 GMThttp://m.tkk7.com/libin2722/articles/394027.htmlhttp://m.tkk7.com/libin2722/comments/394027.htmlhttp://m.tkk7.com/libin2722/articles/394027.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394027.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394027.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=apache-tomcat-7.0.34.tar.gz
SOURCE=http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-7/v7.0.34/bin/$TARGET

# Create a build directory
mkdir -p /opt/install/tomcat && cd /opt/install/tomcat

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y apr-devel openssl-devel

# Create a User Group
groupadd tomcat
useradd -r -g tomcat tomcat

# Compile and deploy
mkdir -p /opt/server/web && mv tmp/* /opt/server/web/tomcat && cd /opt/server/web/tomcat/bin
tar -zxvf tomcat-native.tar.gz && cd tomcat-native-1.1.24-src/jni/native/
./configure \
--with-apr=/usr/bin/apr-1-config \
--with-java-home=/opt/environment/java/1.7.0 \
--with-ssl=yes \
--prefix=/opt/server/web/tomcat
make
make install

cd /opt/server/web/tomcat
curl -o conf/server.xml https://raw.github.com/fly2wind/TSShellScript/master/tomcat/conf/server.xml
curl -o conf/tomcat-users.xml https://raw.github.com/fly2wind/TSShellScript/master/tomcat/conf/tomcat-users.xml
curl -o conf/wrapper.conf https://raw.github.com/fly2wind/TSShellScript/master/tomcat/wrapper/wrapper.conf
curl -o lib/wrapper.jar https://raw.github.com/fly2wind/TSShellScript/master/tomcat/wrapper/wrapper.jar
curl -o lib/wrapper.so https://raw.github.com/fly2wind/TSShellScript/master/tomcat/wrapper/libwrapper.so
curl -o bin/tomcat https://raw.github.com/fly2wind/TSShellScript/master/tomcat/wrapper/tomcat

# Postinstallation setup
cd /opt/server/web/tomcat
chown -R tomcat .
chgrp -R tomcat .
chown -R root .
chown -R tomcat conf webapps work temp logs

# Configuration
curl -o /etc/init.d/tomcat https://raw.github.com/fly2wind/TSShellScript/master/tomcat/init/tomcat
chmod a+x /etc/init.d/tomcat

# Additional
chkconfig --add tomcat
chkconfig tomcat on



禮物 2013-01-09 15:01 發(fā)表評(píng)論
]]>
Linux centos 6.3 Nginx Installhttp://m.tkk7.com/libin2722/articles/394024.html禮物禮物Wed, 09 Jan 2013 07:00:00 GMThttp://m.tkk7.com/libin2722/articles/394024.htmlhttp://m.tkk7.com/libin2722/comments/394024.htmlhttp://m.tkk7.com/libin2722/articles/394024.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394024.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394024.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=nginx-1.2.6.tar.gz
SOURCE=http://nginx.org/download/nginx-1.2.6.tar.gz

# Create a build directory
mkdir -p /opt/install/nginx && cd /opt/install/nginx

# Prepare for compilation source
curl -o $TARGET $SOURCE
curl -o ngx_devel_kit.tar.gz https://nodeload.github.com/simpl/ngx_devel_kit/tar.gz/v0.2.17
curl -o lua-nginx-module.tar.gz https://nodeload.github.com/chaoslawful/lua-nginx-module/tar.gz/v0.7.12

mkdir -p tmp && tar -zxvf $TARGET -C tmp
tar -zxvf ngx_devel_kit.tar.gz
tar -zxvf lua-nginx-module.tar.gz

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y pcre-devel zlib-devel openssl-devel

# Create a User Group
groupadd nginx
useradd -r -g nginx nginx

# Compile and deploy
mv tmp/* source && cd source

export LUAJIT_LIB=/opt/environment/lua/lj2/lib
export LUAJIT_INC=/opt/environment/lua/lj2/include/luajit-2.0

./configure \
--prefix=/opt/server/web/nginx \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--http-client-body-temp-path=/opt/server/web/nginx/var/tmp/nginx/client-body \
--http-proxy-temp-path=/opt/server/web/nginx/var/tmp/nginx/proxy \
--http-fastcgi-temp-path=/opt/server/web/nginx/var/tmp/nginx/fastcgi \
--http-uwsgi-temp-path=/opt/server/web/nginx/var/tmp/nginx/uwsgi \
--http-scgi-temp-path=/opt/server/web/nginx/var/tmp/nginx/scgi \
--add-module=../ngx_devel_kit-0.2.17 \
--add-module=../lua-nginx-module-0.7.12 \
--with-ld-opt="-Wl,-rpath,$LUAJIT_LIB"
make
make install

cd /opt/server/web/nginx
mkdir -p var/tmp/nginx var/lock var/run

curl -o conf/nginx.conf https://raw.github.com/fly2wind/TSShellScript/master/nginx/conf/nginx.conf

# Postinstallation setup
cd /opt/server/web/nginx
chown -R nginx .
chgrp -R nginx .
chown -R root .
chown -R nginx html var

# Configuration
curl -o /etc/init.d/nginx https://raw.github.com/fly2wind/TSShellScript/master/nginx/init/nginx
chmod a+x /etc/init.d/nginx

# Additional
chkconfig --add nginx
chkconfig nginx on




禮物 2013-01-09 15:00 發(fā)表評(píng)論
]]>
Linux centos 6.3 Python Installhttp://m.tkk7.com/libin2722/articles/394025.html禮物禮物Wed, 09 Jan 2013 07:00:00 GMThttp://m.tkk7.com/libin2722/articles/394025.htmlhttp://m.tkk7.com/libin2722/comments/394025.htmlhttp://m.tkk7.com/libin2722/articles/394025.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394025.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394025.html
#!/bin/sh
########################################################################################
#
# Install JDK Script
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=Python-2.7.3.tar.bz2
SOURCE=http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2

# Create a build directory
mkdir -p /opt/install/python && cd /opt/install/python

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -xvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y ncurses-devel openssl-devel readline-devel

# Create a User Group

# Compile and deploy
mv tmp/* source && cd source
./configure \
--prefix=/opt/environment/python/2.7.3
make
make install

cd ..
curl -O http://python-distribute.org/distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
/opt/environment/python/2.7.3/bin/python2.7 distribute_setup.py
/opt/environment/python/2.7.3/bin/python2.7 get-pip.py

# Postinstallation setup
export PATH=$PATH:/opt/environment/python/2.7.3/bin

# Configuration

# Additional
sed -i '/export PATH=/a\export PATH=$PATH:\/opt\/environment\/python\/2.7.3\/bin' /etc/profile




禮物 2013-01-09 15:00 發(fā)表評(píng)論
]]>
Linux centos 6.3 Redis Installhttp://m.tkk7.com/libin2722/articles/394026.html禮物禮物Wed, 09 Jan 2013 07:00:00 GMThttp://m.tkk7.com/libin2722/articles/394026.htmlhttp://m.tkk7.com/libin2722/comments/394026.htmlhttp://m.tkk7.com/libin2722/articles/394026.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394026.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394026.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=redis-2.6.7.tar.gz
SOURCE=http://redis.googlecode.com/files/redis-2.6.7.tar.gz

# Create a build directory
mkdir -p /opt/install/redis && cd /opt/install/redis

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake

# Create a User Group
groupadd redis
useradd -r -g redis redis

# Compile and deploy
mv tmp/* source && cd source
make PREFIX=/opt/server/cache/redis
make install PREFIX=/opt/server/cache/redis

cd /opt/server/cache/redis
mkdir -p conf var/run var/lock var/snapshot logs
curl -o conf/redis.conf https://raw.github.com/fly2wind/TSShellScript/master/redis/conf/redis.conf

# Postinstallation setup
cd /opt/server/cache/redis
chown -R redis .
chgrp -R redis .
chown -R root .
chown -R redis var logs

# Configuration
curl -o /etc/init.d/redis https://raw.github.com/fly2wind/TSShellScript/master/redis/init/redis
chmod a+x /etc/init.d/redis

# Additional
chkconfig --add redis
chkconfig redis on




禮物 2013-01-09 15:00 發(fā)表評(píng)論
]]>
Linux centos 6.3 Mysql Installhttp://m.tkk7.com/libin2722/articles/394022.html禮物禮物Wed, 09 Jan 2013 06:59:00 GMThttp://m.tkk7.com/libin2722/articles/394022.htmlhttp://m.tkk7.com/libin2722/comments/394022.htmlhttp://m.tkk7.com/libin2722/articles/394022.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394022.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394022.html
#!/bin/sh
########################################################################################
#
# Install MySQL Script
#
# Shawn Ma
# 2013-01-06
#
########################################################################################
# Define
TARGET=mysql-5.5.29.tar.gz
SOURCE=http://cdn.mysql.com/Downloads/MySQL-5.5/$TARGET

# Create a build directory
mkdir -p /opt/install/mysql && cd /opt/install/mysql

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y bison ncurses-devel

# Create a User Group
groupadd mysql
useradd -r -g mysql mysql

# Compile and deploy
mv tmp/* source && cd source
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/server/database/mysql \
-DSYSCONFDIR=/opt/server/database/mysql \
-DMYSQL_UNIX_ADDR=/opt/server/database/mysql/tmp/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DMYSQL_DATADIR=/opt/server/database/mysql/data \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=all \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_DEBUG=OFF \
-DMYSQL_USER=mysql
make
make install

cd /opt/server/database/mysql
curl -o my.cnf https://raw.github.com/fly2wind/TSShellScript/master/mysql/conf/my.cnf


# Postinstallation setup
cd /opt/server/database/mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data

# Configuration
curl -o /etc/init.d/mysql https://raw.github.com/fly2wind/TSShellScript/master/mysql/init/mysql
chmod a+x /etc/init.d/mysql

/etc/init.d/mysql start
bin/mysqladmin -u root password "TV.xian"
bin/mysql -u root -pTV.xian -e "GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'TV.xian' WITH GRANT OPTION; FLUSH PRIVILEGES;"
bin/mysql -u root -pTV.xian -e "GRANT REPLICATION SLAVE ON *.* TO 'backup'@'%' IDENTIFIED BY 'backup'; FLUSH PRIVILEGES;";
/etc/init.d/mysql stop

# Additional
chkconfig --add mysql
chkconfig mysql on



禮物 2013-01-09 14:59 發(fā)表評(píng)論
]]>
Linux centos 6.3 Mysql slave Installhttp://m.tkk7.com/libin2722/articles/394023.html禮物禮物Wed, 09 Jan 2013 06:59:00 GMThttp://m.tkk7.com/libin2722/articles/394023.htmlhttp://m.tkk7.com/libin2722/comments/394023.htmlhttp://m.tkk7.com/libin2722/articles/394023.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394023.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394023.html
#!/bin/sh
########################################################################################
#
# Install MySQL Script
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=mysql-5.5.29.tar.gz
SOURCE=http://cdn.mysql.com/Downloads/MySQL-5.5/$TARGET

# Create a build directory
mkdir -p /opt/install/mysql && cd /opt/install/mysql

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y bison ncurses-devel

# Create a User Group
groupadd mysql
useradd -r -g mysql mysql

# Compile and deploy
mv tmp/* source && cd source
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/server/database/mysql_slave \
-DSYSCONFDIR=/opt/server/database/mysql_slave \
-DMYSQL_UNIX_ADDR=/opt/server/database/mysql_slave/tmp/mysql.sock \
-DMYSQL_TCP_PORT=3307 \
-DMYSQL_DATADIR=/opt/server/database/mysql_slave/data \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=all \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_DEBUG=OFF \
-DMYSQL_USER=mysql
make
make install

# Postinstallation setup
cd /opt/server/database/mysql_slave
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data

# Configuration
cp support-files/my-medium.cnf my.cnf
sed -i "/\[mysqld\]$/a\datadir???????? = \/opt\/server\/database\/mysql_slave\/data/" my.cnf
sed -i "s/^server-id.*/server-id?????? = 2/g" my.cnf
cp support-files/mysql.server /etc/init.d/mysql_slave && chmod a+x /etc/init.d/mysql_slave
##chkconfig --add mysql
##chkconfig --level 345 mysql on
##update-rc.d -a mysql
##update-rc.d mysql defaults

# Additional
/etc/init.d/mysql_slave start
bin/mysqladmin -u root password "TV.xian"
bin/mysql -u root -pTV.xian -e "GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'TV.xian' WITH GRANT OPTION; FLUSH PRIVILEGES;"
bin/mysql -u root -pTV.xian -e "change master to master_host='192.168.102.128',master_port=3306,master_user='backup',master_password='backup', master_log_file='mysql-bin.000005',master_log_pos=326;"
bin/mysql -u root -pTV.xian -e "start slave;"

/etc/init.d/mysql_slave stop



禮物 2013-01-09 14:59 發(fā)表評(píng)論
]]>
Linux centos 6.3 Lua Installhttp://m.tkk7.com/libin2722/articles/394020.html禮物禮物Wed, 09 Jan 2013 06:58:00 GMThttp://m.tkk7.com/libin2722/articles/394020.htmlhttp://m.tkk7.com/libin2722/comments/394020.htmlhttp://m.tkk7.com/libin2722/articles/394020.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394020.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394020.html
#!/bin/sh
########################################################################################
#
# Install Lua Script
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=LuaJIT-2.0.0.tar.gz
SOURCE=http://luajit.org/download/LuaJIT-2.0.0.tar.gz

# Create a build directory
mkdir -p /opt/install/lua && cd /opt/install/lua

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies

# Create a User Group

# Compile and deploy
mv tmp/* source && cd source
make PREFIX=/opt/environment/lua/lj2
make install PREFIX=/opt/environment/lua/lj2

# Postinstallation setup
export PATH=$PATH:/opt/environment/lua/lj2/bin

# Configuration

# Additional






禮物 2013-01-09 14:58 發(fā)表評(píng)論
]]>
Linux centos 6.3 Memcached Installhttp://m.tkk7.com/libin2722/articles/394021.html禮物禮物Wed, 09 Jan 2013 06:58:00 GMThttp://m.tkk7.com/libin2722/articles/394021.htmlhttp://m.tkk7.com/libin2722/comments/394021.htmlhttp://m.tkk7.com/libin2722/articles/394021.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394021.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394021.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=memcached-1.4.15.tar.gz
SOURCE=http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz

# Create a build directory
mkdir -p /opt/install/memcached && cd /opt/install/memcached

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y libevent-devel

# Create a User Group
groupadd memcache
useradd -r -g memcache memcache

# Compile and deploy
mv tmp/* source && cd source
./configure \
--prefix=/opt/server/cache/memcached
make
make install

cd /opt/server/cache/memcached
mkdir -p conf var/run var/lock logs
curl -o conf/memcached.conf https://raw.github.com/fly2wind/TSShellScript/master/memcached/conf/memcached.conf

# Postinstallation setup
cd /opt/server/cache/memcached
chown -R memcache .
chgrp -R memcache .
chown -R root .
chown -R memcache var logs

# Configuration
curl -o /etc/init.d/memcached https://raw.github.com/fly2wind/TSShellScript/master/memcached/init/memcached
chmod a+x /etc/init.d/memcached

# Additional
chkconfig --add memcached
chkconfig memcached on




禮物 2013-01-09 14:58 發(fā)表評(píng)論
]]>
Linux centos 6.3 Erlang Installhttp://m.tkk7.com/libin2722/articles/394018.html禮物禮物Wed, 09 Jan 2013 06:57:00 GMThttp://m.tkk7.com/libin2722/articles/394018.htmlhttp://m.tkk7.com/libin2722/comments/394018.htmlhttp://m.tkk7.com/libin2722/articles/394018.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394018.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394018.html
#!/bin/sh
########################################################################################
#
# Install JDK Script
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=OTP_R15B03-1.tar.gz
SOURCE=https://nodeload.github.com/erlang/otp/tar.gz/OTP_R15B03-1

# Create a build directory
mkdir -p /opt/install/erlang && cd /opt/install/erlang

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y ncurses-devel openssl-devel

# Create a User Group

# Compile and deploy
mv tmp/* source && cd source
./otp_build autoconf
./configure \
--prefix=/opt/environment/erlang/R15B03 \
--enable-threads \
--enable-smp-support \
--enable-kernel-poll \
--enable-hipe \
--without-termcap \
--without-javac \
--with-ssl
make
make install

# Postinstallation setup
export PATH=$PATH:/opt/environment/erlang/R15B03/bin

# Configuration

# Additional
# export PATH USER
sed -i '/export PATH=/a\export PATH=$PATH:\/opt\/environment\/erlang\/R15B03\/bin' /etc/profile



禮物 2013-01-09 14:57 發(fā)表評(píng)論
]]>
Linux centos 6.3 Graphicsmagick Installhttp://m.tkk7.com/libin2722/articles/394019.html禮物禮物Wed, 09 Jan 2013 06:57:00 GMThttp://m.tkk7.com/libin2722/articles/394019.htmlhttp://m.tkk7.com/libin2722/comments/394019.htmlhttp://m.tkk7.com/libin2722/articles/394019.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394019.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394019.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=GraphicsMagick-LATEST.tar.gz
SOURCE=ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz

# Create a build directory
mkdir -p /opt/install/graphicsmagick && cd /opt/install/graphicsmagick

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y libpng-devel libjpeg-devel libtiff-devel jasper-devel freetype-devel

# Create a User Group

# Compile and deploy
mv tmp/* source && cd source
./configure \
--prefix=/opt/tools/graphicsmagick \
--enable-shared \
--enable-static \
--with-quantum-depth=16 \
--with-ttf \
--with-jpeg \
--with-jp2 \
--with-png \
--with-zlib

make
make install

cd /opt/server/cache/memcached
mkdir -p conf var/run var/lock logs
curl -o conf/memcached.conf https://raw.github.com/fly2wind/TSShellScript/master/memcached/conf/memcached.conf

# Postinstallation setup
cd /opt/server/cache/memcached
chown -R memcache .
chgrp -R memcache .
chown -R root .
chown -R memcache var logs

# Configuration
curl -o /etc/init.d/memcached https://raw.github.com/fly2wind/TSShellScript/master/memcached/init/memcached
chmod a+x /etc/init.d/memcached

# Additional
chkconfig --add memcached
chkconfig memcached on




禮物 2013-01-09 14:57 發(fā)表評(píng)論
]]>
Linux centos 6.3 Ejabberd Installhttp://m.tkk7.com/libin2722/articles/394017.html禮物禮物Wed, 09 Jan 2013 06:55:00 GMThttp://m.tkk7.com/libin2722/articles/394017.htmlhttp://m.tkk7.com/libin2722/comments/394017.htmlhttp://m.tkk7.com/libin2722/articles/394017.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/394017.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/394017.html
#!/bin/sh
########################################################################################
#
# Install Ejabberd Server
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=v2.1.11.tar.gz
SOURCE=https://nodeload.github.com/processone/ejabberd/tar.gz/v2.1.11

# Create a build directory
mkdir -p /opt/install/ejabberd && cd /opt/install/ejabberd

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies
yum install -y gcc gcc-c++ make cmake autoconf automake
yum install -y expat-devel

# Create a User Group
groupadd ejabberd
useradd -r -g ejabberd ejabberd

# Compile and deploy
mv tmp/* source && cd source\src
./configure \
--prefix=/opt/server/xmpp/ejabberd \
--enable-user=ejabberd \
--enable-full-xml \
--enable-nif
make
make install

cd /opt/server/xmpp/ejabberd
curl -o etc/ejabberd/ejabberd.cfg https://raw.github.com/fly2wind/TSShellScript/master/ejabberd/conf/ejabberd.cfg
curl -o etc/ejabberd/ejabberdctl.cfg https://raw.github.com/fly2wind/TSShellScript/master/ejabberd/conf/ejabberdctl.cfg
curl -o etc/ejabberd/inetrc https://raw.github.com/fly2wind/TSShellScript/master/ejabberd/conf/inetrc

# Postinstallation setup
cd /opt/server/xmpp/ejabberd
chown -R ejabberd .
chgrp -R ejabberd .
chown -R root .
chown -R ejabberd var

# Configuration
sed -i "/^ERL=.*/a\PMD=\/opt\/environment\/erlang\/R15B03\/bin\/epmd" sbin/ejabberdctl
sed -i -e "s/epmd -names | grep -q name || epmd -kill/\$PMD -names | grep -q name || \$PMD -kill/" sbin/ejabberdctl
curl -o /etc/init.d/ejabberd https://raw.github.com/fly2wind/TSShellScript/master/ejabberd/init/ejabberd
chmod a+x /etc/init.d/ejabberd

# Additional
chkconfig --add ejabberd
chkconfig ejabberd on




禮物 2013-01-09 14:55 發(fā)表評(píng)論
]]>
Linux centos 6.3 JDK Installhttp://m.tkk7.com/libin2722/articles/393978.html禮物禮物Tue, 08 Jan 2013 09:38:00 GMThttp://m.tkk7.com/libin2722/articles/393978.htmlhttp://m.tkk7.com/libin2722/comments/393978.htmlhttp://m.tkk7.com/libin2722/articles/393978.html#Feedback0http://m.tkk7.com/libin2722/comments/commentRss/393978.htmlhttp://m.tkk7.com/libin2722/services/trackbacks/393978.html
#!/bin/sh
########################################################################################
#
# Install JDK Script
#
# Shawn Ma
#
########################################################################################
# Define
TARGET=jdk-7u10-linux-x64.tar.gz
SOURCE=http://www.ganshazi.com/jdk-7u10-linux-x64.tar.gz

# Create a build directory
mkdir -p /opt/install/java && cd /opt/install/java

# Prepare for compilation source
curl -o $TARGET $SOURCE
mkdir -p tmp && tar -zxvf $TARGET -C tmp

# Install build dependencies

# Create a User Group

# Compile and deploy
mkdir -p /opt/environment/java && mv tmp/* /opt/environment/java/1.7.0

# Postinstallation setup
export PATH=$PATH:/opt/environment/java/1.7.0/bin

# Configuration

# Additional
sed -i '/export PATH$/a\export PATH=$PATH:\/opt\/environment\/java\/1.7\/bin' /etc/profile







禮物 2013-01-08 17:38 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 一级黄色免费大片| 一本色道久久综合亚洲精品高清 | 无码午夜成人1000部免费视频| 亚洲人成色4444在线观看| 久久精品国产亚洲AV香蕉| 亚洲人成人77777网站| 五月婷婷亚洲综合| 韩国免费三片在线视频| 2020久久精品国产免费| 日韩精品极品视频在线观看免费| sihu国产精品永久免费| 美女18一级毛片免费看| 亚洲精品乱码久久久久久V| 亚洲丰满熟女一区二区v| 精品亚洲麻豆1区2区3区| 亚洲av无码成h人动漫无遮挡 | 亚洲综合久久精品无码色欲| 久久亚洲国产成人精品性色| 亚洲精品国产精品乱码不99| 亚洲伦乱亚洲h视频| 免费人成视网站在线观看不卡| 日韩中文字幕在线免费观看 | 亚洲码和欧洲码一码二码三码| 亚洲一级在线观看| 亚洲精品自拍视频| 亚洲激情视频网站| 亚洲午夜久久久久久尤物| 亚洲视频在线不卡| 亚洲免费视频网址| 亚洲H在线播放在线观看H| 亚洲a视频在线观看| 7777久久亚洲中文字幕| 亚洲日日做天天做日日谢| 亚洲综合久久精品无码色欲| 亚洲日韩看片无码电影| 亚洲爆乳精品无码一区二区| 精品国产亚洲AV麻豆| 日韩大片在线永久免费观看网站| 免费人成再在线观看网站| 一级毛片免费一级直接观看| 国产精品无码免费专区午夜|