峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
您正在查看: TSI 分类下的文章
2019-08-01 |Nonni

nh018.png
V2Ray 原生支持 Socks、HTTP、Shadowsocks、VMess 等协议。
ubuntu/debian 安装 Curl:

apt-get update -y && apt-get install curl -y

centos 安装 Curl:

yum update -y && yum install curl -y

官方:

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

其它脚本:

bash <(curl -s -L https://git.io/v2ray.sh)

bash <(curl -s -L https://raw.githubusercontent.com/233boy/v2ray/master/install.sh)

Wordpress+v2ray_ws_tls1.3一键脚本(Centos7 VPS, 2GB RAM, 完成后访问域名,开始wordpress初始配置):

yum install -y wget && wget https://raw.githubusercontent.com/atrandys/v2ray-ws-tls/master/v2ray_ws_tls_with_wp.sh && chmod +x v2ray_ws_tls_with_wp.sh && ./v2ray_ws_tls_with_wp.sh

查看参数:

cat /etc/v2ray/myconfig.json

BBR:

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

启动

systemctl start v2ray
service start v2ray

停止

systemctl stop v2ray
service stop v2ray

重启

systemctl restart v2ray
service restart v2ray

V2Ray快速管理:
v2ray bbr 配置BBR
v2ray info 查看 V2Ray 配置信息
v2ray config 修改 V2Ray 配置
v2ray link 生成 V2Ray 配置文件链接
v2ray infolink 生成 V2Ray 配置信息链接
v2ray qr 生成 V2Ray 配置二维码链接
v2ray ss 修改 Shadowsocks 配置
v2ray ssinfo 查看 Shadowsocks 配置信息
v2ray ssqr 生成 Shadowsocks 配置二维码链接
v2ray status 查看 V2Ray 运行状态
v2ray start 启动 V2Ray
v2ray stop 停止 V2Ray
v2ray restart 重启 V2Ray
v2ray log 查看 V2Ray 运行日志
v2ray update 更新 V2Ray
v2ray update.sh 更新 V2Ray 管理脚本
v2ray uninstall 卸载 V2Ray

nh019.png
查看pip源:
cat /root/.pip/pip.conf
pip --version

编辑一下pip配置文件:
vi /root/.pip/pip.conf

修改成豆瓣源或者阿里源:
[global]

index-url=https://pypi.douban.com/simple

[install]

trusted-host=pypi.douban.com

强制安装requests:
pip install --ignore-installed requests

Done~

nh022.png
CPU频率:

psrinfo -v  或  mpstat

CPU\内存:

prtdiag -v (大部分信息全部列出) 需要先进入/usr/platform/sun4u/sbin

硬盘:

iostat -E

网卡速度:

dmesg │grep link

CPU占用率:

top

内存占用率:

free -m

硬盘占用率:

df

带宽占用率:

vmstat

物理cpu数:

grep 'physical id' /proc/cpuinfo | sort -u

核心数量:

grep 'core id' /proc/cpuinfo | sort -u | wc -l

线程数:

grep 'processor' /proc/cpuinfo | sort -u | wc -l

内存信息:

cat /proc/meminfo

CPU信息:

cat /proc/cpuinfo 

硬盘信息:

df -h -T(no device的设备看不到) 
fdisk -l 可以在redhat9.0中看; redhat企业版不行. 

其他命令:

lspci -v 
dmidecode 
dmesg

ESXi HP DL380G7
Windows Server 2016 Datacenter
CentOS 7
Debian 9.8
VMware VSphere 6.7
Citrix Xendesktop&XenApp 7.6
VMware Horizon 7
Veeam Backup & Replication9,Veeam One 9
Citrix Netscaler 11