Last active
December 6, 2017 10:30
-
-
Save holmeszyx/48ba473091ade9570a62f9de44a399b5 to your computer and use it in GitHub Desktop.
cow 配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /home/holmes/My/bash/http_proxy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=/home/holmes/My/cow | |
true > ${DIR}/log.log | |
nohup ${DIR}/cow -request -logFile ${DIR}/log.log >> ${DIR}/log.log 2>&1 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s $(pwd)/cow_launch.sh coo | |
rm ~/bin/cow | |
mv coo ~/bin/cow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_http_proxy() { | |
export http_proxy=http://127.0.0.1:7777 | |
export https_proxy=http://127.0.0.1:7777 | |
export HTTP_PROXY=http://127.0.0.1:7777 | |
export HTTPS_PROXY=http://127.0.0.1:7777 | |
} | |
unset_http_proxy() { | |
unset http_proxy | |
unset https_proxy | |
unset HTTP_PROXY | |
unset HTTPS_PROXY | |
} | |
export -f set_http_proxy | |
export -f unset_http_proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment