$ sudo apt install apache2 $ service apache2 status * apache2 is not running $ service apache2 start * Starting Apache httpd web server apache2 (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information.
设置防火墙
1 2
sudo ufw allow 'Apache Full' sudo ufw allow http
Java8
1 2
sudo apt update sudo apt install openjdk-8-jdk
1 2 3 4 5 6 7 8 9 10
$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java).