Windows自带端口转发软件netsh的小用处

Windows下还是有些有意思的小工具,端口转发软件netsh就是其一。拿它能用来干嘛呢?懂的人不用多说了,不懂的人估计也没兴趣。再在ios上设置个代理就方便很多了。 Vista及以上版本才有,当然需要管理员权限啦。 1.添加端口转发的命令 netsh interface portproxy add v4tov4 listenport=新开的监听端口 listenaddress=新开端口的绑定地址 connectaddress=要转发的地址 connectport=要转发的端口 protocol=tcp 如: netsh interface portproxy add v4tov4 listenport=12345 listenaddress=0.0.0.0 connectaddress=127.0.0.1 connectport=1080 protocol=tcp 2.删除端口转发的命令 netsh interface portproxy delete v4tov4 listenport=新开的监听端口 listenaddress=新开端口的绑定地址 如: netsh interface portproxy delete v4tov4 listenport=12345 listenaddress=0.0.0.0

Linux /proc/[pid]/maps说明

address   perms  offset  dev  inode  pathname 08048000-08056000  r-xp   00000000  03:0c  64593  /usr/sbin/gpm •address – This is the starting and ending address of the region in the process’s address space •permissions – This describes how pages in the region can be accessed. There are four different permissions: read, write, execute, and shared. If read/write/execute are disabled, […]

linux下swap的用法

创建 mkdir /test/swap_dir dd if=/dev/zero of=/test/swap_dir/swap  bs=1k count=10240 mkswap /test/swap_dir/swap swapon /test/swap_dir/swap #临时开启这个交换空间 /test/swap_dir/swap  swap  swap    defaults  0 0 #开机启用,在/etc/fstab文件里配置 swapon -s # 查看 配置 系统在什么情况下才会使用SWAP? cat /proc/sys/vm/swappiness swappiness=0的时候表示最大限度使用物理内存,然后才是 swap空间, swappiness=100的时候表示积极的使用swap分区,并且把内存上的数据及时的搬运到swap空间里面。 如果内存充足,这个参数值设置的低一些,让操作系统尽可能的使用物理内存,降低系统对swap的使用,从而提高系统的性能。  如何修改swappiness参数? 临时性修改: sysctl vm.swappiness=10 永久修改,在/etc/sysctl.conf 文件里添加如下参数: vm.swappiness=10 打赏点吧(微信扫码)

Linux设置代理

临时配置: export http_proxy=proxy_addr:port export https_proxy=proxy_addr:port export ftp_proxy=proxy_addr:port 需要用户名和密码的话: export http_proxy=http://username:password@proxy_addr:port export https_proxy=http://username:password@proxy_addr:port export ftp_proxy=http://username:password@proxy_addr:port   永久配置: 把上面的配置内容保存到/etc/profile或用户目录下的.bash_profile即可。 如上方面感觉对wget, curl, svn, git没有作用,只能用这些命令自己的方式了。   svn配置代理: –config-option servers:global:http-proxy-host=[proxy_server] –config-option servers:global:http-proxy-port=[proxy_port]  

CentOS 7下安装使用TigerVNC

TigerVNC 1.5. gnome环境有问题,NVIDIA驱动的原因,换KDE桌面,还是一样的问题。 没搞定。

Goagent最新可用IP

