Server-Side/Linux2011. 9. 24. 11:31
리눅스에서 일일빌드에 테스트를 포함시키는 경우 설정파일 경로를 인식하지 못하는 에러가 생긴다. 

/src/main/webapp/WEB-INF/conf 폴더를 /src/main/resources/conf에 위치시키면 해결할 수 있다.
Posted by 준피
Server-Side/Linux2011. 9. 23. 15:22
Download

Make user & group for MySQL
# groupadd mysql
# useradd -g mysql mysql

Install MySQL
# cd /usr/local/src
# tar xzfv mysql-5.1.59.tar.gz
# cd mysql-5.1.59.tar.gz
# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=utf8 --with-collation=utf8_general_ci --with-plugins=innobase
# make
# make install

Configuration

# cp support-files/my-small.cnf /etc/my.cnf
# chown root /etc/my.cnf 
# chgrp root /etc/my.cnf
# chmod 644 /etc/my.cnf 

# vi /etc/my.cnf
[mysqld]
user = mysql


Install DB

# /usr/local/mysql/bin/mysql_install_db --user=mysql


Run MySQL

# /usr/local/mysql/bin/mysqld_safe --user=mysql &

# mysql -u root -p 


Automatic startup

# cp support-files/mysql.server /etc/init.d/mysql
# chmod 755 /etc/init.d/mysql
# chkconfig --add mysql
# chkconfig --level 35 mysql on 



reference
 - how to install mysql


Posted by 준피
Server-Side/Linux2011. 9. 9. 22:35
1. Download Python2.7

http://www.python.org/download/releases/2.7.2/

2. Install

# cd /usr/local/src
# tar xzfv ./Python-2.7.2.tgz
# cd ./Python-2.7.2 
#  ./configure --prefix=/usr/local/Python-2.7
# make
# make install

3. Alias : 기본적으로 python2.4 or 2.6등이 깔려있기 때문에 python PATH 변경 

# python -V
Python 2.6.4
# alias python='/usr/local/Python2.7/bin/python2.7'
# python -V
Python 2.7.2


Reference

http://www.joywang.info/?p=112
Posted by 준피
Server-Side/Linux2011. 9. 8. 14:56
# iptables -L  : 방화벽 설정 확인

# iptables -A INPUT -p tcp --dport 3306 -j ACCEPT  : 3306포트 방화벽 뚫어주기

# service iptables save : 설정한 내용을 저장한다.

# /etc/init.d/iptables restart : 포트변경후 iptables 재시작


------------

서버를 재시작한 이후에도 계속 설정을 유지하는 방법중에는 iptables의 설정파일에 추가해주는 방법도 있다.

# vi /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -s your.ip.address.com/255.255.255.255 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

위에 설정을 추가해주면 해당 아이피에서 80포트로 들어오는 패킷을 허용한다.

# /etc/init.d/iptables restart







 


Posted by 준피
Server-Side/Linux2011. 8. 22. 12:47
pymongo download

install pymongo

# tar xzfv pymongo-2.0.1.tar.gz
# cd pymongo-2.0.1
# python27 setup.py install 

# cd $PYTHON2.7_PATH/lib/python2.7/site-package/
pymongo-2.0.1-py2.7-linux-x86_64.egg 파일이 있음을 확인할 수 있다.




Posted by 준피