Sometimes it is necessary to access the website from a terminal. The following environmental variables should be set correctly before accessing.
all_proxy
http_proxy
https_proxy
ftp_proxy
Demo
export https_proxy=socks://127.0.0.1:7891/
echo $https_proxy
socks://127.0.0.1:7891/
git clone https://github.com/giterlizzi/dokuwiki-template-bootstrap3.git
Cloning into 'dokuwiki-template-bootstrap3'...
remote: Enumerating objects: 11433, done.
remote: Counting objects: 100% (561/561), done.
remote: Compressing objects: 100% (232/232), done.
remote: Total 11433 (delta 333), reused 521 (delta 321), pack-reused 10872
Receiving objects: 100% (11433/11433), 14.42 MiB | 13.27 MiB/s, done.
Resolving deltas: 100% (6669/6669), done.
[Unit]
Description=Clash service
After=network.target
[Service]
ExecStart=/path/to/clash -f /path/to/config/file -d /path/to/config/directory
[Install]
WantedBy=multi-user.target
/path/to/*
should be modified to the path where these files are placed.