ubuntu云服务器开启、关闭 apache

使用的是阿里云的云服务器,系统为Ubuntu。
所带的apache会占用80端口,下载完成tomcat后,将tomcat默认端口(8080)端口修改为80端口,以方便访问。
开启Apache

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

关闭Apache

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

猜你喜欢

转载自blog.csdn.net/weixin_42656358/article/details/100105474
今日推荐