自动部署脚本-bash
2024-09-30 17:44:38
!/bin/bash
Check if user is root
if [ $(id -u) != "0" ]; then
Echo_Red "Error: You must be root to run this script"
exit 1
fi
. common.sh
. basic_soft.sh
. config_soft.sh
paths config
current_path=pwd
config_path=$current_path/config
include_path=$current_path/include
package_path=$current_path/package
env_path=/etc/profile.d/env.sh
安装准备工作
所有的ssh-keygen命令的输入,都直接回车
Prepare_Install
安装 Nginx
Insert_Nginx
安装 PHP
Insert_PHP
安装数据库
Insert_MariaDB
安装 Redis
Insert_Redis
-------------- 以下属于 mynote 应用紧密相关,经常变动部分
cd ~/init
. app.sh
. config.sh
for file in $include_path/*.sh
do
. $file
done
Prepare_Deploy
安装 Gogs
Insert_Gogs
Deploy_Mynote
Deploy_Front
Deploy_Addi
Deploy_Fastadmin
Deploy_Phpadmin
最后再进行必要的手动操作
Deploy_End
最后安装、启动es,因为需要手动回车
Insert_ES
Echo_Blue "安装完成!enjoy uninote
最新文章
- [NOIP2014] 提高组 洛谷P1351 联合权值
- 50 道 Java 线程面试题(转载自牛客网)
- android 应用层性能优化方案
- Django的Context和RequestContext
- js实现鼠标的滑动
- CentOS服务器的16个监控命令
- HDU2795 Billboard 【线段树】+【单点更新】
- AngularJs之初
- NHibernate优点和缺点:
- 小tips:使用rem+vw实现简单的移动端适配
- 详解最大似然估计(MLE)、最大后验概率估计(MAP),以及贝叶斯公式的理解
- Windows10配置JDK环境变量
- Django中各目录文件的作用
- HAproxy增加日志记录功能和自定义日志输出内容、格式
- 系统的Drawable(一)
- ASM实例原始磁盘搜索路径
- Confluence 6 使用 LDAP 授权连接一个内部目录概述
- HDU 2106 母猪的故事
- 数据库之Oracle的介绍与使用20180620
- Codeforces Round #302 (Div. 2) C 简单dp
热门文章
- pikachu-file
- 关于maven的repositories
- GoAccess安装及分析nginx实时日志
- 基于初始种子自动选取的区域生长(python+opencv)
- Web前端经典面试试题(三)
- HDU6740 2019CCPC秦皇岛赛区 J. MUV LUV EXTRA
- grunt-contrib-uglify js压缩
- Mybaist 注解 foreach 嵌套循环实现批量插入
- 洛谷 P2473 [SCOI2008]奖励关 ( 期望DP )
- [JZOJ6244]【NOI2019模拟2019.7.1】Trominoes 【计数】