|
2 x# U7 z3 [7 Z# xVPS服务器系统选择 Debian10或以上: u. d# T. }) o3 C+ K
- z [3 @% T$ E% I. V---------------------------------------------------------5 m! c9 W' `- z. k6 n4 W
# ~" _0 V" s+ I7 |& d* J0 X: ~#更新系统& |- `$ [% {! F3 q4 w9 C3 g
apt update -y
9 E) W0 q5 ?) d% r4 K2 oapt install -y curl
. O5 L: V4 D+ ~apt install -y socat
' G1 m3 _' V8 r& r, [. h
) ?& z0 \; x& P9 B#安装脚本* I5 @3 a; M+ c, K
curl https://get.acme.sh | sh
; j. a6 b/ A% q5 {+ P8 Q~/.acme.sh/acme.sh --register-account -m xxxx@163.com
# w, C, I/ W) q \( l' B7 @
6 A7 e1 A: P" t#放行80端口
% q9 t6 a6 f, D, y1 b( ]iptables -I INPUT -p tcp --dport 80 -j ACCEPT
9 q5 I J" F+ Q$ R
6 B! |& O8 }$ j+ W
; V U& j' x7 a3 Q1 } D- P1 p+ d! v6 G- {, n
#申请证书 `% R2 I) `7 E' k- z( M
~/.acme.sh/acme.sh --issue -d xgoogle.com --standalone" Z6 c& C6 z1 N
~/.acme.sh/acme.sh --installcert -d xgoogle.com --key-file /root/private.key --fullchain-file /root/cert.crt
9 Y7 p. O8 V5 g c
% T- N8 F9 a& O#Xray一键代码
0 V- x4 u8 L( k4 ?- zbash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)2 I& p$ E, M5 s! Q! z) f
#放行端口( V8 e0 p) H5 W% {
iptables -I INPUT -p tcp --dport 54321 -j ACCEPT
- g2 l3 N$ P0 A' M8 P8 Oiptables -I INPUT -p tcp --dport 443 -j ACCEPT: R- U2 t/ ?- X) I" U
+ u7 Y. f( p6 L% j-------------------------------------------------------------
0 i6 K9 h1 w# s# `- Z4 ?
: X5 m9 _- g- u) x; y4 x8 z3 HFinalShell下载:https://wa6.lanzoui.com/ihjg2y3h14j2 C, _ c' k8 W# l8 v
FinalShell-MAC版下载:https://wa6.lanzoui.com/iPeC7y3hryf
7 a4 a: @- S# g/ J
* N+ I1 q3 z/ r) A; j科学软件下载:https://bit.ly/2MXgZ4U- `1 D" n/ Q4 R
域名注册:https://www.namesilo.com
, H* X9 j. \3 s( o( v* I q视频教程% ?; u8 P2 f5 b: ^5 @4 B
& P( }9 x y2 w: Q
( `! H* Y# H" I% c
9 C% ^8 T8 A- a z! I; Z |
|