做有用的事,说勇敢的话,
想美好的事,睡安稳的觉

V2ray

准备工作你需要拥有1,KVM格式VPS 2,一个域名

系统安装完 删除冗余服务

yum remove Deployment_Guide-en-US finger cups-libs cups ypbind
yum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils
yum remove sendmail* samba* talk-server finger-server bind* xinetd
yum remove nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools
yum remove syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools
yum groupremove “Mail Server” “Games and Entertainment” “X Window System” “X Software Development”
yum groupremove “Development Libraries” “Dialup Networking Support”
yum groupremove “Games and Entertainment” “Sound and Video” “Graphics” “Editors”
yum groupremove “Text-based Internet” “GNOME Desktop Environment” “GNOME Software Development”

禁用IPv6

vi /etc/sysctl.conf  添加如下

net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1

关闭Selinux

sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/selinux/config

丰富常用yum源及插件

CentOS-Base.repo(系统自带源)
EPEL源:sudo yum install epel-release
ELREPO源:sudo rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
nux-dextop源:https://link.jianshu.com/?t=http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm,之后安装nux-dextop-release-0-1.el7.nux.noarch .rpm
mosquito源:yum-config-manager –add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-$(rpm -E %?rhel)/mosquito-myrepo-epel-$(rpm -E %?rhel).repo
copr源:https://link.jianshu.com/?t=https://copr.fedoraproject.org/coprs/librehat/shadowsocks/,之后cp到/etc/yum.repos.d/下
安装yum-axelgetyum-axelget是EPEL提供的一个yum插件。使用该插件后用yum安装软件时可以并行下载,大大提高了软件的下载速度,减少了下载的等待时间:sudo yum install yum-axelget
yum安装插件yum-plugin-fastestmirror
之后就是第一次全面更新:yum update

 

设置时区

设置时区为上海

timedatectl set-timezone Asia/Shanghai

将系统RTC时间设置为时区时间而不是UTC时间

timedatectl set-local-rtc yes

一、Centos7 添加ifconfig支持

yum install net-tools

二、Centos7 添加sz,rz支持

yum install lrzsz -y

三、Centos7 添加bbr

wget –no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh
uname -r
lsmod | grep bbr

sysctl net.ipv4.tcp_congestion_control

四、V2ray core 更新方式

bash <(curl -L -s https://install.direct/go.sh)

五、One Key脚本地址

https://github.com/wulabing/V2Ray_ws-tls_bash_onekey

六、Github作者提供的方式安装Vmess+websocket+TLS+Nginx+Website

bash <(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh) | tee v2ray_ins.log

七、Install.sh 如果使用此脚本,可以跳过:四五六

install

八,windows客户端

 

九、crontab修改

0 0 * * 0 systemctl stop nginx httpd
2 0 * * 0 “/root/.acme.sh”/acme.sh –cron –home “/root/.acme.sh” > /root/crontableinfo
4 0 * * 0 systemctl start nginx httpd

 

未经允许不得转载:Mr.Zhang » V2ray
分享到: 更多 (0)

评论 抢沙发