Server/Linux
APM 구축
Komastar.Dev
2014. 12. 11. 12:18
반응형
APM (Apache, php, MySQL) 구축하기
환경 : Ubuntu 14.04 LTS 64bit
SSH 환경 설치
ssh를 통하여 원격 작업을 하기 위해 설치
sudo apt-get install openssh-server
Apache2 설치 Install Apache2
sudo apt-get install mysql-server
MySQL 설치 Install MySQL
sudo apt-get install mysql-server
MySQL 실행 Execute MySQL
mysql -u root -p
INPUT PASSWORD
MySQL 사용자 계정 생성 Create user account
CREATE USER 'username'@'host' IDENTIFIED BY 'userpassword';
DB 목록 보기
SHOW DATABASES;
DB 선택
USE databasename;
Table 보기
SHOW TABLE;
아파치 재시작 실패 오류 apache restart error / service apache2 restart / /etc/init.d/apache2 restart
오류 코드 : AH00558
Ubuntu 14.04 LTS 기준 apt-get으로 apache2 설치시 apache2.conf에 로컬호스트 정의가 없음
vi /etc/apache2/apache2.conf
마지막에 Servername localhost 를 추가한다
반응형