mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
Update README.md
This commit is contained in:
parent
61716b1ce9
commit
f916250976
1 changed files with 12 additions and 4 deletions
|
@ -2,22 +2,30 @@
|
|||
|
||||
## install.sh
|
||||
|
||||
install.sh 是我们提供的一键安装脚本,用于部署基于Ansible的应用项目
|
||||
install.sh 是我们提供的一键安装脚本,用于部署基于Docker的应用项目
|
||||
|
||||
```
|
||||
#安装项目,初始化
|
||||
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/StackHub/main/scripts/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
|
||||
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh -r magento -i 0 或
|
||||
wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/scripts/install.sh; bash install.sh -r magento
|
||||
```
|
||||
install.sh 支持两个参数:
|
||||
|
||||
* -r 代表项目名称,例如:magento, lamp, lnmp, wordpress, joomla, gitlab 等
|
||||
* -i 代表是否初始化,支持 0(默认值)和1 两种参数
|
||||
|
||||
### 一键安装中途中断怎么办?
|
||||
|
||||
执行如下命令:
|
||||
```
|
||||
cd /tmp/stackhub/apps
|
||||
ansible-playbook -i hosts application.yml -c local -e init=【一键安装脚本的-i 参数】 -e appname=【一键安装脚本的-r 参数】
|
||||
```
|
||||
|
||||
## reset_mysql_password.sh
|
||||
|
||||
1. 该脚本目前只适用于CentOS7以上的系统和MySQL5.6版本;
|
||||
|
|
Loading…
Reference in a new issue