一只可爱的北斋厨的随笔 - 科学上网
type: channel
link: https://www.lisushang.com/index.php/tag/%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91/
items: 宝塔+blog+v2ray+ws实现一机多用的科学上网姿势

宝塔+blog+v2ray+ws实现一机多用的科学上网姿势
type: item
date: 2020-08-28T15:48:00+08:00
description: 准备工作宝塔安装https://www.bt.cn/根据系统自己来吧，建议使用centos。网站搭建建议安装LNMP （第一个，NGINX替代了LAMP的Apache。）NGINX的代理功能是关键。php注意是7.0及以上的版本，mysql建议保持默认的5.7别动。安装v2ray在以下的网站中安装v2ray服务端。https://github.com/v2fly/fhs-install-v2ray#fhs-install-v2rayfhs-install-v2ray欲查阅以简体中文撰写的介绍，请访问：README.zh-Hans-CN.mdBash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd該腳本安裝的文件符合 Filesystem Hierarchy Standard（FHS）：https://wiki.linuxfoundation.org/lsb/fhsinstalled: /usr/local/bin/v2ray installed: /usr/local/bin/v2ctl installed: /usr/local/share/v2ray/geoip.dat installed: /usr/local/share/v2ray/geosite.dat installed: /usr/local/etc/v2ray/config.json installed: /var/log/v2ray/ installed: /var/log/v2ray/access.log installed: /var/log/v2ray/error.log installed: /etc/systemd/system/v2ray.service installed: /etc/systemd/system/v2ray@.service依賴軟體安裝 cURL# apt update # apt install curlor# yum makecache # yum install curlor# dnf makecache # dnf install curlor# zypper refresh # zypper install curl下載// 安装本体和数据文件 # curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh // 只更新数据文件 # curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh使用該腳本在執行時會提供 info 和 error 等信息，請仔細閱讀。安裝和更新 V2Ray# bash install-release.sh安裝最新發行的 geoip.dat 和 geosite.dat# bash install-dat-release.sh移除 V2Ray# bash install-release.sh --remove解決問題「不安裝或更新 geoip.dat 和 geosite.dat」。「使用證書時權限不足」。「從舊腳本遷移至此」。「將 .dat 文檔由 lib 目錄移動到 share 目錄」。「使用 VLESS 協議」。參數usage: install-release.sh [--remove | --version number | -c | -f | -h | -l | -p] [-p address] [--version number | -c | -f] --remove Remove V2Ray --version Install the specified version of V2Ray, e.g., --version v4.18.0 -c, --check Check if V2Ray can be updated -f, --force Force installation of the latest version of V2Ray -h, --help Show help -l, --local Install V2Ray from a local file -p, --proxy Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127…