XHanch Studio Log in | Register | Cart

Forum

[How to] Start/stop...
 
Notifications
Clear all

[How to] Start/stop/restart apache/httpd via command shell/SSH

1 Posts
1 Users
0 Likes
1,711 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

Here are some commands for starting/stopping/restarting apache/httpd service via Linux command shell/SSH

On Linux CentOS:

/sbin/service httpd start
/sbin/service httpd stop
/sbin/service httpd restart

On Linux RHEL / CentOS/ Fedora:

service httpd start
service httpd stop
service httpd restart

On other Unix/Linux environment:

/etc/init.d/apache2 start
/etc/init.d/apache2 stop
/etc/init.d/apache2 restart
 
Posted : 16/03/2011 3:49 pm
Share:

× Close Menu