sudo vim /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 81 <== 이 부분을 원하는 포트로 변경 합니다
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
이후 아파치 제 실행 아래 –
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
또는 리스타트~ 해줍니다.
sudo /etc/init.d/apache2 restart