Archive for the ‘ Server ’ Category

ubuntu에 ssh 서버 설정

1. 설치

$ sudo apt-get install ssh

2. 포트 변경

$ sudo gedit /etc/ssh/sshd_config

# port 22 에서 ‘#’ 를 제거하고 원하는 포트로 변경

3. 데몬 재시작

$ sudo /etc/init.d/ssh restart

4. 서버 작동 확인

$ netstat -ntl

tcp6        0        0        :::22(포트번호)       :::*        LISTEN    →   이렇게 뜨면 정상 작동 중

[2008 nhn DeView] 차세대 인프라 관리 기술 – Green IT

ubuntu apm 설치

- apache 설치

#apt-get install apache2

- mysql 인증 모듈

#apt-get install libapache2-mod-auth-mysql

– mysql 설치

#apt-get install mysql-server mysql-client

- php 설치

#apt-get install php5-common php5 libapache2-mod-php5

- mysql과 연동하기 위한 모듈

#apt-get install php5-mysql

- 아파치 웹서버를 재시작

#/etc/init.d/apache2 restart

- mysql 작동확인

#netstat -tap | grep mysql

출처 – http://rootbox.springnote.com/pages/546909