那天,杯具想起了自己的博客园密码
存一下自己的vps安装脚本,以后就不用一行一行输了
#!/usr/bin/env bash rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --permanent --zone=public --add-port=1017/tcp firewall-cmd --permanent --zone=public --add-port=3306/tcp firewall-cmd --permanent --zone=public --add-port=23333/tcp wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/kms.sh wget -N --no-check-certificate https://github.com/teddysun/shadowsocks_install/raw/master/shadowsocks.sh chmod +x kms.sh chmod +x shadowsocks.sh yum install -y telnet net-tools epel-release yum install -y python36 ln /usr/bin/python36 /usr/bin/python3 curl -O https://bootstrap.pypa.io/get-pip.py python3 get-pip.py rm -f get-pip.py wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh chmod +x serverspeeder.sh wget http://repo.mysql.com/mysql-community-release-el7.rpm rpm -ivh mysql-community-release-el7.rpm yum install -y mysql-server systemctl start mysqld systemctl enable mysqld