linux配置双线策略

Round 1:由外部主动发起的连接可用以下方式配置

根据用户访问进来的路径设定动态路由

原理:如果用户是通过电信IP地址访问过来的话,那么使用电信网关做路由,返回内容走电信网关;如果用户通过网通IP地址访问过来的话,那么使用网通网关做路由,返回内容走网通的网关,具体配置方法如下:

服务器电信IP:180.153.146.187,电信网关:180.153.146.177
服务器网通IP:112.65.250.202,网通网关:112.65.250.193

1) 默认网关使用电信网关作为路由

在Linux上面配置默认网关,如果是RedHat,应该是在/etc/sysconfig/network文件里面添加一行:GATEWAY114.80.162.33,如果是SuSE,应该是在/etc/sysconfig/network/routes里面添加一行:default 114.80.162.33 - - 或者可以直接使用YaST2来配置。

2)添加路由表

修改/etc/iproute2/rt_tables,添加内容:

252 tel 电信路由表

251 cnc 网通路由表

3)添加规则

建立  route.sh
内容如下

ip route flush table tel
ip route add default via 180.153.146.177 dev eth0 src 180.153.146.187 table tel
ip rule add from 180.153.146.187 table tel

ip route flush table cnc
ip route add default via 112.65.250.193 dev eth1 src 112.65.250.202 table cnc
ip rule add from 112.65.250.202 table cnc

4)把刚刚配置的路由规则加入开机自启动  /etc/rc.d/rc.local

5)

配置检查:

ip route list table 251

ip rule list

Round 2:由内部主动发起的连接可用以下方式配置

原理:使用刷路由表的方式进行路由分发

附 截止与2014-3-3的联通路由表,最新路由表可从http://www.lbase.net/ISPIPInfo.aspx 网站获取

route add -net 110.16.0.0/14 gw 112.65.250.193

route add -net 110.52.0.0/15 gw 112.65.250.193

route add -net 110.6.0.0/15 gw 112.65.250.193

route add -net 110.72.0.0/15 gw 112.65.250.193

route add -net 111.160.0.0/13 gw 112.65.250.193

route add -net 112.109.128.0/17 gw 112.65.250.193

route add -net 112.111.0.0/16 gw 112.65.250.193

route add -net 112.122.0.0/15 gw 112.65.250.193

route add -net 112.132.0.0/16 gw 112.65.250.193

route add -net 112.192.0.0/14 gw 112.65.250.193

route add -net 112.224.0.0/11 gw 112.65.250.193

route add -net 112.64.0.0/15 gw 112.65.250.193

route add -net 112.80.0.0/13 gw 112.65.250.193

route add -net 112.88.0.0/13 gw 112.65.250.193

route add -net 112.96.0.0/15 gw 112.65.250.193

route add -net 113.0.0.0/13 gw 112.65.250.193

route add -net 113.194.0.0/15 gw 112.65.250.193

route add -net 113.200.0.0/15 gw 112.65.250.193

route add -net 113.204.0.0/14 gw 112.65.250.193

route add -net 113.224.0.0/12 gw 112.65.250.193

route add -net 113.56.0.0/15 gw 112.65.250.193

route add -net 113.58.0.0/16 gw 112.65.250.193

route add -net 113.59.0.0/17 gw 112.65.250.193

route add -net 113.8.0.0/15 gw 112.65.250.193

route add -net 114.240.0.0/12 gw 112.65.250.193

route add -net 115.46.0.0/16 gw 112.65.250.193

route add -net 115.48.0.0/12 gw 112.65.250.193

route add -net 115.85.192.0/18 gw 112.65.250.193

route add -net 116.112.0.0/14 gw 112.65.250.193

route add -net 116.116.0.0/15 gw 112.65.250.193

route add -net 116.2.0.0/15 gw 112.65.250.193

route add -net 116.95.0.0/16 gw 112.65.250.193

route add -net 117.8.0.0/13 gw 112.65.250.193

