安装certbot
yum install certbot python2-certbot-nginx1. 使用nginx插件自动配置
certbot --nginx 安装certbot
yum install certbot python2-certbot-nginxcertbot --nginx chmod 755 `find ./ -type d `chmod 644 `find ./ -type f`vi /etc/sysconfig/network
#添加
HOSTNAME=your-name
vi /etc/hosts
#修改
192.168.x.x your-name your-name
#终端执行
hostname your-name 推荐使用Trojan-go,参考本站 Centos7安装配置Trojan-go + Nginx
下载安装脚本
wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh --user-agent="Mozilla/5.0"执行安装脚本
./install-release.sh如果报错 Unable to establish SSL connection. 安装openssl
yum install openssl 查看当前安装的java
rpm -qa | grep java搜索openjdk版本
yum search java-11-openjdk安装openjdk11
yum install java-11-openjdk 参考之前的文章 Centos7 安装 mongodb
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs