centos minimal

/etc/sysconfig/network < GATEWAY=192.168.1.10

 

设置网卡

/etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO="static"

IPADDR=192.168.1.20

NETMASK=255.255.255.0

GETWAY=192.168.1.1

ONBOOT="yes"

 

/etc/resolv.conf < search localdomain; nameserver 192.168.1.10

 

设置SSH

ssh-keygen -t rsa

mv .ssh/id_rsa .ssh/authorized_keys

chmod 600 .ssh/authorized_keys

 

修改源的连接

/etc/yum.repos.d/CentOS-Base.repo < http://mirrors.163.com/.help/CentOS6-Base-163.repo

 

安装基础软件包

yum -y install gcc gcc-c++ make automake autoconf kernel-devel ncurses-devel libxml2-devel

openssl-devel curl-devel libjpeg-devel libpng-devel pcre-devel

libtool-libs freetype-devel gd zlib-devel file bison patch mlocate flex

diffutils readline-devel glibc-devel glib2-devel bzip2-devel gettext-devel

libcap-devel libmcrypt-devel libtool-ltdl-devel wget

 

安装pure-ftpd

pure-ftpd:

./configure --with-puredb

cp configuration-file/pure-ftpd.conf /etc

cp contrib/redhat.init /etc/init.d/pure-ftpd && chmod 755

cp configuration-file/pure-config.pl /usr/local/sbin/pure-config.pl && chmod 755

vi /etc/pure-ftpd.conf 开启PureDB选项启动虚拟用户

如果分配ftp作为pure-ftpd的默认用户权限,那么需要注释掉配置文件里面的MinUID 选项

pure-pw useradd test -u ftp -d /home/ftp

pure-pw mkdb

 

 

源代码编译安装php

./configure --prefix=/opt/php5 --with-bz2 --with-iconv --with-zlib --enable-mbstring --with-mcrypt --with-pgsql=/opt/pgsql --enable-sockets --with-gd --disable-posix --disable-phar --enable-mbregex --with-curl --enable-fpm --with-mysqli=/opt/mysql/bin/mysql_config --with-mysql=/opt/mysql

 

./configure --prefix=/opt/php-production --with-config-file-path=/opt/php-production --with-iconv --with-zlib --enable-mbstring --with-mcrypt --enable-mbregex --with-curl --enable-fpm --disable-posix --disable-phar --disable-tokenizer --disable-short-tags --disable-flatfile --disable-simplexml --disable-xmlwriter --disable-xmlreader

 

yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript 
yum install -y libtiff libtiff-devel freetype freetype-devel 

 

安装git 版本管理系统

yum install perl-ExtUtils-MakeMaker

git clone https://github.com/res0nat0r/gitosis.git

64位系统ln -s /usr/local/webserver/mysql/lib/mysql/libmysqlclient.so.16.0.0/usr/lib64/libmysqlclient.so.16 
32位系统ln -s /usr/local/webserver/mysql/lib/mysql/libmysqlclient.so.16.0.0/usr/lib/libmysqlclient.so.16

yum install python python-setuptools

git clone https://github.com/res0nat0r/gitosis.git

gitosis-init < /tmp/id_rsa.pub

如果git安装在了指定目录,那么需要做一个连接

ln -s /opt/git/bin/git /usr/local/bin/git

ln -s /opt/git/bin/git /usr/bin/git

 

安装搜索引擎coreseek

./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql --with-mysql-includes=/opt/mysql/include/mysql --with-mysql-libs=/opt/mysql/lib/mysql --with-pgsql --with-pgsql-includes=/opt/pgsql/include --with-pgsql-libs=/opt/pgsql/lib
 

vi /etc/ld.so.conf    ldconfig

 

安装代理软件squid

squid

 ./configure --prefix=/opt/squid --disable-carp --enable-linux-netfilter --enable-linux-tproxy --disable-wccp  --enable-kill-parent-hack --disable-snmp --disable-poll --disable-select --with-aio --disable-ident-lookup --disable-loadable-modules

猜你喜欢

转载自jiorry.iteye.com/blog/1591807