下面来布署svn服务器
所有文件下载地址: http://pan.baidu.com/share/link?shareid=395023&uk=2501966565
环境:CentOS5.8 x64 ,开发包组已安装,iptables,selinux已经关闭
一.安装配置apache
1.1 下载编译安装apache
- tar xvf httpd-2.2.22.tar.bz2
- cd httpd-2.2.22
- ./configure --prefix=/opt/apache \
- --enable-so \
- --enable-dav \
- --enable-dav-fs \
- --enable-maintainer-mode \
- --with-included-apr \
- --enable-rewrite \
- --enable-ssl \
- --enable-proxy \
- --enable-proxy-http
-
- make && make install
1.2 配置apache
添加apache 用户
- useradd -r apache
以apache身份运行httpd
- sed -i 's@User daemon@User apache@g' /opt/apache2/conf/httpd.conf
- sed -i 's@Group daemon@Group apache@g' /opt/apache2/conf/httpd.conf
1.3 为了方便将apache命令加入PATH,并将apache库导出
- echo 'export PATH=$PATH:/opt/apache2/bin' > /etc/profile.d/httpd.sh
- . /etc/profile.d/httpd.sh
-
- echo '/opt/apache2/lib' > /etc/ld.so.conf.d/apache.conf
导出
- ldconfig
- rm -rf httpd-2.2.22
二.安装MySQL
2.1安装cmake
- tar xvf cmake-2.8.4.tar.gz
- cd cmake-2.8.4
- ./configure
- make && make install
- cd ..
- rm -rf cmake-2.8.4
2.2 安装mysql
- tar xf mysql-5.5.28.tar.gz
- cd mysql-5.5.28
-
- cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql \
- -DSYSCONFDIR=/opt/mysql/etc \
- -DMYSQL_DATADIR=/opt/mysql/data \
- -DMYSQL_TCP_PORT=3306 \
- -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock \
- -DMYSQL_USER=mysql \
- -DEXTRA_CHARSETS=all \
- -DWITH_READLINE=1 \
- -DWITH_SSL=system \