Update README.md
This commit is contained in:
parent
932663bf5c
commit
085da19506
1 changed files with 7 additions and 5 deletions
|
@ -7,26 +7,28 @@
|
||||||
install.sh 安装 Stackhub 的自动化脚本,支持两个参数:
|
install.sh 安装 Stackhub 的自动化脚本,支持两个参数:
|
||||||
|
|
||||||
* -r 代表项目名称,例如:magento, lamp, lnmp, wordpress, joomla, gitlab 等
|
* -r 代表项目名称,例如:magento, lamp, lnmp, wordpress, joomla, gitlab 等
|
||||||
* -i 代表是否用于,支持 0(默认值,即重启)和 1 两种参数
|
* -i 代表是否用于镜像生产,支持 0(默认值,不用于镜像生产)和 1 两种参数
|
||||||
|
|
||||||
主要有两种使用场景
|
主要有两种使用场景
|
||||||
|
|
||||||
### 制作镜像
|
### 制作镜像
|
||||||
|
|
||||||
适用于
|
制作镜像的场景下,脚本会删除服务器上的密钥对或运行云平台的某些恢复服务器出厂设置命令。
|
||||||
|
|
||||||
```
|
```
|
||||||
# 安装项目
|
# 安装应用
|
||||||
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh; bash install.sh -r magento -i 1
|
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh; bash install.sh -r magento -i 1
|
||||||
|
|
||||||
# 中断后命令
|
# 中断后命令
|
||||||
cd /tmp/stackhub/apps && ansible-playbook -i hosts application.yml -c local -e init=1 -e appname=magento
|
cd /tmp/stackhub/apps && ansible-playbook -i hosts application.yml -c local -e init=1 -e appname=magento
|
||||||
```
|
```
|
||||||
|
|
||||||
### 场景2
|
### 安装应用立即使用
|
||||||
|
|
||||||
|
此场景下,安装完成后,系统会强制重启
|
||||||
|
|
||||||
```
|
```
|
||||||
# 安装项目
|
# 安装应用
|
||||||
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh; bash install.sh -r magento -i 0
|
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh; bash install.sh -r magento -i 0
|
||||||
|
|
||||||
# 中断后命令
|
# 中断后命令
|
||||||
|
|
Loading…
Add table
Reference in a new issue