route add -net 118.212.0.0/16 gw 112.65.250.193

route add -net 118.72.0.0/13 gw 112.65.250.193

route add -net 118.80.0.0/15 gw 112.65.250.193

route add -net 119.108.0.0/15 gw 112.65.250.193

route add -net 119.112.0.0/13 gw 112.65.250.193

route add -net 119.162.0.0/15 gw 112.65.250.193

route add -net 119.164.0.0/14 gw 112.65.250.193

route add -net 119.176.0.0/12 gw 112.65.250.193

route add -net 119.248.0.0/14 gw 112.65.250.193

route add -net 119.36.0.0/16 gw 112.65.250.193

route add -net 119.39.0.0/16 gw 112.65.250.193

route add -net 119.4.0.0/14 gw 112.65.250.193

route add -net 119.48.0.0/13 gw 112.65.250.193

route add -net 119.62.0.0/16 gw 112.65.250.193

route add -net 120.0.0.0/12 gw 112.65.250.193

route add -net 120.80.0.0/13 gw 112.65.250.193

route add -net 121.16.0.0/13 gw 112.65.250.193

route add -net 121.24.0.0/14 gw 112.65.250.193

route add -net 121.28.0.0/15 gw 112.65.250.193

route add -net 121.30.0.0/16 gw 112.65.250.193

route add -net 121.31.0.0/16 gw 112.65.250.193

route add -net 122.136.0.0/13 gw 112.65.250.193

route add -net 122.156.0.0/14 gw 112.65.250.193

route add -net 122.192.0.0/14 gw 112.65.250.193

route add -net 122.96.0.0/15 gw 112.65.250.193

route add -net 123.112.0.0/12 gw 112.65.250.193

route add -net 123.128.0.0/13 gw 112.65.250.193

route add -net 123.138.0.0/15 gw 112.65.250.193

route add -net 123.144.0.0/14 gw 112.65.250.193

route add -net 123.148.0.0/16 gw 112.65.250.193

route add -net 123.152.0.0/13 gw 112.65.250.193

route add -net 123.188.0.0/14 gw 112.65.250.193

route add -net 123.232.0.0/14 gw 112.65.250.193

route add -net 123.4.0.0/14 gw 112.65.250.193

route add -net 123.8.0.0/13 gw 112.65.250.193

route add -net 124.128.0.0/13 gw 112.65.250.193

route add -net 124.160.0.0/16 gw 112.65.250.193

route add -net 124.161.0.0/16 gw 112.65.250.193

route add -net 124.162.0.0/16 gw 112.65.250.193

route add -net 124.163.0.0/16 gw 112.65.250.193

route add -net 124.164.0.0/14 gw 112.65.250.193

route add -net 124.64.0.0/15 gw 112.65.250.193

route add -net 124.66.0.0/17 gw 112.65.250.193

route add -net 124.67.0.0/16 gw 112.65.250.193

route add -net 124.88.0.0/16 gw 112.65.250.193

route add -net 124.89.0.0/17 gw 112.65.250.193

route add -net 124.89.128.0/17 gw 112.65.250.193

route add -net 124.90.0.0/15 gw 112.65.250.193

route add -net 124.92.0.0/14 gw 112.65.250.193

route add -net 125.211.0.0/16 gw 112.65.250.193

route add -net 125.32.0.0/16 gw 112.65.250.193

route add -net 125.33.0.0/16 gw 112.65.250.193

route add -net 125.34.0.0/16 gw 112.65.250.193

route add -net 125.35.0.0/17 gw 112.65.250.193

route add -net 125.35.128.0/17 gw 112.65.250.193

route add -net 125.36.0.0/14 gw 112.65.250.193

route add -net 125.40.0.0/13 gw 112.65.250.193

route add -net 175.42.0.0/15 gw 112.65.250.193

route add -net 202.102.128.0/21 gw 112.65.250.193

route add -net 202.102.136.0/21 gw 112.65.250.193

route add -net 202.102.144.0/20 gw 112.65.250.193

