如何在centOS 7中启动apache

Kiy*_*ash 3 linux apache centos7

我正在使用此命令启动 Apache:service httpd startcentOS6


今天我确实下载centOS7-64bit-minimal并想在安装后启动Apache。
当我使用时service httpd start,os 会显示一条消息说:

重定向到 /bin/systemctl start httpd.service


我应该用[root@localhost#] /bin/systemctl start httpd.service吗??

我试过了[root@localhost#] systemctl start httpd.service,似乎没问题,但是在 . 中centOS6,有类似的启动状态[OK][FAILED]启动后httpd或类似的东西,但在此版本中,没有报告......
我的方式正确吗?
执行此命令后 httpd 是否正确启动:
[root@localhost#] systemctl start httpd.service

提前致谢...

Nit*_*706 5

你做得对。它将您的命令发送到 httpd 服务。您可以使用此命令查看上次发送的命令的状态:

service httpd status
Run Code Online (Sandbox Code Playgroud)