Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How start apache in centOS 7

I was starting Apache using this command : service httpd start in centOS6


Today I did download centOS7-64bit-minimal and wanted to start Apache after installing this.
When I use service httpd start, os will show me a message says:

Redirecting to /bin/systemctl start httpd.service


Should I use [root@localhost#] /bin/systemctl start httpd.service??

I tried [root@localhost#] systemctl start httpd.service and it seems it's OK, but in the centOS6, there was starting status with something like [OK] or [FAILED] after starting httpd or something like that, but in this version, there is no report...
Am I in right way?
Is httpd started correctly after this command :
[root@localhost#] systemctl start httpd.service ?

Thanks in advance...

like image 573
Kiyarash Avatar asked Feb 26 '26 15:02

Kiyarash


1 Answers

you are doing it right. It sends your command to httpd service. You can use this command to see status of last command sent:

service httpd status
like image 157
Nitin1706 Avatar answered Mar 01 '26 08:03

Nitin1706



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!