Open and close apache on ubuntu cloud server

The cloud server of Alibaba Cloud is used, and the system is Ubuntu.
The included apache will occupy port 80. After downloading tomcat, change the default port (8080) of tomcat to port 80 to facilitate access.
Start Apache

sudo /etc/init.d/apache2 start
* Starting web server apache2                                           [ OK ] 

Shut down Apache

sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                              
 ... waiting                                                             [ OK ]

Guess you like

Origin blog.csdn.net/weixin_42656358/article/details/100105474