导航:首页 > 配服务器 > linux如何实现全局代理服务器

linux如何实现全局代理服务器

发布时间:2022-06-02 16:10:33

㈠ 如何在linux上设置全局代理

设置全局代理,方法如下:

修改 /etc/profile 文件,添加下面内容:
http_proxy=http://username:password@yourproxy:8080/
ftp_proxy=http://username:password@yourproxy:8080/
export http_proxy
export ftp_proxy

如果没有密码限制,则以上内容可以修改为以下内容:
http_proxy=http://yourproxy:8080/
ftp_proxy=http://yourproxy:8080/
export http_proxy
export ftp_proxy

㈡ 如何设置LINUX系统通过代理服务器上网

linux自带firefox
打开FireFox,编辑->首选项->常规->连接
设置FF访问因特网的方式
连接设置
手动配置代理
然后输入代理服务器IP和端口号即可。

㈢ 在Linux中可以实现代理服务器功能的软件是什么

Linux中实现代理服务器功能最常用的软件为squid,下面是源代码包安装步骤:

1.从http://www.squid-cache.org下载squid-2.2.STABLE4-src.tar.gz

2.将该文件拷贝到/usr/local目录

cpsquid-2.2.STABLE4-src.tar.gz/usr/local

3.解开该文件

tarxvzf
squid-2.2.STABLE4-src.tar.gz
#为了方便使用将目录更名为squid
mvsquid-2.2.STABLE4squid

4.进入squid目录

cdsquid

5.执行编译

./configure
#系统默认安装目录为/usr/local/squid
/configure-prefix=/directory/you/want
#指定安装目录

6.执行

makeall

7.执行安装

makeinstall

8.安装结束后,Squid的可执行文件在安装目录的bin子目录下,配置文件在etc子目录下。

㈣ linux服务器如何使用代理

不同的代理服务器设置略有 不同,具体分类操作如下:
设置HTTP及HTTPS代理
对于http及https类型的请求,可以通过设置http_proxy或。方法是export http_proxy=http://proxyaddress:port。
可以写在$HOME/.bash_profile或/etc/profile中。

设置tsocks代理
见:http://renyongjie668.blog.163.com/blog/static/16005312011824112410588/
有了tsocks代理,其实后面其他设置方式都不是很重要了,几乎都可以用tsocks来做。

设置SSH代理
同样用tsocks来实现代理。

Ubuntu中apt-get代理设置
新版的Ubuntu已经不支持export http_proxy就能给apt-get设置代理的方式了。这种方法要用到/etc/apt/文件夹下的apt.conf文件。注意: 某些情况下,系统安装过程中没有建立apt配置文件。下面的操作将视情况修改现有的配置文件或者新建配置文件。

sudo vi /etc/apt/apt.conf

在您的apt.conf文件中加入下面这行(根据你的实际情况替换yourproxyaddress和proxyport)。

Acquire::http::Proxy "http://proxyaddress:port";

如果需要用户名密码登陆:

Acquire::http::Proxy "http://username:password@proxyaddress:port";

保存apt.conf文件。(其他的协议自己可以适当修改)

㈤ linux 如何设置代理

linux设置代理linux系统设置yum,wget,rpm命令使用代理:1.Using
yum
with
a
proxyserver---------------------------------------To
enable
yum
operations
to
use
aproxy
server
you
should
first
add
the
following
parameter
to
/etc/yum.conf
proxy=http://yourproxy:8080/
where
yourproxy
is
the
name
of
the
proxy
server
you
want
to
access
and
8080
isthe
proxy
port.
If
the
server
requires
authentication
you
can
specify
the
logincredentials
like:proxy=http://username:password@yourproxy:8080/---------------------------------------2.
The
rpm
package
manager
makesuse
of
the
proxy
environment
variable.
This
can
be
set
system
wide
in
/etc/profile
or
user
specific
in
~/.bash_profile:export
http_proxy=http://yourproxy:8080/export
ftp_proxy=http://yourproxy:8080/---------------------------------------3.
To
use
wget
throug
a
proxy
serveradd
the
following
lines
to
/etc/wgetrc
http_proxy
=
http://yourproxy:8080/
ftp_proxy
=
http://yourproxy:8080/

㈥ 如何在Linux上,设置全局代理

编辑 profile
vi /etc/profile

最后加入:

http_proxy=http://ip:port

export http_proxy

保存、退出

应用设置如下:

source /etc/profile

阅读全文

与linux如何实现全局代理服务器相关的资料

热点内容
程序员那么可爱陆离穿正装 浏览:169
源码的账号密码在哪个文件 浏览:437
如何在中国农业银行app绑定银行卡 浏览:990
shopnum1多用户商城系统源码 浏览:743
红包广告平台源码 浏览:770
硬盘格式化时用的dos命令是 浏览:940
找人缓解压力 浏览:935
iphone的pdf 浏览:348
90压缩饼干怎么吃 浏览:666
php教材下载 浏览:913
什么解压密码最好 浏览:588
数据库与服务器如何连接 浏览:442
架构师需要阅读的源码 浏览:483
ch编译器 浏览:456
java必须自己写一个编译器吗 浏览:944
如何制作androidrom 浏览:476
单片机万能板怎么写入程序 浏览:27
迈锐宝xl压缩比 浏览:346
靠算法买彩票 浏览:503
程序员考核d 浏览:242