導航:首頁 > 配伺服器 > 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如何實現全局代理伺服器相關的資料

熱點內容
資料庫查詢系統源碼 瀏覽:610
php5314 瀏覽:349
完美國際安裝到哪個文件夾 瀏覽:662
什麼app可以掃一掃做題 瀏覽:532
程序員編碼論壇 瀏覽:914
淘點是什麼app 瀏覽:651
中國高等植物pdf 瀏覽:446
51單片機時間 瀏覽:174
後台如何獲取伺服器ip 瀏覽:258
單片機流水燈程序c語言 瀏覽:227
程序員第二職業掙錢 瀏覽:231
運行里怎麼輸入伺服器路徑 瀏覽:833
pythonstepwise 瀏覽:499
劉一男詞彙速記指南pdf 瀏覽:54
php認證級別 瀏覽:360
方舟編譯啥時候推送 瀏覽:1001
php手機驗證碼生成 瀏覽:667
哲學思維pdf 瀏覽:7
凌達壓縮機有限公司招聘 瀏覽:526
weblogic命令部署 瀏覽:30