温馨提示×

Debian上phpstorm如何设置代理

小樊
57
2025-08-18 10:57:27
栏目: 编程语言

在Debian上设置PhpStorm代理有以下两种常用方法:

  • 通过系统环境变量设置:打开终端,编辑/etc/environment文件,添加http_proxyhttps_proxy等环境变量,格式为http_proxy="http://proxy.example.com:8080",若需身份验证则添加用户名和密码,如http_proxy="http://username:password@proxy.example.com:8080"。保存后注销重新登录使设置生效。
  • 通过PhpStorm界面设置:打开PhpStorm,进入File > Settings(或用快捷键Ctrl+Alt+S),在左侧导航栏选Appearance & Behavior > System Settings > HTTP Proxy,选择Manual proxy configuration,在相应字段输入代理服务器地址、端口,需认证则勾选Proxy authentication并输入用户名和密码,最后点击OK保存。

0