搜索""的结果
squid开多端口代理的心得 利用squid开二级代理很方便,就是在配置文件上做点文章, 它给的那个default的配置文件看起来就头大。一般都是重新写一个。 给A校区的兄弟们开了一个代理。用的是B校区的动态ip做的父代理。 但是动态实在是有够e。不能上国外不说,还经常抽筋。 由于手头有另一个专用代理A可以上国外,于是萌发了开两个二级代理的念头。 只有一台电脑,当然只能在一个自己上开两个端口(其实后来才想到可以用认证的方法,对一个端口进来的不同的用户采用不同的的父级代理,这样squid的配置文件会稍微麻烦一点),先开始不得要领,也没有现实的例子,看见有人这样开了,问一问才知道是windows下用wingate很简单就能做到了。 wingate能想到,我想squid也应该能做到,自己慢慢捉摸吧。 基本想法是: 服务端口3128-----squid-----动态ip连接----国内访问 服务端口6666-----squid-----代理A ----国外访问 先想到的是启动两次squid,第二次手动指定另外一个配置文件给它(-f),一尝试得到的信息是Squid is already running! Process ID **** 。想一想这种方法也有够野蛮,效率和稳定两不顾,于是弃之不用。 于是开始打配置文件的主意,在google上查到论坛上关于两个端口采用不同...
Network Configuration Examples (Xen 4.1+)(Redirected from Host Configuration/Networking)Jump to: navigation, searchContents [hide] 1 Overview2 Distribution Network Configuration Examples2.1 Bridging2.1.1 Disable Netfilter on Bridges (All Distributions)2.1.2 Example Debian-style bridge configuration (e.g. Debian, Ubuntu)2.1.3 Red Hat-style bridge configuration (e.g. RHEL, Fedora, CentOS)2.2 Openvswitch2.3 Routing2.3.1 Enabling Routing (All Distributions)2.4 Network Address Translation (NAT)2.4.1 Enabling NAT (All Distributions)3 Distribution Specific Resources3.1 Debian & Ubuntu3.2 Fedora3.3 Gentoo OverviewWhen using the xl toolstack the host networking configuration is not configured by the toolstack but rather administrators are required to setup an appropriate network configuration using the tools provided by their host distribution.There are three main styles of network setup for a Xen host, bridged, routed and nat. The default and most common is bridged. From Xen 4....
[root@localhost qemu]# ./configure ERROR: DTC (libfdt) version >= 1.4.0 not present. Your options: (1) Preferred: Install the DTC (libfdt) devel package (2) Fetch the DTC submodule, using: git submodule update --init dtc解決方式git submodule update --init dtc
QEMU with Open vSwitch networkThis article is designed to show the steps needed to create a basic and minimal Open vSwitch network to be used by a QEMU virtual machines(s) managed with libvirt. This type of network provides a much more powerful switching solution than the legacy NAT and bridge forwarding solutions. NoteThis article is written with the assumption that you already understand how to create and configure a QEMU virtual machine and how to manage them using libvirt and related tools like virsh.Contents1 Context2 Background on OpenFlow and Open vSwitch3 System Setup3.1 Kernel3.2 libvirt3.3 Open vSwtich3.3.1 Startup and enable the daemons:3.4 Setup eth13.5 Setup vSwitch3.6 Setup libvirt3.7 OpenRC4 ClosingContextThere all quite a few different networking designs that can be created; but for the sake of keeping this simple we are going to work under the assumption that we are trying to configure a host OS on a computer that has 2 physical ethernet ports. The first port (eth0) i...
Varnish Dashboard 是第三方开发的基于浏览器 Varnish 监控系统,利用 Varnish Agent 实现与 Varnish 的通讯。安装简单,提供包括统计、日志、VCL和服务管理(包括重启、更新 VCL、清除 URL 等操作)。Varnish Dashboard 支持多个 Varnish 服务器,允许通过合并视图来查看信息。Dashboard:Bans:Manage Server:VCL:Logs:SetupStep 1: Install Varnish Agent 2The agent must be installed on the same server running Varnish. You can clone and compile the source code or install it using the following packages for Debian/Ubuntu and RHEL/CentOS: http://users.varnish-software.com/~kristian/agent/I recommend that you read the docs on the GitHub repo and this post: http://kly.no/posts/2013_01_22_Varnish_Agent.htmlYou may have to create a file with username and password: /etc/varnish/agent_secret. Every line of this file is a user and a password with the following format:username:password
Step 2: Download this dashboardYou can download this dashboard using one of the release packages or by using Git clone, it does not matt...
lsyncd+rsync 实现文件自动实时同步 本示例所需要的软件是:lsyncd与rsync 一般rsync软件是通过crond这支后台进行(计划任务)来实现自动同步数据,如今已有更好的开源软件来代替使用crond了,那就是 lsyncd( Live Syncing (Mirror) Daemon),它的工作原理:监视本地(rsync client)的目录,当源数据有文件或目录更新时,更新本地文件或目录到远端机器(rsync server),保持实时文件同步,但是它更新数据时需要远端rsync server运行rsync demon 一、配置环境如下 系统版本CentOS5.8 服务端:rsync(接收同步资源服务器) 客户端:lsyncd+rsync(发送资源服务器) (1)需要配置rsyncd.conf文件的一端,称为rsync server (2)不需要配置rsyncd.conf文件的一端,称为rsync client 二、服务器端安装 1. 安装rsync 2. yum install rsync 默认情况下rsync已安装检查安装 rpm –qa|grep rsync 检查rsync 运行状态 chkco...
Centos7安装OpenVPN Centos7上,安装配置OpenVPN。1、安装openvpnyum install -y openvpnyum install -y easy-rsa2、配置openvpn拷贝配置文件cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf /etc/openvpn编辑配置文件vim /etc/openvpn/server.conf主要修改以下几个配置,把前边的分号注释去掉,其中DNS配置项,改成阿里公共DNS地址。################################################## Sample OpenVPN 2.0 config file for ## multi-client server. ## ## This file is for the server side &nbs...
Centos安装桌面后在远程终端管理里面无法使用键盘和鼠标 桌面安装好以后,通过远程终端管理进去发现鼠标和键盘都是无法使用的: 这个是由于键盘和驱动的原因,改成evdev 就可以了,具体操作方法如下:1、安装 evdevyum install xorg-x11-drv-evdev 2、生成/etc/X11/xorg.conf这个文件默认是没有的,要通过Xorg -configure 命令生成一个xorg.conf.new,然后把这个文件拷贝到/etc/X11/,并且命名为xorg.conf 3、修改/etc/X11/xorg.conf,配置鼠标和键盘的驱动为 evdev 就可以了,具体配置如下: Section "InputDevice"Identifier "Keyboard0"Driver "evdev"Option "Device" "/dev/input/event3"EndSectionSection "InputDevice"Identifier "Mouse0"Driver "evdev"Option "Device" "/dev/input/event5"Option "Mode" "Absolute"EndSection 4、修改好以后重启下服务器,重新进入桌面就可以使用鼠标和键盘了。
Linux版Centos 64位配置HTTPS站点:1. 验证主机宝Linux版(Centos 64位)中已经安装openssl,并在编译时添加了对openssl模块的支持,如下图:2. 进入/a/apps/nginx-1.4.7/目录,为站点创建私钥文件和签名证书,步骤如下:3. 进入/a/apps/nginx-1.4.7/vhosts目录,新建配置文件https.conf,文件内容如下:4. 通过/etc/init.d/nginx reload 让配置生效5. 因为主机宝镜像开启了iptables防火墙,需要将https的443端口加入到防火墙中允许访问 iptables -I INPUT -p tcp --dport 443 -j ACCEPT service iptables save6. 测试可以访问https站点,如下图:
Linux中PHP如何安装curl扩展方法 如果php已经在系统编译好,后来又需要添加新的扩展。一种方式就是重新完全编译php,另一种方式就是单独编译扩展库,以extension的形式扩展。下面以安装curl扩展为例:1、下载curl安装包。(我的php是4.4.4的,下载最新的curl 7.16 不能使用,最后下载7.14的才可以,所以要注意一下版本问题)./configuremakephp要求curl的目录要有include和lib目录,并且include下要有easy.h 和curl.h两个文件,lib下要有libcurl.a。经编译后include下的文件有了,但是lib目录下没有。原来生成到lib/.libs目录下,所以要copy到lib目录。2、进入安装原php的源码目录,cd extcd curlphpize./configure --with-curl=DIRmake就会在PHPDIR/ext/curl/moudles/下生成curl.so的文件。3、复制curl.so文件到extensions的配置目录,修改php.ini就好。
最新评论