后注:没用这个软件了,推荐Shadowsocks 2015-10-01 103.7.200.79|139.175.107.113|139.175.107.88|139.175.107.98|208.117.227.19|208.117.228.212|211.125.201.176|216.21.170.227|216.239.38.124|216.58.208.200|64.15.116.185|64.15.116.91|64.15.126.224|64.233.160.19|64.233.161.142|64.233.161.157|64.233.162.81|64.233.162.83|64.233.162.87|64.233.163.91|64.233.166.118|64.233.166.157|64.233.167.165|64.233.167.96|64.233.171.112|64.233.177.31|64.233.178.149|64.233.178.19|64.233.179.90|64.233.180.196|64.233.182.96|64.233.184.142|64.233.184.93|66.102.12.104 2015-08-13 64.233.176.149|64.233.177.193|64.233.177.193|64.233.178.91|64.233.178.91|64.233.162.87|64.233.162.82|64.233.162.82|64.233.162.81|64.233.162.81|173.194.214.156|173.194.214.156|173.194.197.157|173.194.197.157|64.233.162.86|64.233.162.86|74.125.198.123|74.125.198.123|173.194.207.118|173.194.207.118|173.194.46.51|173.194.46.51|74.125.193.112|74.125.193.112|64.233.178.81|64.233.178.81|173.194.217.90|173.194.217.90|74.125.21.152|74.125.21.152|64.233.162.85|64.233.162.85|208.117.243.103|128.0.169.246|128.0.169.246|128.0.169.229|128.0.169.229|128.0.169.235|128.0.169.235|128.0.86.209|128.0.86.209|128.0.86.250|128.0.86.250|128.0.169.208|128.0.169.208|128.0.86.249|128.0.86.249|128.0.169.236|128.0.169.236|128.0.169.249|128.0.169.249|128.0.169.223|128.0.169.223|128.0.86.217|128.0.86.217|128.0.169.247|128.0.169.247|128.0.86.235|128.0.86.235|128.0.86.196|128.0.86.196|128.0.86.233|128.0.86.233|128.0.169.240|128.0.86.197|128.0.86.197|128.0.169.224|128.0.86.234|128.0.86.234|128.0.169.207|128.0.169.207|128.0.86.208|128.0.86.208|128.0.169.219|128.0.169.241|128.0.169.241|128.0.86.245|128.0.86.245|128.0.86.227|128.0.86.227|128.0.169.215|128.0.169.215|128.0.86.232|128.0.86.232|128.0.86.216|128.0.86.218|128.0.86.218|64.233.171.112|64.233.171.112|64.233.171.115|64.233.171.115|64.15.116.181|64.15.116.181|173.194.204.152|173.194.204.152|128.0.86.205|128.0.86.205|220.255.6.5|220.255.6.5|128.0.169.198|128.0.169.198|139.175.107.80|139.175.107.80|37.228.69.50|37.228.69.50|208.117.243.103|128.0.169.209|128.0.169.209|128.0.86.236|128.0.86.236|128.0.86.248|128.0.86.248 2015-07-31 77.66.9.113|193.90.147.48|203.66.124.247|106.162.192.168|203.165.14.216|106.162.216.49|210.61.221.157|223.26.69.16|202.86.162.24|223.26.69.38|106.162.216.59|106.162.216.103|220.255.6.173|218.253.0.144|220.255.6.99|84.235.77.226|203.66.124.162|103.25.178.38|106.162.198.109|218.253.0.185|106.162.216.118|203.165.13.227|216.58.221.206|210.153.73.45|203.66.124.221|193.90.147.117|202.39.143.103|203.165.13.217|220.255.6.94|64.233.162.87|64.233.162.82|216.58.221.252|216.58.196.26|216.58.196.29|64.233.188.142|64.233.162.85 2015-07-27 220.255.6.25|106.162.198.118|210.153.73.30|77.66.9.84|83.100.221.246|106.162.216.108|64.233.160.149|203.66.124.212|81.175.29.152|203.66.124.152|223.26.69.16|61.219.131.84|210.153.73.108|118.143.88.20|210.242.125.44|106.162.216.98|202.86.162.39|202.39.143.103|61.219.131.246|74.125.142.157|106.162.192.173|118.143.88.49|203.66.124.237|118.143.88.27|88.159.13.219|202.39.143.113|216.58.192.177|61.219.131.113|202.86.162.24|64.15.114.89|220.255.6.231|173.194.64.97|220.255.6.94|220.255.6.34|216.58.221.246|173.194.46.81|208.117.224.197|208.117.228.122|216.58.196.175|220.255.6.104|216.58.192.68|64.233.183.136|208.117.228.184|216.58.221.120|64.233.176.149|216.58.196.196|64.233.177.193|64.233.179.141|64.233.189.195|173.194.205.81|64.233.178.91|216.58.217.111|216.58.192.159|64.233.179.17|216.58.218.203|216.58.196.32|208.117.224.59|64.233.176.106|64.15.114.87|64.233.162.87|64.233.178.103|173.194.38.153|74.125.228.218|64.233.162.82|216.58.221.162|64.233.180.156|64.233.162.81|216.58.221.153|173.194.214.156|74.125.194.193|216.58.221.252|216.58.192.182|173.194.197.157|216.58.217.105|64.233.162.86|173.194.194.123|216.58.196.26|216.58.192.179|216.58.196.63|64.233.180.195|64.15.124.86|64.15.114.38|209.85.146.136|64.233.179.167|216.58.196.87|208.117.228.91|216.58.196.29|216.58.222.25|64.233.177.100|173.194.196.122|64.233.160.17|74.125.198.123|173.194.205.136|173.194.36.67|173.194.207.118|64.233.188.149|216.58.217.35|74.125.207.117|173.194.117.84|216.58.196.46|216.58.222.15|64.233.171.85|74.125.196.99|74.125.196.104|64.233.188.142|216.58.221.125|173.194.46.51|216.58.196.40|74.125.193.112|216.58.221.30|216.58.196.195|173.194.64.18|64.233.178.81|173.194.217.90|74.125.142.101|216.58.192.107|216.58.221.67|74.125.21.152|216.58.196.223|64.233.162.85|74.125.193.17|74.125.228.207|173.194.204.100|173.194.46.84|64.233.188.117|74.125.193.82|64.233.183.122|173.194.194.165|173.194.213.195 2015-07-20 128.0.169.246|128.0.169.229|128.0.169.235|128.0.86.209|128.0.86.250|128.0.169.208|128.0.86.249|128.0.169.236|128.0.169.249|128.0.169.223|128.0.86.217|128.0.169.247|128.0.86.235|128.0.86.196|128.0.86.233|128.0.169.240|128.0.86.197|128.0.169.224|128.0.86.234|128.0.169.207|128.0.86.208|128.0.169.219|128.0.169.241|128.0.86.245|128.0.86.227|128.0.169.215|128.0.86.232|128.0.86.216|128.0.86.218|216.58.221.210|210.61.221.172|210.61.221.177|193.120.166.85|202.86.162.20|202.86.162.29|83.145.196.165|62.0.54.84|202.86.162.40|64.233.171.112|203.117.35.167|106.162.198.118|216.58.221.115|220.255.6.231|208.117.244.31|106.162.216.49|222.255.120.50|64.233.189.94|210.242.125.35|220.255.5.158|91.213.30.185|216.58.217.114|203.66.124.187|203.117.37.172|103.25.178.50|64.233.171.115|220.255.6.39|24.156.131.34|64.15.116.181|61.19.1.241|216.58.221.87|85.182.250.49|83.94.121.183|210.153.73.44|202.86.162.59|220.255.6.187|173.194.204.152|218.253.0.165|64.15.113.44|193.120.166.101|203.117.34.168|24.156.131.40|64.233.185.103|118.174.25.89|106.162.216.89|24.156.131.113|74.125.201.101|64.233.178.155|193.90.147.90|111.168.255.34|128.0.86.205|220.255.6.5|74.125.110.131|128.0.169.198|139.175.107.80|173.194.21.76|193.134.255.9|41.201.164.41|116.92.194.175|37.228.69.14|74.125.13.154|83.100.221.238|195.249.20.211|62.1.38.170|193.192.226.165|82.135.118.51|194.78.99.205|37.228.69.50|139.175.107.201|149.3.177.37|103.1.139.167|82.135.118.14|82.135.118.45|193.134.255.146|58.145.238.54|41.201.164.22|82.135.118.54|193.120.166.119|202.169.193.78|208.117.230.12|208.117.255.111|37.228.69.16|61.19.1.235|208.117.239.132|64.15.112.53|202.86.162.41|202.169.193.90|210.242.125.30|149.3.177.121|202.39.143.39|77.66.9.112|203.117.37.177|220.255.6.148|208.117.243.103|83.145.196.159|216.58.221.99|222.255.120.46|218.176.242.33|118.143.88.23|210.242.125.29|163.28.116.59|218.189.25.173|128.0.169.209|128.0.86.236|128.0.86.248