Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux apache start

sudo service apache2 start
sudo service apache2 restart
sudo service apache2 stop

OR 

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop
Comment

start apache server in ubuntu

# Start Apache 2 server on Linux/Unix
sudo apt install apache2

# allow uncomplicated firewall
sudo ufw allow 'Apache'

# start the server
sudo service apache2 start

# /var/www/html/index.html is now live on =>
http://localhost/ 

# Stop Apache 2 server on Linux/Unix
sudo service apache2 stop

#remove apache2 packages
$ sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common

# cleanup
$ sudo apt-get autoremove
Comment

start apache service

systemctl status apache2
Comment

PREVIOUS NEXT
Code Example
Shell :: ffmpeg convert mov to mp4 
Shell :: grep return n characters before or after match 
Shell :: git set name and email 
Shell :: git origin 
Shell :: m1 install gradle 
Shell :: how to sign into github from terminal 
Shell :: mac find large folders 
Shell :: install exiftool ubuntu 
Shell :: blackeye github 
Shell :: factorial of a number bash 
Shell :: git reset to remote 
Shell :: how to check if port is open mac 
Shell :: restart lampp 
Shell :: increment number bash 
Shell :: ubuntu check php status 
Shell :: git diff lines of code 
Shell :: do you need to install type definitions for node 
Shell :: self-documenting makefile 
Shell :: git reset keep changes 
Shell :: see all apps linux 
Shell :: bash install kubectl 
Shell :: brew node update 
Shell :: git remove remote tracking branch 
Shell :: set up git repository 
Shell :: remotelog muirey03 github 
Shell :: certbot add new domain 
Shell :: metasploit install kali linux 
Shell :: force install npm 
Shell :: git remove upstream branch 
Shell :: unable to create process using 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =