From b46feaee450421f2dff2c6f086451b0b17dec039 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Mon, 31 Oct 2022 14:30:29 +0800 Subject: [PATCH] 07env-install-centos.sh --- 00base/07env-install-centos.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index 23f0491..cedac07 100644 --- a/00base/07env-install-centos.sh +++ b/00base/07env-install-centos.sh @@ -334,10 +334,14 @@ function init:nginx() { command::exec "${host}" " yum -y install nginx nginx -v - # sudo systemctl enable nginx " check::exit_code "$?" "nginx" "$host 安装nginx" "exit" log::info "[nginx]" "nginx安装成功!" + log::info "[nginx]" "配置文件路径: /etc/nginx" + log::info "[nginx]" "设置开机启动: sudo systemctl enable nginx" + log::info "[nginx]" "启动/停止/重启: sudo service nginx start/stop/restart" + log::info "[nginx]" "检查nginx配置: sudo nginx -t" + log::info "[nginx]" "加载nginx配置: sudo nginx -s reload" } # 安装nodejs环境