运维工具
系统备份和恢复
Clonezilla
install clonezilla network boot system
clonezilla push setting
clonezilla pxelinux.cfg default config
clonezilla pxe boot password
kickstart
kickstart centos5.6-i386 config
kickstart auto install
kickstart example
Cobbler
cobbler backups-restore
aomei 傲梅
傲梅集中备份
傲梅备份 分类
系统监控工具
collectd
collectd 收集系统性能
NMON monitor
Nmon monitor system
njmon script initd code
nmon 2 data to influx db
Zabbix
zabbix 3.2 install on centos 6
zabbix firewall
zabbix support windows
Supervisor
supervisor shell script
supervisor config example
boot supervisrd with systemd on centos7
webhook and github to do file sync with supervisor
日志管理系统
Grafana
grafana install on centos 6
grafana install plugin
grafana influx version
Filebeat
filebeat yum install
Kibana
kibana yum install
Logstash
logstash install on centos
Elasticsearch
yum install elasticsearch 6.8
elasticsearch install on Centos 6.7
ELK init env config
Elasticsearch 错误集锦
Rsyslog
centos 6 rsyslog 日志实时同步
Rsyslog mysql log to master analyzer
Deploy
Jumpserver
jumpserver 0.3.2 install on centos 6
jumpserver 0.3.2 docker install on centos 7
jumpserver 0.5 install on centos 7
Opsmanage
opsmanage install centos7
Jenkins
jenkins install on centos 6
install plugin in jenkins…
jenkins set time execution
tomcat jenkins ansible
jenkins ansible ad-hoc command
jenkins ansible playbook project
jenkins publish over_ssh
Paramike
PSSH
Centos7部署工具pssh
Ansible
how to install ansible with yum
bit rpm install ansible
source to install ansible
ansible init system centos 6
ansible using method
ansible install httpd servers
copy code with ansible-playbook
ansible ping host actived
ansible add username
ansible config parameter
ansible config write format
ansible api study
ansible hosts config ssh
ansible get nmon data
ansible setup filter information
yum repo with ansible-playbook
ansible gitlab ci runner
ansible get data list
ansible get text content
ansible get linux release debug infor
ansible support windows pywinrm
Saltshaker
saltshaker use docker
how to install saltstack
saltshaker manual install
salt install and config
salt init system
deploy saltshaker on centos7
salt file config desc
salt cmdb
saltshaker dj mq mysql build
salt data to mysql
Rsync
rsync + inotify 数据实时同步
代码仓库
Gitlab
yum install gitlab
gitlab-ce and runner
gitlib api example
gitlab config
gitlab ce and ee
Gogs
Gitea
虚拟化系统
Vmware
centos 6 install vmware 14
Vagrant
从零开始创建基础 Box
打包我的 BOX
Vagrantfile Config
Vagrant简易教程
给 Vagrant 从 VirtualBox换用 VMware 或 虚拟机
优化 vagrantFile config
Vagrant 主机定义
vagrant SSH
Vagrant 搭建 说明
WSL
pycharm 安装支持 WSL
windows-WSL 安装
Docker
how to install docker on centos 6
docker config source daoclound
how to use docker by step
how to creat docker subnet
gogs deploy on docker
jenkins use docker to deploy
mysql use docker to deploy
docker-example-1
docker-example-2
mac-osx-toolbox-install-docker
Data DB
Influx DB
InfluxDB install on centos
Mysql DB
centos 6 install mysql 5.5
mysql 5.7 install centos 6
install percona mysql 5.6 with yum
centos 7 install mysql config
mysql data rsync from master/slave
About me
本文档使用 MrDoc 发布
-
+
首页
saltshaker manual install
# saltshaker manual install --- ## requirements tools - python 3.6.6 - mysql 5.7 - salt api master minion - rabbitmq-server - redis - nginx - supervisord - node - npm - vue ## yum makecache # rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm # rpm -ivh https://repo.saltstack.com/yum/redhat/salt-repo-latest.el6.noarch.rpm # yum install screen ftp vim wget git cmake gcc gcc-c++ htop lrzsz -y # yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y # yum install curl curl-devel expat-devel gettext-devel perl-ExtUtils-MakeMaker nss libcurl -y # yum groupinstall "Development tools" -y # yum update -y --- ## FROM python:3.6.6 ### python download # wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz # wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz # tar -xvf Python-3.6.6.tgz # cd Python-3.6.6 # ./configure prefix=/usr/local/python36/ # make -j 4 && make install ### link python 3.6 # ln -s /usr/local/python36/bin/python3.6 python # ln -s /usr/local/python36/bin/pip3 pip ### check python # python -V # pip -V ```python Python 3.6.6 pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6) ``` --- ## mysql 5.7.21 ### MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) # wget http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm # yum install mysql-community-server mysql-community-client # /etc/init.d/mysqld start # grep 'temporary password' /var/log/mysqld.log # mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'tester'; # create database saltshaker_plus; # mysql> source /home/tester/saltshaker_api/saltshaker_plus.sql; # mysql> use saltshaker_plus; # mysql> show tables; # grant all privileges on *.* to 'root'@'10.%.%.%' identified by 'tester'; # flush privileges; ### mysql working # netstat -taunlp |grep 3306 ```bash tcp 0 0 :::3306 :::* LISTEN 17777/mysqld ``` ### mysql password validate # vim /etc/my.cnf ```mysql validate_password=off ``` ```mysql mysql> set password = password('tester'); ``` --- ## salt install ### yum install # yum install salt-master salt-minion salt-api salt-ssh salt-syndic -y # yum install salt-master -y # yum install salt-minion -y # yum install salt-api -y # yum install salt-ssh -y # yum install salt-syndic -y ### cherry tool # pip install cherrypy==3.8.0 # useradd -M -s /sbin/nologin admin ```bash pwd: admin ``` ### copy saltapi.conf to salt api # cp saltapi.conf /etc/salt/master.d/saltapi.conf --- ## rabbitmq # yum install rabbitmq-server -y # chkconfig rabbitmq-server on # /etc/init.d/rabbitmq-server start ### plugins: # /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management # /etc/init.d/rabbitmq-server start ### rabbit working # netstat -taunlp |grep 15672 ```bash tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 18323/beam ``` ### update user permission # rabbitmqctl add_user saltshaker saltshaker # rabbitmqctl set_user_tags saltshaker administrator # /etc/init.d/rabbitmq-server restart # rabbitmqctl set_permissions -p / saltshaker ".*" ".*" ".*" # rabbitmqctl status --- ## redis # yum install redis ### setting password # vim /etc/redis.conf ```redis daemonize yes logfile "/var/log/redis.log" requirepass saltshaker ``` # chkconfig redis on # /etc/init.d/redis start ### redis working # netstat -taunlp |grep 6379 ```bash tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 18002/redis-server ``` ### redis client # redis-cli -h 127.0.0.1 -p 6379 -a saltshaker --- ## git clone saltshaker ### download salt # git clone https://github.com/yueyongyue/saltshaker_api.git ### install python app # pip install -r requirements.txt # export FLASK_APP=$Home/saltshaker_api/app.py ### install python devel # pip install --upgrade pip # pip install mysql-python --- ## web front ### node and npm # npm install -g cnpm --registry=https://registry.npm.taobao.org # wget https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz # tar -xvf node-v8.11.3-linux-x64.tar.xz # mv node-v8.11.3-linux-x64 /usr/local/ ### link to bin # ln -s /usr/local/node-v8.11.3-linux-x64/bin/node /usr/local/bin/ # ln -s /usr/local/node-v8.11.3-linux-x64/bin/npm /usr/local/bin/ # [root@salt bin]# node -v ```bash v8.11.3 ``` # [root@salt bin]# npm -v ```bash 5.6.0 ``` ### npm install vue gloab npm install vue@2.5.13 -g npm install vue-router@3.0.1 -g npm install vue-init -g npm install vue-cli -g ### bin tool check # /usr/local/node-v8.11.3-linux-x64/bin/ ```bash [root@salt bin]# ll total 33992 -rwxrwxr-x 1 tester tester 34800111 Jun 13 2018 node lrwxrwxrwx 1 tester tester 38 Mar 8 16:28 npm -> ../lib/node_modules/npm/bin/npm-cli.js lrwxrwxrwx 1 tester tester 38 Mar 8 16:28 npx -> ../lib/node_modules/npm/bin/npx-cli.js -rw-r--r-- 1 root root 27 Mar 8 20:58 package-lock.json lrwxrwxrwx 1 root root 35 Mar 8 21:13 vue -> ../lib/node_modules/vue-cli/bin/vue lrwxrwxrwx 1 root root 40 Mar 8 21:13 vue-init -> ../lib/node_modules/vue-cli/bin/vue-init lrwxrwxrwx 1 root root 40 Mar 8 21:13 vue-list -> ../lib/node_modules/vue-cli/bin/vue-list lrwxrwxrwx 1 root root 37 Mar 8 21:05 xlsx -> ../lib/node_modules/xlsx/bin/xlsx.njs ``` --- ## nginx proxy # yum install nginx nginx-devel -y ```python location /saltshaker/api/ { proxy_pass http://127.0.0.1:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; } ``` --- ## html monitor python 3.6.6 # pip install git+https://github.com/Supervisor/supervisor@master --- ## gitlab ### yum repo source # https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/ gitlab.repo centos 6 x64 ```python [gitlab-ce] name=gitlab-ce baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 Repo_gpgcheck=0 gpgcheck=0 enabled=1 Gpgkey=https://packages.gitlab.com/gpg.key ``` ### install postfix # yum install postfix # chkconfig postfix on ### gitlab config # gitlab-ctl reconfigure # vim /etc/gitlab/gitlab.rb ```python # 然后修改 external_url 'http://192.168.1.6' ``` 然后reconfigure # gitlab-ctl reconfigure ### login gitlab # access http://192.168.1.6 user: root passwrod: inpurt your password. ### gitlab url update $ vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml ```python #host: gitlab.example.com host: 10.81.234.184 #email_from: gitlab@gitlab.example.com email_from: bobby.jiang@126.com ``` ### GitLab常用命令 ```python sudo gitlab-ctl start # 启动所有 gitlab 组件; sudo gitlab-ctl stop # 停止所有 gitlab 组件; sudo gitlab-ctl restart # 重启所有 gitlab 组件; sudo gitlab-ctl status # 查看服务状态; sudo gitlab-ctl reconfigure # 启动服务; sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件; gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab; sudo gitlab-ctl tail # 查看日志; ``` --- ## gitlab and saltshaker saltstack api: $ pip install GitPython $ pip install pygit2
Bobby
2021年12月20日 06:37
分享文档
收藏文档
阅读
125
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码