websoft9/scripts/README.md
2022-07-14 09:33:55 +08:00

29 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 两种参数
## reset_mysql_password.sh
1. 该脚本目前只适用于CentOS7以上的系统和MySQL5.6版本;
2. 该脚本基于 https://github.com/EwigeveMicca/Mysql_ResetPasswd_Script 进行修改;
3. 使用方法:远程连接到服务器,运行一下命令,按提示输入新密码即可。
```
sudo git clone https://github.com/Websoft9/linuxscript.git; cd linuxscript/Mysql_ResetPasswd_Script;sudo sh reset_mysql_password.sh
```