/ usr / local / etc /中缺少polipo / config文件 [英] missing polipo/config file in /usr/local/etc/

查看:108
本文介绍了/ usr / local / etc /中缺少polipo / config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用brew通过Mac OS终端安装polipo。似乎安装成功,但是我找不到配置文件并进行编辑。有人可以帮我找出原因吗?

I use brew to install polipo through Mac OS terminal. It seems successfully install, but I can not find the config file and edit it.Can anyone help me figure out the reason?

推荐答案


  • 配置文件不会自动创建。您需要获取示例配置文件。在终端中运行以下命令:

    • The config file will not be created automatically. You need to get sample config file. Run this command in Terminal:

      curl -o ~/.polipo https://raw.githubusercontent.com/jech/polipo/master/config.sample
      

      以及禁止访问的网址:

      curl -o ~/.polipo-forbidden https://raw.githubusercontent.com/jech/polipo/master/forbidden.sample
      

      然后重新启动polipo以确保它将使用配置文件:

      Then restart polipo to ensure that it will use the config file:

      launchctl unload /usr/local/opt/polipo/homebrew.mxcl.polipo.plist
      launchctl load /usr/local/opt/polipo/homebrew.mxcl.polipo.plist
      

      如果产生了服务已禁用错误,请尝试此操作重新启动小儿麻痹症的命令:

      If it produced Service is disabled error, try this command to restart polio:

      brew services restart polipo
      

      现在在浏览器中打开此地址:
      http://127.0.0.1:8123/polipo/config

      Now open this address in your browser: http://127.0.0.1:8123/polipo/config

      您应该在以下位置看到此行顶部:

      You should see this line at the top:

      configFile  /Users/YourUserName/.polipo Configuration file.
      

      如果是这样,则需要修改〜/ .polipo 配置polipo实例。

      If so, you need to modify ~/.polipo to configure your polipo instance.

      不建议使用另一种方法。您可以在 / usr / local / etc / polipo / config 中创建配置文件,然后创建到 / etc / polipo / config 的软链接。 code>与以下命令:

      There is another way that is not recommended. You can make your config file at /usr/local/etc/polipo/config and then create soft link to /etc/polipo/config with these commands:

      mkdir /usr/local/etc/polipo/
      curl -o /usr/local/etc/polipo/config https://raw.githubusercontent.com/jech/polipo/master/config.sample
      sudo ln -sfv /usr/local/etc/polipo/config /etc/polipo/config
      

      然后重新启动polipo并确保您的配置文件位置正确。您可以在 / usr / local / etc / polipo / config 中修改配置文件。

      Then restart polipo and ensure that your config file location is correct. You can modify config file at /usr/local/etc/polipo/config.

      这篇关于/ usr / local / etc /中缺少polipo / config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