wdc63
V2EX  ›  问与答

Centos7 如何让开机自启动脚本走全局代理设置

  •  
  •   wdc63 · Aug 5, 2018 · 3418 views
    This topic created in 3014 days ago, the information mentioned may be changed or developed.
    发现修改 /etc/profile 添加全局代理仅对登陆后的访问有效
    export http_proxy=XXX.XXX.XXX.XXX:XXXX
    export https_proxy=XXX.XXX.XXX.XXX:XXXX
    但在 rc.local 中的自启动脚本无法使用该设置,请问各位大神如何让开机自启动脚本走代理。
    5 replies  •  2018-08-07 11:42:31 +08:00
    iceheart
    iceheart
    Aug 5, 2018 via Android❤️1
    1
    rc.local 第一行运行 export http_proxy=xxxxx
    wdc63
    wdc63
    OP
    Aug 5, 2018
    2
    @iceheart 非常感谢,我先试试。
    wdc63
    wdc63
    OP
    Aug 5, 2018
    3
    @iceheart 有效!!!感谢。
    akkkkk77
    akkkkk77
    Aug 6, 2018
    4
    我是想了解 Centos7 配置好了 Shadowsocks
    如何设置能每次开启 centos7 自动启动 shadowsocks 服务?
    wangfei324017
    wangfei324017
    Aug 7, 2018 via iPhone
    5
    @akkkkk77 好像是,systemctl enable xxx.service,参考 http://teddysun.com/486.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2727 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 13:31 · PVG 21:31 · LAX 05:31 · JFK 08:31
    ♥ Do have faith in what you're doing.