Missing polipo / config file in / usr / local / etc /

I use brew to install polipo through a Mac OS terminal. It seems to have been installed successfully, but I cannot find the configuration file and edit it. Can someone help me figure out the reason?

enter image description here

+4
source share
1 answer
  • The configuration file will not be created automatically. You need to get a sample configuration file. Run this command in terminal:

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

    and for banned URLs:

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

    Then restart polipo to make sure it will use the configuration file:

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

    If this caused an error Service is disabled, try this command to restart polio:

    brew services restart polipo
    

    : http://127.0.0.1:8123/polipo/config

    :

    configFile  /Users/YourUserName/.polipo Configuration file.
    

    , ~/.polipo, polipo.

  • , . /usr/local/etc/polipo/config, - /etc/polipo/config :

    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.

+8

Source: https://habr.com/ru/post/1623968/


All Articles