route add -net 202.102.224.0/21 gw 112.65.250.193

route add -net 202.102.232.0/21 gw 112.65.250.193

route add -net 202.102.240.0/20 gw 112.65.250.193

route add -net 202.106.0.0/16 gw 112.65.250.193

route add -net 202.107.0.0/17 gw 112.65.250.193

route add -net 202.108.0.0/16 gw 112.65.250.193

route add -net 202.110.0.0/18 gw 112.65.250.193

route add -net 202.110.192.0/18 gw 112.65.250.193

route add -net 202.110.64.0/18 gw 112.65.250.193

route add -net 202.111.128.0/19 gw 112.65.250.193

route add -net 202.130.224.0/19 gw 112.65.250.193

route add -net 202.38.143.0/24 gw 112.65.250.193

route add -net 202.96.0.0/18 gw 112.65.250.193

route add -net 202.96.64.0/21 gw 112.65.250.193

route add -net 202.96.72.0/21 gw 112.65.250.193

route add -net 202.96.80.0/20 gw 112.65.250.193

route add -net 202.97.128.0/18 gw 112.65.250.193

route add -net 202.97.192.0/19 gw 112.65.250.193

route add -net 202.97.224.0/21 gw 112.65.250.193

route add -net 202.97.232.0/21 gw 112.65.250.193

route add -net 202.97.240.0/20 gw 112.65.250.193

route add -net 202.98.0.0/21 gw 112.65.250.193

route add -net 202.98.8.0/21 gw 112.65.250.193

route add -net 202.99.0.0/18 gw 112.65.250.193

route add -net 202.99.112.0/20 gw 112.65.250.193

route add -net 202.99.128.0/19 gw 112.65.250.193

route add -net 202.99.160.0/21 gw 112.65.250.193

route add -net 202.99.168.0/21 gw 112.65.250.193

route add -net 202.99.176.0/20 gw 112.65.250.193

route add -net 202.99.192.0/21 gw 112.65.250.193

route add -net 202.99.200.0/21 gw 112.65.250.193

route add -net 202.99.208.0/20 gw 112.65.250.193

route add -net 202.99.224.0/21 gw 112.65.250.193

route add -net 202.99.232.0/21 gw 112.65.250.193

route add -net 202.99.240.0/20 gw 112.65.250.193

route add -net 202.99.64.0/19 gw 112.65.250.193

route add -net 202.99.96.0/21 gw 112.65.250.193

route add -net 203.93.192.0/18 gw 112.65.250.193

route add -net 203.93.64.0/18 gw 112.65.250.193

route add -net 203.93.8.0/24 gw 112.65.250.193

route add -net 210.13.0.0/18 gw 112.65.250.193

route add -net 210.13.128.0/17 gw 112.65.250.193

route add -net 210.13.64.0/18 gw 112.65.250.193

route add -net 210.14.160.0/19 gw 112.65.250.193

route add -net 210.14.192.0/19 gw 112.65.250.193

route add -net 210.15.128.0/18 gw 112.65.250.193

route add -net 210.15.32.0/19 gw 112.65.250.193

route add -net 210.15.96.0/19 gw 112.65.250.193

route add -net 210.21.0.0/17 gw 112.65.250.193

route add -net 210.51.0.0/16 gw 112.65.250.193

route add -net 210.52.128.0/17 gw 112.65.250.193

route add -net 210.53.0.0/17 gw 112.65.250.193

route add -net 210.53.128.0/17 gw 112.65.250.193

route add -net 210.74.128.0/19 gw 112.65.250.193

route add -net 210.74.96.0/19 gw 112.65.250.193

route add -net 210.78.0.0/19 gw 112.65.250.193

route add -net 210.78.160.0/19 gw 112.65.250.193

route add -net 210.78.192.0/18 gw 112.65.250.193

route add -net 210.82.0.0/15 gw 112.65.250.193

route add -net 211.144.0.0/15 gw 112.65.250.193

route add -net 211.90.0.0/15 gw 112.65.250.193

