sudo apt-get update
sudo apt-get install apache2
//apache 시작
sudo apt-get service apache2 start
// apache 실행되었는지 확인
sudo apt-get service apache2 status
// apache port 확인
netstat -nlpt
// apache 중지
sudo service apache2 stop
// apache 살아있는지 확인
sudo service apache2 status
sudo apt-get remove apache2*
sudo apt-get --purge remove apache2*
sudo apt-get autoremove
sudo apt-get update
dudo apt-get upgrade