博文

目前显示的是标签为“v2ry”的博文

v2ray ws +Nginx +CloudflareCdn 搭建科学上网工具

图片
简单写写吧,自己搭建的过程》 刚申请了台美国vps,把过程记录下。 1. Linux搭建v2ray软件   是用v2ui搭建的,原来的sprov-ui。参见链接: https://blog.sprov.xyz/2019/08/03/v2-ui/  putty中或xshell中登陆linux输入: bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh) 开始安装v2ray。 2. 防火墙放行端口、 nginx搭建配置 防火墙放行v2ray所用端口及v2ray面板端口,或者直接关闭防火墙,具体系统可以参考网上教程。 我使用的是centos7,具体为: 停止防火墙:systemctl stop firewalld 添加放行端口:firewall-cmd --add-port=<port>/<protocol> 重新加载配置使生效:firewall-cmd --reload 参考: centos7防火墙设置 安装nginx并配置 rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm #安装nginx源 yum install -y nginx #安装nginx systemctl enable nginx #设置nginx为开机自动启动 mkdir /etc/nginx/ssl #在nginx安装目录下创建ssl文件夹 vi /etc/nginx/conf.d/default.conf #将此文件设置为如下配置: server {     listen       443 ssl;     server_name  yourdomain.com; #修改为自己的域名     ssl_certificate ssl/yourdomain.com.crt; #将yourdomain.com修改为自己的域名     ssl_certificate_key ...