route add -net 211.92.0.0/15 gw 112.65.250.193

route add -net 211.94.0.0/15 gw 112.65.250.193

route add -net 211.96.0.0/15 gw 112.65.250.193

route add -net 218.10.0.0/16 gw 112.65.250.193

route add -net 218.104.0.0/17 gw 112.65.250.193

route add -net 218.104.128.0/19 gw 112.65.250.193

route add -net 218.104.160.0/19 gw 112.65.250.193

route add -net 218.104.192.0/21 gw 112.65.250.193

route add -net 218.104.200.0/21 gw 112.65.250.193

route add -net 218.104.208.0/20 gw 112.65.250.193

route add -net 218.104.224.0/19 gw 112.65.250.193

route add -net 218.105.0.0/16 gw 112.65.250.193

route add -net 218.106.0.0/15 gw 112.65.250.193

route add -net 218.11.0.0/16 gw 112.65.250.193

route add -net 218.12.0.0/16 gw 112.65.250.193

route add -net 218.21.128.0/17 gw 112.65.250.193

route add -net 218.24.0.0/15 gw 112.65.250.193

route add -net 218.26.0.0/16 gw 112.65.250.193

route add -net 218.27.0.0/16 gw 112.65.250.193

route add -net 218.28.0.0/15 gw 112.65.250.193

route add -net 218.56.0.0/14 gw 112.65.250.193

route add -net 218.60.0.0/15 gw 112.65.250.193

route add -net 218.67.128.0/17 gw 112.65.250.193

route add -net 218.68.0.0/15 gw 112.65.250.193

route add -net 218.7.0.0/16 gw 112.65.250.193

route add -net 218.8.0.0/15 gw 112.65.250.193

route add -net 219.154.0.0/15 gw 112.65.250.193

route add -net 219.156.0.0/15 gw 112.65.250.193

route add -net 219.158.0.0/17 gw 112.65.250.193

route add -net 219.158.128.0/17 gw 112.65.250.193

route add -net 219.159.0.0/18 gw 112.65.250.193

route add -net 220.192.0.0/15 gw 112.65.250.193

route add -net 220.194.0.0/15 gw 112.65.250.193

route add -net 220.196.0.0/14 gw 112.65.250.193

route add -net 220.200.0.0/13 gw 112.65.250.193

route add -net 220.248.0.0/14 gw 112.65.250.193

route add -net 220.252.0.0/16 gw 112.65.250.193

route add -net 221.0.0.0/15 gw 112.65.250.193

route add -net 221.10.0.0/16 gw 112.65.250.193

route add -net 221.11.0.0/17 gw 112.65.250.193

route add -net 221.11.128.0/18 gw 112.65.250.193

route add -net 221.11.192.0/19 gw 112.65.250.193

route add -net 221.11.224.0/19 gw 112.65.250.193

route add -net 221.12.0.0/17 gw 112.65.250.193

route add -net 221.12.128.0/18 gw 112.65.250.193

route add -net 221.13.0.0/18 gw 112.65.250.193

route add -net 221.13.128.0/17 gw 112.65.250.193

route add -net 221.13.64.0/19 gw 112.65.250.193

route add -net 221.13.96.0/19 gw 112.65.250.193

route add -net 221.14.0.0/15 gw 112.65.250.193

route add -net 221.192.0.0/15 gw 112.65.250.193

route add -net 221.194.0.0/16 gw 112.65.250.193

route add -net 221.195.0.0/16 gw 112.65.250.193

route add -net 221.196.0.0/15 gw 112.65.250.193

route add -net 221.198.0.0/16 gw 112.65.250.193

route add -net 221.199.0.0/19 gw 112.65.250.193

route add -net 221.199.128.0/18 gw 112.65.250.193

route add -net 221.199.192.0/20 gw 112.65.250.193

route add -net 221.199.224.0/19 gw 112.65.250.193

route add -net 221.199.32.0/20 gw 112.65.250.193

