how to run http-server in linux with port number code example
Example: edit default port for linux server
# Change Apache, FTP, and SSH Default Port To A Custom port
nano /etc/apache2/ports.conf
# Change Apache, FTP, and SSH Default Port To A Custom port
nano /etc/apache2/ports.conf