Vị trí mặc định
Gốc web: /usr/share/nginx/html
Cấu hình:
- Debian/Ubuntu:
/etc/apache2/ - CentOS/Fedora:
/etc/httpd/
Nhật ký:
- Debian/Ubuntu:
/var/log/apache2/ - CentOS/Fedora:
/var/log/httpd/
Truy cập
Mở trình duyệt của bạn: http://<server-ip>/
Lệnh kiểm soát dịch vụ
# Start Apache sudo systemctl start apache2 # Debian/Ubuntu sudo systemctl start httpd # CentOS/Fedora # Stop Apache sudo systemctl stop apache2 # Debian/Ubuntu sudo systemctl stop httpd # CentOS/Fedora # Restart Apache sudo systemctl restart apache2 # Debian/Ubuntu sudo systemctl restart httpd # CentOS/Fedora # Check status systemctl start apache2 # Debian/Ubuntu systemctl status httpd # CentOS/Fedora