route add -net 221.199.48.0/20 gw 112.65.250.193

route add -net 221.199.64.0/18 gw 112.65.250.193

route add -net 221.2.0.0/16 gw 112.65.250.193

route add -net 221.200.0.0/14 gw 112.65.250.193

route add -net 221.204.0.0/15 gw 112.65.250.193

route add -net 221.206.0.0/16 gw 112.65.250.193

route add -net 221.207.0.0/18 gw 112.65.250.193

route add -net 221.207.128.0/17 gw 112.65.250.193

route add -net 221.207.64.0/18 gw 112.65.250.193

route add -net 221.208.0.0/14 gw 112.65.250.193

route add -net 221.212.0.0/16 gw 112.65.250.193

route add -net 221.213.0.0/16 gw 112.65.250.193

route add -net 221.214.0.0/15 gw 112.65.250.193

route add -net 221.216.0.0/13 gw 112.65.250.193

route add -net 221.3.0.0/17 gw 112.65.250.193

route add -net 221.3.128.0/17 gw 112.65.250.193

route add -net 221.4.0.0/16 gw 112.65.250.193

route add -net 221.5.0.0/17 gw 112.65.250.193

route add -net 221.5.128.0/17 gw 112.65.250.193

route add -net 221.6.0.0/16 gw 112.65.250.193

route add -net 221.7.0.0/19 gw 112.65.250.193

route add -net 221.7.128.0/17 gw 112.65.250.193

route add -net 221.7.32.0/19 gw 112.65.250.193

route add -net 221.7.64.0/19 gw 112.65.250.193

route add -net 221.7.96.0/19 gw 112.65.250.193

route add -net 221.8.0.0/15 gw 112.65.250.193

route add -net 222.128.0.0/14 gw 112.65.250.193

route add -net 222.132.0.0/14 gw 112.65.250.193

route add -net 222.136.0.0/13 gw 112.65.250.193

route add -net 222.160.0.0/15 gw 112.65.250.193

route add -net 222.162.0.0/16 gw 112.65.250.193

route add -net 222.163.0.0/19 gw 112.65.250.193

route add -net 222.163.128.0/17 gw 112.65.250.193

route add -net 222.163.32.0/19 gw 112.65.250.193

route add -net 222.163.64.0/18 gw 112.65.250.193

route add -net 27.36.0.0/14 gw 112.65.250.193

route add -net 58.144.0.0/16 gw 112.65.250.193

route add -net 58.16.0.0/16 gw 112.65.250.193

route add -net 58.17.0.0/17 gw 112.65.250.193

route add -net 58.17.128.0/17 gw 112.65.250.193

route add -net 58.18.0.0/16 gw 112.65.250.193

route add -net 58.19.0.0/16 gw 112.65.250.193

route add -net 58.20.0.0/16 gw 112.65.250.193

route add -net 58.21.0.0/16 gw 112.65.250.193

route add -net 58.22.0.0/15 gw 112.65.250.193

route add -net 58.240.0.0/15 gw 112.65.250.193

route add -net 58.242.0.0/15 gw 112.65.250.193

route add -net 58.244.0.0/15 gw 112.65.250.193

route add -net 58.246.0.0/15 gw 112.65.250.193

route add -net 58.248.0.0/13 gw 112.65.250.193

route add -net 60.0.0.0/13 gw 112.65.250.193

route add -net 60.10.0.0/16 gw 112.65.250.193

route add -net 60.11.0.0/16 gw 112.65.250.193

route add -net 60.12.0.0/16 gw 112.65.250.193

route add -net 60.13.0.0/18 gw 112.65.250.193

route add -net 60.13.128.0/17 gw 112.65.250.193

route add -net 60.13.64.0/18 gw 112.65.250.193

route add -net 60.14.0.0/15 gw 112.65.250.193

route add -net 60.16.0.0/13 gw 112.65.250.193

route add -net 60.208.0.0/13 gw 112.65.250.193

route add -net 60.216.0.0/15 gw 112.65.250.193

