IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

终端设置代理

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

探测当前终端使用的IP

使用curl命令发包,去访问外部的站点,查看响应回来的ip,就能知道本终端的ip是什么了。

xxx@xxxMacBook-Pro ~ % curl ip.sb
xxx.xxx.xxx.69

设置代理

根据自己的shell命令解释器来进修改配置,我这里举例zsh。


sudo vim ~/.zshrc # where proxy proxy () { export http_proxy="http://127.0.0.1:1087" export https_proxy="http://127.0.0.1:1087" echo "HTTP Proxy on" } # where noproxy noproxy () { unset http_proxy unset https_proxy echo "HTTP Proxy off" }

最后让配置生效一下:source ~/.zshrc ,然后通过在当前的终端窗口输入proxy ,noproxy 打开或者关闭代理即可。注意,需要在每个终端窗口都打开一次。

打开了代理之后,同样可以使用curl ip.sb 命令查看一下是否正常代理上了。

文章永久链接:https://tech.souyunku.com/?p=22175


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(94) 打赏



未经允许不得转载:搜云库技术团队 » 终端设置代理

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367