This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
master 内存 9500MB 40G | |
slave-1 内存 7500MB 40G | |
slave-2 内存 7500MB 40G | |
安装包: | |
链接:https://pan.baidu.com/s/1bvgoTFSlvjHq2_TZd333dg 密码:enyl | |
## Master 主 | |
```shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```language | |
yum -y install qemu-kvm libvirt python-virtinst bridge-utils avahi dmidecode virt-* | |
chkconfig NetworkManager off | |
service NetworkManager stop | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
vi /etc/libvirt/qemu.conf | |
vnc_listen = "0.0.0.0" | |
user = "root" | |
group = "root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
迅雷下载 | |
``` | |
https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-10.7.3-ce.0.el6.x86_64.rpm/download.rpm | |
``` | |
安装 | |
``` | |
vi /etc/gitlab/gitlab.rb | |
配置 external_url "http://gitlab.example.com" | |
初始化 gitlab-ctl reconfigure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
下载svn包 | |
```shell | |
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jsvnadmin/svnadmin-3.0.5.zip | |
``` | |
安装好数据库、svnserve和tomcat;其中mysql编码要先设置成utf8; | |
再创建svnadmin数据库 | |
``` | |
CREATE DATABASE svnadmin CHARACTER SET utf8; | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
双节点安装以下三个服务: | |
keepalived 主要的作用是在主网卡上生成漂移ip,这里的VIP;另一个作用是自动恢复haproxy保证其正常运行。 | |
haproxy的作用是提供web服务并监控mycat的运行情况,映射服务端口 | |
mycat 则实现主从复制读写分离 | |
``` | |
内核 | |
cat>>/etc/sysctl.conf<<EOF | |
net.ipv4.ip_forward = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frp+云服务器实现内网向外网提供稳定服务 | |
避免使用花生壳或者ddns由内网向外网提供服务,这两者的缺点是需要向isp申请外网ip,动态ip不稳定等。 | |
## 项目地址 | |
``` | |
https://github.com/fatedier/frp/blob/master/README_zh.md | |
``` | |
配置比较简单 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
可以通过网页查看ansible-playbook包 | |
``` | |
https://galaxy.ansible.com/explore#/ | |
``` | |
**php7** | |
``` | |
ansible-galaxy search php7|grep -i centos6 | |
ansible-galaxy install melnikoved.php7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 下载安装golang | |
- 安装beego | |
把C:\Go\bin\设置为系统变量%GOPATH% | |
把%GOPATH%和%GOPATH%\bin都加到path中,命令行执行 | |
``` | |
go get -u github.com/astaxie/beego | |
go get -u github.com/beego/bee | |
``` | |
- 创建测试程序hello | |
新建个项目文件,在项目文件中新建个文件hello.go,代码为: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[在线文档一](https://docs.qq.com/doc/BqI21X2yZIht160ylF4ykVIo3tqew10YxTb51sV5ji3JWde20?opendocxfrom=admin) | |
[在线文档二](https://github.com/ameizi/ELK/issues/2) | |
``` | |
https://github.com/ameizi/ELK/issues/2 | |
``` | |
使用docker一键部署 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
本地: | |
本地服务器安装docker服务,并使用国内镜像源【略】 | |
取官方镜像并启动 | |
docker run -it golang | |
进入镜像更新apt | |
apt-get update | |
安装 mysql及部署你的代码 | |
如果异常退出使用以下命令进入 | |
docker exec -it 容器id /bin/bash |
OlderNewer