route add -net 60.218.0.0/15 gw 112.65.250.193

route add -net 60.220.0.0/14 gw 112.65.250.193

route add -net 60.24.0.0/14 gw 112.65.250.193

route add -net 60.28.0.0/15 gw 112.65.250.193

route add -net 60.30.0.0/16 gw 112.65.250.193

route add -net 60.31.0.0/16 gw 112.65.250.193

route add -net 60.8.0.0/15 gw 112.65.250.193

route add -net 61.133.0.0/17 gw 112.65.250.193

route add -net 61.134.128.0/18 gw 112.65.250.193

route add -net 61.134.192.0/18 gw 112.65.250.193

route add -net 61.134.96.0/19 gw 112.65.250.193

route add -net 61.135.0.0/16 gw 112.65.250.193

route add -net 61.136.64.0/18 gw 112.65.250.193

route add -net 61.137.128.0/17 gw 112.65.250.193

route add -net 61.138.0.0/18 gw 112.65.250.193

route add -net 61.138.128.0/18 gw 112.65.250.193

route add -net 61.138.64.0/18 gw 112.65.250.193

route add -net 61.139.128.0/18 gw 112.65.250.193

route add -net 61.148.0.0/15 gw 112.65.250.193

route add -net 61.156.0.0/16 gw 112.65.250.193

route add -net 61.158.0.0/17 gw 112.65.250.193

route add -net 61.158.128.0/17 gw 112.65.250.193

route add -net 61.159.0.0/18 gw 112.65.250.193

route add -net 61.161.0.0/18 gw 112.65.250.193

route add -net 61.161.128.0/17 gw 112.65.250.193

route add -net 61.162.0.0/16 gw 112.65.250.193

route add -net 61.163.0.0/16 gw 112.65.250.193

route add -net 61.167.0.0/16 gw 112.65.250.193

route add -net 61.168.0.0/16 gw 112.65.250.193

route add -net 61.176.0.0/16 gw 112.65.250.193

route add -net 61.179.0.0/16 gw 112.65.250.193

route add -net 61.180.128.0/17 gw 112.65.250.193

route add -net 61.181.0.0/16 gw 112.65.250.193

route add -net 61.182.0.0/16 gw 112.65.250.193

route add -net 61.189.0.0/17 gw 112.65.250.193

route add -net 61.240.0.0/14 gw 112.65.250.193

route add -net 61.48.0.0/14 gw 112.65.250.193

route add -net 61.52.0.0/15 gw 112.65.250.193

route add -net 61.54.0.0/16 gw 112.65.250.193

route add -net 61.55.0.0/16 gw 112.65.250.193

时间: 2024-11-08 14:43:58

linux配置双线策略的相关文章

linux防火墙iptables策略

iptables防火墙 1.实现防火墙功能需要软件来调用内核中的netfilter模块2.linux.2.6的内核中使用的软件是iptables iptables实现的功能有过滤,地址转换. 1.iptables中对于同一服务的不同规则的匹配顺序是至上往下,一旦匹配到规则则不再往下匹配,若都没有匹配上,则匹配默认规则.2.iptables中有3张表和5条链路.其中filter用于过滤,其链有INPUT,OUTPUT,FORWARD.其中nat表用于地址转换,对应的链路是   POSTROUTIN

Linux配置NTP服务器

Linux配置NTP服务器   背景 当服务器多了,时间准确与否,一致与否是个大问题.虽然这个问题总是被忽略,但是统一一致的时间是很有必要的.下面说一下在局域网内配置Linux时间服务器的方法. 配置的环境及要求: 1.假设在192.168.0.0网段内,要以IP为192.168.0.240的Linux机器时间服务器. 2.192.168.0.240服务器能上外网,能与比较权威的公网时间服务器同步 3.同网段内的其他机器每小时自动向192.168.0.240同步时间 配置方法 一.配置NTP服务

1.4 配置备份策略(Policy)

