Linux
사이트 이전해볼까? 1) Ubunt 22.04 / Apache 2 설치.
ravon
2024. 7. 4. 17:22
Ubuntu22 / Mysql 5.5.30 / php 5.6.30 / Apache 2.4.25
근데 Centos 가 전체 리눅스에서 2등이란다. 그래서 1등 Ubuntu 22.04 LTS 로 이전한다.
난 리눅스 잘 모른다. 그래서 김씨성을 가진 0국 이라는 친구가 알려준대로 재설치후 진행 했다. ㅋ
- Apache2 설치.
apt install apache2 -y
- Apache2 실행상태 확인.
systemctl status apache2
- Apache2 실행을 종료/다시 실행 진행.
systemctl status apache2
systemctl stop apache2
systemctl status apache2
systemctl start apache2
systemctl status apache2
- IP 확인하고, 접근
ifconfig
(설치 안되어 있으니 apt install net-tools 설치)
- 방화벽 상태 확인.
ufw status
ufw disable
- 설치 내역 확인.
apt list --installed | grep apache2