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
#!/bin/bash | |
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config | |
setenforce 0 | |
yum update -y | |
yum install etcd flannel docker iptables-services nano lsof -y | |
# firewalld有条记录叫做 FORWARD reject,至今找不到办法删除 | |
service firewalld stop | |
chkconfig firewalld off |
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
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
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
#!/usr/bin/python | |
import commands | |
preCommand = ["yum makecache","yum install epel-release -y","yum update -y"] | |
rpms = ["java-1.8.0-openjdk.x86_64","golang","docker","denyhosts","ttssXX", | |
"telnet","ftp","nmap","dstat","iftop","sysstat","net-tools","iotop","htop"] | |
rpmGroups=["Development Tools"] |