摘要:
参考:https://www.jianshu.com/p/d7434d916856 etcd服务搭建请看上一篇,下面直接上代码: # go get github.com/etcd-io/etcd main.go 内容如下: 程序输出如下: 阅读全文
摘要:
一台Centos7的服务器,我的IP:172.16.4.67 登陆到服务器,切换到root用户 #cd /tmp 下载安装包,下载地址:https://github.com/etcd-io/etcd/releases # wget https://github.com/etcd-io/etcd/re 阅读全文
摘要:
1. 登陆目标主机:$ssh user@ip 2.切到root权限 sudo -i 或直接用root 用户 3.创建用户组,便于后续管理: groupadd sftp 4.添加用户: # useradd -g sftp -s /sbin/nologin -M sftpuser ( -g 加入到sft 阅读全文
摘要:
1.后端两台服务器通过HAProxy代理做高可用,但是访问时出现登陆后session就过期。 -- 这是因为HAProxy未配置session粘连,导致登陆和操作可能落在不同的服务器上。 2.vsftp 不支持 ln 软连接,如何把一个用户的目录给另一个用户访问? -- 使用mount --bind 阅读全文
摘要:
1.安装FTP服务:#yum install -y vsftpd 2.启动服务:systemctl start vsftpd.service 3.设置服务开机启动:systemctl enable vsftpd.service 4.修改配置文件中以下配置项: #vim /etc/vsftpd/vsf 阅读全文
摘要:
登陆Linux服务器: 部署prometheus-server #mkdir /app #cd /app #wget https://github.com/prometheus/prometheus/releases/download/v2.8.0/prometheus-2.8.0.linux-am 阅读全文
摘要:
查看镜像:# docker images <name> 查看系统上当前运行的docker容器: # docker ps 创建镜像:# mkdir centos7-httpd # vim Dockerfile FROM centos:centos7 MAINTAINER don <don@chmyee 阅读全文
摘要:
创建本地分支 git branch dev 或 git checkout -b dev (创建并切换到dev分支) 查看分支 查看所有远程分支:git branch -r 查看本地分支: git branch 查看远程和本地所有分支: git branch -a 切换分支 git checkout 阅读全文
摘要:
package mainimport ( "bytes" "encoding/xml" "fmt" "io/ioutil" "strings")func main() { header := `<?xml version='1.1' encoding='UTF-8'?>` var t xml.Tok 阅读全文
摘要:
01b709f1d66a41e2a2b039182c7d4199 启动Jenkins:sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist 停止Jenkins:sudo launchctl unload /Library/La 阅读全文