apr-1.4.2.tar.bz2
httpd-2.2.17.tar.bz2
expat-2.0.1.tar.gz
sqlite-amalgamation-3.6.16.tar.gz
subversion-1.6.16.tar.bz2
apr-util-1.3.10.tar.bz2
php5.3.6.tar.bz2
mysql-5.1.56.tar.bz2
atlassian-jira-subversion-plugin-0.10.5.4_01-distribution.zip
jdk-6u25-linux-i586.bin
atlassian-jira-enterprise-4.1.1-standalone.tar.gz
apache-tomcat-6.0.32.tar.gz
mysql-connector-java-5.1.12.tar.gz
关闭selinux
groupadd -g 1001 apache
useradd -g 1001 -u 1001 -d /dev/null -s /sbin/nologin apache
yum -y install openssl-devel gd-devel zlib-devel libxml2-devel
cd /home/tools
tar xvjf apr-1.4.2.tar.bz2
cd apr-1.4.2
./configure --prefix=/usr/local/apr
make
make install
cd /home/tools
tar xvjf apr-util-1.3.10.tar.bz2
cd apr-util-1.3.10
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr-util
make
make install
cd /home/tools
tar xvjf httpd-2.2.17.tar.bz2
cd httpd-2.2.17
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-dav --enabled-so
make
make install
cd /home/tools
tar xvzf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure
make
make install
echo '/usr/local/lib' >> /etc/ld.so.conf
ldconfig -v
把/usr/local/lib目录加进动态库,否则下面会报错
cd /home/tools
tar xvjf subversion-1.6.16.tar.bz2
mkdir -p /home/tools/subversion-1.6.16/sqlite-amalgamation
cd /home/tools
tar xvzf sqlite-amalgamation-3.6.16.tar.gz
cd sqlite-3.6.16
cp sqlite3.c /home/tools/subversion-1.6.16/sqlite-amalgamation
cd /home/tools/subversion-1.6.16
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-apxs=/usr/local/apache/bin/apxs
make
make install
sed -i 's/User daemon/User apache/' /usr/local/apache/conf/httpd.conf
sed -i 's/Group daemon/Group apache/' /usr/local/apache/conf/httpd.conf
echo '' >> /usr/local/apache/conf/httpd.conf
echo 'DAV svn' >> /usr/local/apache/conf/httpd.conf
echo 'SVNParentPath /app/svnroot/' >> /usr/local/apache/conf/httpd.conf
echo 'AuthzSVNAccessFile /app/svnroot/authz.conf' >> /usr/local/apache/conf/httpd.conf
echo 'AuthType Basic' >> /usr/local/apache/conf/httpd.conf
echo 'AuthName "centos"' >> /usr/local/apache/conf/httpd.conf
echo 'AuthUserFile /app/svnroot/authfile' >> /usr/local/apache/conf/httpd.conf
echo 'Require valid-user' >> /usr/local/apache/conf/httpd.conf
echo '' >> /usr/local/apache/conf/httpd.conf
mkdir -p /app/svnroot/
chown -R apache:apache /app/svnroot/
/usr/local/subversion/bin/svnadmin create /app/svnroot/centos/
echo '[groups]' >> /app/svnroot/authz.conf
echo 'admin = apache' >> /app/svnroot/authz.conf
echo '[centos:/]' >> /app/svnroot/authz.conf
echo '@admin = rw' >> /app/svnroot/authz.conf
/usr/local/apache/bin/htpasswd -c /app/svnroot/authfile apache
输入两次密码
/usr/local/apache/bin/apachectl start
svn网址
cd /home/tools
tar xvjf mysql-5.1.56.tar.bz2
cd mysql-5.1.56
./configure --prefix=/usr/local/mysql --with-plugins=myisam,innobase --with-low-memory --with-server-suffix --with-charset=utf8 --with-big-tables --with-extra-
charsets=all
make
make install
groupadd -g 1002 mysql
useradd -g 1002 -u 1002 -d /dev/null -s /sbin/nologin mysql
cd /usr/local/mysql/
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var/
cp /home/tools/mysql-5.1.56/support-files/my-medium.cnf /etc/my.cnf
cp /home/tools/mysql-5.1.56/support-files/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chmod 700 /etc/init.d/mysqld
bin/mysqld_safe --user=mysql &
cd /home/tools
tar xjvf php5.3.6.tar.bz2
cd php-5.3.6
./configure --prefix=/usr/local/php --with-gd --with-apxs2=/usr/local/apache/bin/apxs --with-gnu-ld --enable-zip --with-mysql=/usr/local/mysql/ --with-
mysqli=/usr/local/mysql/bin/mysql_config --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir
make
make install
cp php.ini-production /usr/local/php/lib/php.ini
vi /usr/local/apache/conf/httpd.conf
添加 AddType application/x-httpd-php .php .phps
cd /home/tools
gzip -d VersionControl_SVN-0.3.4.gz
/usr/local/php/bin/pear install VersionControl_SVN-0.3.4
cd /home/tools
tar xzvf svnmanager-1.08.tar.gz
cp -a svnmanager-1.08 /usr/local/apache/htdocs/svnmanager
cd /usr/local/apache/htdocs/svnmanager/
cp config.php.linux config.php
vi config.php
$htpassword_cmd = "/usr/local/apache/bin/htpasswd"
$svn_cmd = "/usr/local/subversion/bin/svn";
$svnadmin_cmd = "/usr/local/subversion/bin/svnadmin";
$svn_config_dir = "/app/svnroot";
$svn_repos_loc = "/app/svnroot";
$svn_passwd_file = "/app/svnroot/authfile";
$svn_access_file = "/app/svnroot/authz.conf";
$dsn = "mysql://root@localhost/svn";
/usr/local/mysql/bin/mysql
mysql> create database svn;
mysql> exit
/usr/local/apache/bin/apachectl start
cd /home/tools
chmod a+x jdk-6u25-linux-i586.bin
./jdk-6u25-linux-i586.bin
mv jdk1.6.0_25/ /usr/local/java
vi /etc/profile
JAVA_HOME=/usr/local/java
CLASSPATH=:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
cd /home/tools
tar xvzf apache-tomcat-6.0.32.tar.gz
mv apache-tomcat-6.0.32 /usr/local/tomcat-6.0.32
cd /home/tools
tar xvzf atlassian-jira-enterprise-4.1.1-standalone.tar.gz
mv atlassian-jira-enterprise-4.1.1-standalone /usr/local/jira
/usr/local/mysql/bin/mysql
mysql> create database jiradb;
mysql> grant all privileges on jiradb.* to jira_user@locahost identified by '123456';
mysql> exit
cd /home/tools
tar xvzf mysql-connector-java-5.1.12.tar.gz
cp mysql-connector-java-5.1.12/mysql-connector-java-5.1.12.jar /usr/local/jira/common/lib/
mkdir -p /app/jira/home
vi /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
jira.home = /app/jira/home
cd /usr/local/jira/conf
vi server.xml
username="root"
password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicodetrue&characterEncoding=UTF8"
/>
vi /usr/local/jira/atlassian-jira/WEB-INF/classes/entityengine.xml
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
use-foreign-key-indices="false"
check-fks-on-start="false"
check-fk-indices-on-start="false"
add-missing-on-start="true"
check-indices-on-start="true">
vi /etc/profile
CATALINA_BASE=/usr/local/jira
CATALINA_HOME=/usr/local/jira
export PATH
export JAVA_HOME
export CATALINA_BASE
export CATALINA_HOME
cd /home/tools
cp language_zh_CN.jar /usr/local/jira/atlassian-jira/WEB-INF/lib
cp jira_crack.jar /app/jira/home/data/plugins/installed-plugins
cd /home/tools
unzip atlassian-jira-subversion-plugin-0.10.5.4_01-distribution.zip
cp /home/tools/atlassian-jira-subversion-plugin-0.10.5.4_01-distribution/lib/*.jar /usr/local/jira/atlassian-jira/WEB-INF/lib
cp /home/tools/atlassian-jira-subversion-plugin-0.10.5.4_01-distribution/subversion-jira-plugin.properties /usr/local/jira/atlassian-jira/WEB-INF/classes
vi /usr/local/jira/atlassian-jira/WEB-INF/classes/subversion-jira-plugin.properties
阅读(1426) | 评论(0) | 转发(0) |