CentOS 6.2 项目管理软件Redmine SVN 集成之LNMP平台准备(上)

Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统,据说是源于Basecamp的ror版而来,支持多种数据库,有不少自己独特的功能,例如提供wiki、新闻台等,还可以集成其他版本管理系统和BUG跟踪系统,例如SVN、CVS、TD等等。这种 Web 形式的项目管理系统通过“项目(Project)”的形式把成员、任务(问题)、文档、讨论以及各种形式的资源组织在一起,大家参与更新任务、文档等内容来推动项目的进度,同时系统利用时间线索和各种动态的报表形式来自动给成员汇报项目进度

这东西相对Mantis来说,我觉得看相还是不错的,但是由于是ruby写的,同时我又不是程序员,不好去评价一个东西的好坏,但是这东西就是有人用,开工,香港虚拟主机,我会尽量弄详细点,赫赫…..

1、编译PHP所需要的库

libiconv库为需要做转换的应用提供了一个iconv()的函数,以实现一个字符编码到另一个字符编码的转换

[root@ErpServer script]# tar zxf libiconv-1.13.1.tar.gz[root@ErpServer script]# cd libiconv-1.13.1[root@ErpServer libiconv-1.13.1]# ./configure –prefix=/usr/local [root@ErpServer libiconv-1.13.1]# make && make install

libmcrypt是加密算法扩展库。支持DES, 3DES, RIJNDAEL, Twofish, IDEA, GOST, CAST-256, ARCFOUR, SERPENT, SAFER+等算法。

[root@ErpServer script]# tar zxf libmcrypt-2.5.8.tar.gz[root@ErpServer script]# cd libmcrypt-2.5.8/ [root@ErpServer libmcrypt-2.5.8]# ./configure [root@ErpServer libmcrypt-2.5.8]# make && make install [root@ErpServer libmcrypt-2.5.8]# /sbin/ldconfig [root@ErpServer libmcrypt-2.5.8]# cd libltdl/[root@ErpServer libltdl]# ./configure –enable-ltdl-install [root@ErpServer libltdl]# make && make install

Mhash为PHP提供了多种哈希算法,如MD5,SHA1,GOST 等。你可以通过MHASH_hashname()来查看支持的算法有哪些。

[root@ErpServer script]# tar jxf mhash-0.9.9.9.tar.bz2 [root@ErpServer script]# cd mhash-0.9.9.9[root@ErpServer mhash-0.9.9.9]# ./configure [root@ErpServer mhash-0.9.9.9]# make && make install[root@ErpServer mhash-0.9.9.9]# echo “/usr/local/lib” >>/etc/ld.so.conf && /sbin/ldconfig

Mcrypt库支持20多种加密算法和8种加密模式,具体可以通过函数mcrypt_list_algorithms()和mcrypt_list_modes()来显示

[root@ErpServer script]# tar zxf mcrypt-2.6.8.tar.gz [root@ErpServer script]# cd mcrypt-2.6.8[root@ErpServer mcrypt-2.6.8]# /sbin/ldconfig [root@ErpServer mcrypt-2.6.8]# ./configure && make && make install

编译安装mysql,香港服务器,有关mysql的编译参数以及使用,请参考我前面的文章

[root@ErpServer script]# tar zxf mysql-5.1.68.tar.gz [root@ErpServer script]# cd mysql-5.1.68[root@ErpServer mysql-5.1.68]# /usr/sbin/groupadd mysql [root@ErpServer mysql-5.1.68]# /usr/sbin/useradd -g mysql mysql [root@ErpServer mysql-5.1.68]# ./configure –prefix=/software/mysql –enable-assembler –with-extra-charsets=complex –enable-thread-safe-client –with-big-tables –with-readline –with-ssl –with-embedded-server –enable-local-infile [root@ErpServer mysql-5.1.68]# make && make install [root@ErpServer mysql-5.1.68]# chown -R mysql:mysql /software/mysql/[root@ErpServer mysql-5.1.68]# chmod u+w /software/mysql/[root@ErpServer mysql-5.1.68]# mkdir -p /data/database[root@ErpServer mysql-5.1.68]# chown -R mysql:mysql /data/database/

以mysql用户帐号的身份建立数据表:

[root@ErpServer mysql-5.1.68]# /software/mysql/bin/mysql_install_db –basedir=/software/mysql/ –datadir=/data/database/ –user=mysql

创建mysql配置文件

[root@ErpServer mysql-5.1.68]# cat /software/mysql/my.cnf[client]port = 3306socket = /tmp/mysql.sock[mysql]no-auto-rehash[mysqld]user = mysqlport = 3306socket = /tmp/mysql.sockbasedir = /software/mysqldatadir = /data/databaseopen_files_limit = 600back_log = 20max_connections = 1000max_connect_errors = 200table_cache = 60external-locking = FALSEmax_allowed_packet = 16Msort_buffer_size = 128Kjoin_buffer_size = 128K thread_cache_size = 10thread_concurrency = 8query_cache_size = 2Mquery_cache_limit = 2Mquery_cache_min_res_unit = 2kdefault_table_type = MyISAMthread_stack = 192Ktransaction_isolation = READ-UNCOMMITTEDtmp_table_size = 512Kmax_heap_table_size = 32Mlong_query_time = 1log_long_formatserver-id = 1#log-bin = /data/soft/mysql/binlogbinlog_cache_size = 2Mmax_binlog_cache_size = 4Mmax_binlog_size = 512Mexpire_logs_days = 7key_buffer_size = 4Mread_buffer_size = 1Mread_rnd_buffer_size = 2Mbulk_insert_buffer_size = 2Mmyisam_sort_buffer_size = 4Mmyisam_max_sort_file_size = 10Gmyisam_max_extra_sort_file_size = 10Gmyisam_repair_threads = 1myisam_recover[mysqldump]quickmax_allowed_packet = 16M

修改mysqld脚本

[root@ErpServer mysql-5.1.68]# cp /software/mysql/share/mysql/mysql.server /etc/init.d/mysqld[root@ErpServer mysql-5.1.68]# vi /etc/init.d/mysqld basedir=/software/mysqldatadir=/data/database

启动mysql

[root@ErpServer mysql-5.1.68]# service mysqld start[root@ErpServer mysql-5.1.68]# lsof -i:3306COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEmysqld 28805 mysql 3u IPv4 879950t0 TCP *:mysql (LISTEN)[root@ErpServer mysql-5.1.68]# netstat -pant | grep 3306tcp00 0.0.0.0:33060.0.0.0:*LISTEN28805/mysqld因为你的喜爱会挡也挡不住地流露出来。

CentOS 6.2 项目管理软件Redmine SVN 集成之LNMP平台准备(上)

相关文章:

你感兴趣的文章:

标签云: