Blog

Thoughts, stories and ideas.

一键部署 ETCD 集群

2 min read

这里使用三个节点,系统版本为CentOS7 vim deploy-etcd.sh ```bash #!/bin/bash set -x set -e #更改这里的IP, 只支持部署3个节点etcd集群 declare -A NODE_MAP=( ["etcd0"]="10.11.12.85" ["etcd1"]="10.11.12.86" ["etcd2"]="10.11.12.87" ) etc...

etcd
shell脚本

基于OpenLiteSpeed 安装配置 WordPress

2 min read

## 1. 安装OpenLiteSpeed ```shell wget https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh && chmod +x ols1clk.sh ./ols1clk.sh --lsphp 80 --wordpressplus www.xxxx.com --wplang zh_CN...

wordpress
LiteSpeed

gitlab从备份文件恢复

2 min read

# `gitlab-rake` 是 GitLab Omnibus 社区版中提供的一种工具,用于执行 GitLab 相关的任务。`gitlab:backup:restore` 是其中的一个任务,可以用来恢复 GitLab 数据库、仓库、配置等数据。 1. ## 备份 ``` /bin/gitlab-rake gitlab:backup:create ``` **可以通过/etc/gitlab/git...

gitlab

CentOS 7 一键安装 Python 3.10.10

2 min read

```bash #!/bin/bash PYTHON_VERSION=3.10.10 MIN_GCC_VER=8 if [[ $EUID -ne 0 ]]; then echo "This script must be run as root or with sudo." exit 1 fi # 检查GCC版本 GCC_VER=`gcc -dumpversion` if [ ${GCC_VER%%...

Python

CentOS 7 一键安装 gcc 10

2 min read

一键编译安装gcc ```bash #!/bin/bash # 一键编译安装gcc GCC_VER=10.4.0 MIN_GCC_VER=4 if [[ $EUID -ne 0 ]]; then echo "This script must be run as root or with sudo." exit 1 fi yum -y install wget gcc-c++ glibc-devel...

centos
gcc
Linux