1.1 配置备份策略(Policy) 一个备份策略由四部分组成. Attributes(属性) Policy是否Active Policy类型 由此Policy产生的任务的优先级 使用的Storage Unit和Volume Pool Schedules(备份日程表) 对于自动备份,列出在此Policy中所有Client的备份时间 对于用户备份或归档,列出用户可以在何时提交任务 Backup Selections(备份文件列表) 列出所有自动备份的文件或目录: 对于用户发起的备份,不必列出,因为

Linux(二)—— Linux配置及指令

目录 Linux配置及指令 一.linux中常用软件的安装 二.主机名和网络 1.修改主机名 2.设置网络 三.关闭防火墙 1.检查防火墙是否开启 2.清除策略 3.永久关闭第一个防火墙 4.关闭第二个防火墙 四.Linux命令 1.命令组成 2.文件的分类 3.命令提示符 4.常用快捷键 5.查看帮助 6.关机重启 五.linux管理命令 1.普通文件及目录的命令 2.目录 3.普通文件 4.vim编辑 5.链接(快捷方式) 6.磁盘和文件系统 7.Raid 8.用户.组.权限 9.程序管理

Linux系统备份策略详解

由于linux系统的特殊性,获取root用户权限后,很容易把系统搞崩溃,所以系统备份是一件不容忽视的大事.得益于linux系统自身的优越性,所以系统的备份和还原操作还是相对简单的. Linux系统所有的数据都以文件的形式存在,所以备份就是直接拷贝文件;硬盘分区也被当成文件,所以可以直接克隆硬盘数据. Linux系统自带很多实用工具,比如tar.dd.rsync等,备份还原系统不需要购买或下载第三方软件. Linux系统在运行时其硬盘上的文件可以直接被覆盖,所以还原系统的时候不需要另外的引导盘.

linux配置vncserver服务

挨踢这么多年,几乎很少记录自己解决的问题,因为总感觉那些问题对于高手来说,都是小菜,所以碍于颜面,不好意思写! 后来想明白了,写下来,能帮助新手,又能帮自己做个记录,下次碰到同样问题,就不用百度google了-- 这篇就算***作吧,好了,言归正传-- 想连接某台linux服务器,方法很多,但是听说除了vnc,其他方法断开网络后,程序会中断运行,只是听说,具体是不是这样,我就不太清楚了,为了保险,还是就用vnc吧. 1.           安装vncserver 我安装linux系统的时候,没

Kali—Linux配置jdk时出现的一点问题。

jdk 本来应该是几天前就配好了的今天打开终端忽然发现一个问题. : 以及好几行悬在终端最上方. 找了找,在以下步骤里面: Kali Linux配置jdk应执行 gedit ~/.bashrc 并添加下列内容 export JAVA_HOME=/usr/local/src/jdk export CLASSPATH=/usr/local/src/jdk/libexport PATH=${JAVA_HOME}/bin:$PATH 很多习惯写代码的同学喜欢在等号前后加上空格,这就导致了无法识别标识符!

Linux 配置双机SSH信任

Linux 配置双机SSH信任 一.实现原理 使用一种被称为"公私钥"认证的方式来进行ssh登录."公私钥"认证方式简单的解释是: 首先在客户端上创建一对公私钥(公钥文件:~/.ssh/id_rsa.pub:私钥文件:~/.ssh/id_rsa),然后把公钥放到服务器上(~/.ssh/authorized_keys),自己保留好私钥.当ssh登录时,ssh程序会发送私钥去和服务器上的公钥做匹配.如果匹配成功就可以登录了. 二.实验环境 A机:TS-DEV/10.0.

linux配置java環境變量

首先先root,然後vim /etc/profile修改文件. 在最後面添加下面幾句(當然,路徑是你自己的路徑,或者JDK版本是不一樣). 之後在終端裏輸入 source /etc/profile 這樣配置文件才能立馬生效. 配置JAVA_HOME的用處的方便其他需要JDK的軟件的使用,例如tomcat. linux配置java環境變量,布布扣,bubuko.com