1 Star 0 Fork 3

18986143822/Distributed shared cloud disk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.sh 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
如三月兮 提交于 2021-06-24 20:01 . update
#!/bin/bash
if [ $# -eq 0 ];then
echo "please input the argument: "
echo " start -----> start the nginx"
echo " stop -----> stop the nginx"
echo " reload -----> reload the nginx"
exit 1
fi
case $1 in
start)
sudo /usr/local/nginx/sbin/nginx
if [ $? -eq 0 ];then
echo "nginx start success !!!"
else
echo "nginx start fail !!!"
fi
;;
stop)
sudo /usr/local/nginx/sbin/nginx -s quit
if [ $? -eq 0 ];then
echo "nginx stop success !!!"
else
echo "nginx stop fail !!!"
fi
;;
reload)
sudo /usr/local/nginx/sbin/nginx -s reload
if [ $? -eq 0 ];then
echo "nginx reload success !!!"
else
echo "nginx reload fail !!!"
fi
;;
*)
echo "do nothing ..."
;;
esac
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ycx_gitee/distributed-shared-cloud-disk.git
git@gitee.com:ycx_gitee/distributed-shared-cloud-disk.git
ycx_gitee
distributed-shared-cloud-disk
Distributed shared cloud disk
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385