From 3758b07234cb6ba8207a9dadf457d3609ae00fb8 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Thu, 14 Jul 2022 09:29:15 +0800 Subject: [PATCH] Create README.md --- scripts/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/README.md diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 00000000..d5ee2d86 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,19 @@ +# Scripts + +## install.sh + +install.sh 是我们提供的一键安装脚本,用于部署基于Ansible的应用项目 + +``` +#安装项目,初始化 +wget -N https://raw.githubusercontent.com/Websoft9/ansible-linux/master/scripts/install.sh; bash install.sh -r magento -i 1 + + +#安装项目,不初始化 +wget -N https://raw.githubusercontent.com/Websoft9/ansible-linux/master/scripts/install.sh; bash install.sh -r magento -i 0 或 +wget -N https://raw.githubusercontent.com/Websoft9/ansible-linux/master/scripts/install.sh; bash install.sh -r magento +``` +install.sh 支持两个参数: + +* -r 代表项目名称,例如:magento, lamp, lnmp, wordpress, joomla, gitlab 等 +* -i 代表是否初始化,支持 0(默认值)和1 两种参数