ccproxy网络代理服务器配置

来源:互联网 发布:手机全民k歌没有网络 编辑:程序博客网 时间:2024/05/22 12:43

1、下载地址:http://download.csdn.net/download/yjh314/10024949

2、点击账号,允许范围-》选择部分,允许开放访问代理的IP



3、点击设置,设置代理的服务IP


4、以上网络代理配置完毕,在要上网的物理机配置代理服务IP即可,例如Yum安装,可以编辑 /etc/yum.conf




5、试下安装同步时间插件:  yum install ntpdate

[root@XTYFB-CSJ20 ~]# yum install ntpdate
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.cn99.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntpdate.x86_64.0.4.2.6p5-25.el7.centos.2 将被 安装
--> 解决依赖关系完成


依赖关系解决


===============================================================================================================================================================================================
 Package                                    架构                                      版本                                                       源                                       大小
===============================================================================================================================================================================================
正在安装:
 ntpdate                                    x86_64                                    4.2.6p5-25.el7.centos.2                                    base                                     86 k


事务概要
===============================================================================================================================================================================================
安装  1 软件包


总下载量:86 k
安装大小:121 k
Is this ok [y/d/N]: y
Downloading packages:
ntpdate-4.2.6p5-25.el7.centos.2.x86_64.rpm                                                                                                                              |  86 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                                                                                                                     1/1 
  验证中      : ntpdate-4.2.6p5-25.el7.centos.2.x86_64                                                                                                                                     1/1 


已安装:
  ntpdate.x86_64 0:4.2.6p5-25.el7.centos.2                                                                                                                                                     


完毕!


6、ntpdate同步网络时间 ntpdate -u time.windows.com,会抛出以下异常:16 Oct 21:45:30 ntpdate[15848]: no server suitable for synchronization found

原因是物理机ntpdate插件没设置代理,所以上不了网,可以选择局域网的任何一台物理机即可同步相同的时间,如:

ntpdate -u 172.16.80.228

[root@jun ~]# ntpdate -u 172.16.80.228
16 Oct 21:48:56 ntpdate[15849]: step time server 172.16.80.228 offset 132.635533 sec

OK 代理服务设置完成。



原创粉丝点击