fabric appears to start apache2 but doesn't

后端 未结 6 636
不思量自难忘°
不思量自难忘° 2020-12-29 04:27

I\'m using fabric to remotely start a micro aws server, install git and a git repository, adjust apache config and then restart the server.

If at any point, from the

6条回答
  •  长情又很酷
    2020-12-29 05:06

    When connecting to your remotes on behalf of a user granted enough privileges (such as root), you can manage system services as shown below:

    from fabtools import service
    
    service.restart('apache2')
    

    https://fabtools.readthedocs.org/en/0.13.0/api/service.html

    P.S. Its requires the installation of fabtools

    pip install fabtools

提交回复
热议问题