websoft9/scripts
2023-04-17 15:14:27 +08:00
..
auto_addport.sh Update auto_addport.sh 2022-12-08 13:48:36 +08:00
containers_version.sh Update containers_version.sh 2023-04-09 09:47:32 +08:00
docker-installer.sh Update docker-installer.sh 2022-03-24 13:23:31 +08:00
enable_ssh_root.sh Create enable_ssh_root.sh 2022-07-14 09:28:33 +08:00
get_ip.sh Create get_ip.sh 2022-07-14 09:25:01 +08:00
git_proxy.sh Update git_proxy.sh 2022-12-30 11:25:22 +08:00
githubclone.sh Update githubclone.sh 2023-04-17 14:21:53 +08:00
install.sh Update install.sh 2023-04-17 15:14:27 +08:00
pipinstall.sh Create pipinstall.sh 2023-02-11 10:01:13 +08:00
preinstall.sh Update preinstall.sh 2023-04-05 15:28:15 +08:00
README.md Update README.md 2023-04-17 14:43:43 +08:00
reset_mysql57_password.sh Create reset_mysql57_password.sh 2022-07-14 09:33:16 +08:00
reset_mysql_password.sh Create reset_mysql_password.sh 2022-07-14 09:32:53 +08:00

Scripts

install.sh

install.sh 安装 Stackhub 的自动化脚本,支持两个参数:

  • -r 代表项目名称例如magento, lamp, lnmp, wordpress, joomla, gitlab 等
  • -i 代表是否用于镜像生产,支持 0默认值不用于镜像生产和 1 两种参数

主要有两种使用场景:

1 制作镜像

# 该场景下,脚本会删除服务器上的密钥对或运行云平台的某些恢复服务器出厂设置命令。

# 安装应用
wget -N https://websoft9.github.io/StackHub/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


2. 安装应用立即使用

# 此场景下,安装完成后,系统会强制重启

# 安装应用
wget -N https://websoft9.github.io/StackHub/scripts/install.sh; bash install.sh -r magento -i 0

# 中断后命令
cd /tmp/stackhub/apps && ansible-playbook -i hosts application.yml -c local -e init=0 -e appname=magento

reset_mysql_password.sh

该脚本 fork from Mysql_ResetPasswd_Script目前只适用于CentOS7 以上的系统和 MySQL5.6 版本;

用法:

sudo git clone https://github.com/Websoft9/linuxscript.git; cd linuxscript/Mysql_ResetPasswd_Script;sudo sh reset_mysql_password.sh