/script

常用服务器脚本

Primary LanguageShell

script

centos 7 自动准备脚本

centos init

  • 升级安装基础包
  • 安装zsh
  • 新建用户,添加公钥
  • 禁用 root 用户登陆,改变 ssh 端口
  • 安装pyenv、python、golang

sh -c "$(wget https://raw.githubusercontent.com/jianjian01/script/master/centos7_init.sh -O -)"

centos app

  • 安装 Redis、MongoDB、MySQL
  • 安装 Nginx
  • 配置 letsencrypt,自动更新