git命令常用操作

发表于 LINUX 分类,标签:
gitbranch-agitbranch-rgitbranch-l新建本地dev分支gitbranchdev切换到本地dev分支gitswitchdev新建本地dev分支、切换到本地dev分支,并建立本地dev分支和远程origin/dev的追踪关系gitcheckout-bdevorigin/dev#拉取代码gitpull...

Centos7 yum安装openresty

发表于 LINUX 分类,标签:
1.添加官方源仓库yuminstall-yyum-utilsyum-config-manager--add-repohttps://openresty.org/package/centos/openresty.repo2.安装openrestyyuminstall-yopenresty...

gitlab-runner安装

发表于 LINUX 分类,标签:
curl-L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh |bashyumlistgitlab-runner--showduplicates|sort-ryum-yinstallgitlab-runnergitlab-runnerregistersystemctlstatusgitlab-runnersystemctlstartgitlab-runnersystemctlenablegitlab-runnercat/etc/gitlab-runner/config.tomlgitlab-ci-multi-runnerregister1.如果要在同一台机器上注册多个runner,只需要反复执行该步骤。2....

alpine镜像初始化换阿里云源添加bash修改时区

发表于 LINUX 分类,标签:
使用阿里镜像sed-i's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g'/etc/apk/repositories科大镜像sed-i's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g'/etc/apk/repositoriesalpine  DockerfileFROM alpine:3.11.3RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \    && apk u...

k8s证书过期节点notReady

发表于 LINUX 分类,标签:
重启节点所有kube服务master操作kubectlgetcsrkubectlcertificateapprovenode-csr-9RIMtTJgxQy2fi6jbHWWTTcBuQxrKNZQyFblrTRHLy4...

centos7 宿主机部署rabbitmq(非docker运行)

发表于 LINUX 分类,标签:
rpm -ivh erlang-20.3.8.22-1.el7.x86_64.rpmyum -y install socatrpm -ivh rabbitmq-server-3.7.15-1.el7.noarch.rpmmkdir -p /data/rabbitmq/datamkdir -p /data/rabbitmq/logchown -R rabbitmq:rabbitmq /data/rabbitmq/datachown -R rabbitmq:rabbitmq /data/rabbitmq/logtee /etc/rabbitmq/rabbitmq.config <<...

debian10切换清华源

发表于 LINUX 分类,标签:
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.listecho "# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >> /etc/apt/sources.listecho "deb https://mirrors.tuna.tsinghua.edu....

sentry安装

发表于 LINUX 分类,标签:
初始化服务器安装dockergitclone https://github.com/getsentry/onpremise.gitcd onpremise/sentrycp config.example.yml config.ymlcp sentry.conf.example.py sentry.conf.pyvimconfig.ymlmail.host:'smtp.mxhichina.com'#mail.port:465mail.port:587mail.username:'online-gworld-sentry@linuxnb.com'mail.password:'npTASpqG5UzPtrug'mail.use-tls:true#Theemaila...