Page 1 of 1

Service httpd stop command

Posted: Sat Jan 16, 2016 4:09 pm
by mrex778
Hi, I'm trying to stop httpd service with service httpd stop command but I say like this:

Code: Select all

[root@server ~]# service httpd stop
Redirecting to /bin/systemctl stop  httpd.service
Now what should I do??
And I'm using centos7

Re: Service httpd stop command

Posted: Sun Jan 17, 2016 12:06 am
by BBuchanan1013
mrex778 wrote:Hi, I'm trying to stop httpd service with service httpd stop command but I say like this:

Code: Select all

[root@server ~]# service httpd stop
Redirecting to /bin/systemctl stop  httpd.service
Now what should I do??
And I'm using centos7
That's actually correct. You can use service httpd stop and CentOS 7 will redirect to the right command. So, it's still working as you need it to.

service httpd stop <-CentOS 6 and older way of stopping things
systemctl stop httpd <-CentOS 7 and newer way of stopping things
However:
service httpd stop in CentOS 7 still works