Command not found: systemctl on Amazon Linux 2018.03

前端 未结 2 2013
攒了一身酷
攒了一身酷 2021-02-02 10:52

I am following this Amazon AWS guide to install SSL certificates. I am running Apache on AWS EC2 using the Amazon Linux AMI 2018.03. The first step in the guide is to run:

2条回答
  •  被撕碎了的回忆
    2021-02-02 11:01

    sudo service nginx status
    

    just use the service command

    In earlier versions of RHEL use the service command as explained in the documentation here.

    # service service_name start
    

    Therefore, in your case:

    # service iptables start
    

    You can replace start with restart, stop, status.

    List all services with:

    # service --status-all
    

提交回复
热议问题