Similar Posts
安卓版Shadowsock
请使用浏览器,扫描该二维码进行下载。
开始学习Python语言
无意中在学习强国app里看到有Python (音‘派神’),才知道之前自己读音一直读错,我读成‘菲佣’了,这英语真是烂透了。 教学视频是在windows上讲解的,所以我就安装了Python 3.7.2版本,安装好了之后没有设定环境变量,所以各种出错。 后来总结出错的问题,fix it。 第一步就是在系统环境变量那边,点击Path,然后把Python所在目录填写进去,但是就只填写了这个,导致输入pip命令出错,明明系统自带了pip,为什么出错呢? 然后去下载了get-pip.py文件,执行后,发现了一条黄色的提示,说系统已经有存在了pip版本是18 的,给我升级到最新的19版本。告诉我没有在path那边添加Python/Scripts 。 后来我打开Scripts文件一看,我去,easy_install pip等命令都在里面待着呢。把Scripts加进系统变量,环境搞定。 可以愉快地继续学习了。
搭建ShadowsocksR教程(Python版)
写在前面 先买一台ping值还差不多的vps,然后就开始折腾。推荐使用centos。 1.安装运行环境。 yum install python-setuptools && easy_install pip yum install git 注意:easy_install pip 命令已经失效,请更改为yum -y install python-pip即可 2.安装ShadowsocksR git clone -b manyuser https://github.com/shadowsocksr/shadowsocksr.git 默认安装位置会在root目录下。 进行服务器端配置 cd ~/shadowsocksr bash initcfg.sh 3.把root目录的文件,转移到/usr/local目录下 然后在shadowsocksr/shadowsocks目录下创建一个config.json配置文件 内容如下: { “server”:”0.0.0.0″, “server_ipv6″:”::”, “local_address”:”127.0.0.1″, “local_port”:1080, “port_password”:{ “6388”:{“protocol”:”auth_aes128_md5″,”protocol_param”:”xx”,”password”:”xxxxxxxx”, “obfs”:”tls1.2_ticket_auth”,”obfs_param”:”xxxxxxxx”}, “6389”:{“protocol”:”origin”, “password”:”xxxxxxxx”}, “6390”:{“protocol”:”origin”, “password”:”xxxxxxxx”} }, “timeout”:300, “method”:”aes-256-cfb”, “protocol”: “auth_sha1_compatible”, “protocol_param”: “”, “obfs”: “http_simple_compatible”, “obfs_param”:…
CentOS7为firewalld添加开放端口及相关操作
1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。 启动一个服务:systemctl start firewalld.service 关闭一个服务:systemctlstop firewalld.service 重启一个服务:systemctlrestart firewalld.service 显示一个服务的状态:systemctlstatus firewalld.service 在开机时启用一个服务:systemctlenable firewalld.service 在开机时禁用一个服务:systemctldisable firewalld.service 查看服务是否开机启动:systemctlis-enabled firewalld.service 查看已启动的服务列表:systemctllist-unit-files|grep enabled 查看启动失败的服务列表:systemctl–failed 3.配置firewalld-cmd 查看版本: firewall-cmd –version 查看帮助: firewall-cmd –help 显示状态: firewall-cmd –state 查看所有打开的端口: firewall-cmd –zone=public –list-ports 更新防火墙规则: firewall-cmd –reload 查看区域信息: firewall-cmd…
Merlin 梅林 shadowsocks 开启游戏模式后,PC端打开youtube比ios版youtube慢的原因
科学上网接近一年了,从一开始的gfwlist模式,到大陆白名单,到最后的游戏模式(支持udp转发)。在gfwlist模式和大陆白名单模式下,pc端和ios端的youtube基本都是相同速率的。 在上个月从vultr切换到sakura后,因为sakura无流量限制,所以就开启了游戏模式。结果用了一段时间,发现pc端youtube的速率很慢,大约不到200KB/s,而用ios版youtube看的话速率正常在600-1200KB/s,加载720p完全无压力。 问过百度和谷歌,还有技术群,都无解。 就在昨天,我在抓包时发现了一个问题,如果用pc端直接打开youtube的话 默认走得是udp,udp… 而ios版youtube走得是tcp。结果这个疑难杂症迎刃而解了,从游戏模式切换到大陆白名单,搞定! 解决办法: The QUIC protocol can be disabled by following one of the below procedures. 1. In Google Chrome: – In the URL type “chrome://flags” – Search for “Experimental QUIC protocol” and disable it 2. Using a Endpoint Security firewall rule. Create a Firewall Application Rule blocking Chrome – Open the…
centos 6.5 网络配置方法(命令行的方式)
安装完mini版centos 6.5后,如果在安装时忘记配置网络,可以通过以下方式配置 1.登陆centos,输入ifconfig查看当前网络配置 2.新增一条配置,在命令行输入的配置重启后会失效 ifconfig eth0 192.168.1.1 netmask 255.255.255.0 3.编辑修改网络配置文件 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=”eth0″ ‘’网卡 BOOTPROTO=”static” ‘’设为启动时采用静态IP TYPE=”Ethernet” NAME=”System eth0″ ‘’网卡名称 BROADCAST=xxx.xxx.xxx.xxx ”广播地址 HWADDR=”00:0C:29:95:97:C4″ ‘’网卡MAC地址 IPADDR=xxx.xxx.xxx.xxx ‘’IP地址 NETMASK=255.255.255.0 ‘’子网掩码 GATEWAY=xxx.xxx.xxx.xxx ‘’网关 DNS1=8.8.8.8 DNS2=8.8.4.4 UUID=”cd613e09-d19c-4a51-a0fe-11ddf8ef86a5″ ‘’UUID,每个系统网卡生成的都不一样,改自己的覆盖上去即可 ONBOOT=”yes” ‘’启动时加载该配置 NM_CONTROLLED=yes 4.重启网络服务 service network restart