# 언어 설정
sudo apt-get install language-pack-ko
sudo locale-gen ko_KR.UTF-8
sudo vi /etc/profile
LANG="ko_KR.EUC-KR"
LANG="ko_KR.UTF-8"
sudo vi /etc/environment
LANG="ko_KR.EUC-KR"
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_GB:en"
sudo vi /etc/default/locale
LANG=ko_KR.EUC-KR
# nginx 설치
sudo apt-get install nginx
# php5 설치
# 의존성으로 php5 설치 됨
sudo apt-get install php5-fpm
# nginx, php5 유닉스 소켓으로 연결
sudo vi /etc/php5/fpm/pool.d/www.conf
; listen = 127.0.0.1:9000
listen = /var/run/php5-fpm.sock
sudo vi /etc/nginx/sites-enabled/default
location ~ \.php$ {
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
sudo service php5-fpm restart
sudo service nginx restart
# oracle jdk 설치 및 tomcat 설치
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer
sudo apt-get install tomcat7
sudo vi /etc/default/tomcat7
JAVA_HOME=/usr/lib/jvm/java-7-oracle
sudo vi /etc/nginx/sites-enabled/default
location ~ \.jsp$ {
proxy_pass http://localhost:8080;
}
sudo service tomcat7 start
sudo service nginx restart
# postgresql 설치
sudo apt-get install postgresql postgresql-contrib
# postgresql databse 기본 언어 설정 (ko_KR.utf8)
sudo -u postgres psql
psql (9.0.3)
Type "help" for help.
update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 'UTF-8' LC_CTYPE = ko_KR.utf8' LC_COLLATE = 'ko_KR.utf8'
update pg_database set datistemplate = TRUE where datname = 'template1';
\c template1
template1=# update pg_database set datallowconn = FALSE where datname = 'template0';
# postgresql 리모트 접근 허용 (9.1 기준)
sudo vi /etc/postgresql/9.1/main/postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
# 개발툴 설치
# gcc, g++ 등
sudo apt-get install build-essential
sudo apt-get install libboost-all-dev
# mono
sudo apt-get install mono-complete
'Dev > Linux' 카테고리의 다른 글
Gitlab Backup & Restore 방법 (0) | 2017.01.10 |
---|