日常命令
# 设置开机启动
$ systemctl enable nginx.service
# 启动服务
$ systemctl start nginx.service
# 停止服务
$ systemctl stop nginx.service
# 停止服务
$ systemctl restart nginx.service
# 重新加载修改的配置文件
$ sudo systemctl daemon-reload
# 查看log
$ systemctl status nginx.service
#or
$ journalctl -u nginx.service -f