This file contains 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
# Ubuntu | |
sudo apt-get -y install git gcc make libpcap-dev | |
git clone https://github.com/robertdavidgraham/masscan | |
cd masscan/ | |
make | |
sudo make install |
This file contains 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
忽略抛出的异常: | |
常用的写法: | |
try: | |
os.remove('somefile.tmp') | |
except OSError: | |
pass | |
This file contains 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
1 [user] | |
2 email = '' | |
3 name = '' | |
4 emal = '' | |
5 [core] | |
6 excludesfile = ~/.gitignore_global | |
7 [difftool "sourcetree"] | |
8 cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
9 path = |
This file contains 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
所有的操作都是在root权限下进行 | |
硬件环境 | |
一台master | |
内存: 14G | |
操作系统 ubuntu 16.04 xenial | |
硬盘: 500G |
This file contains 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
1. 卸载Cloudera-Manager | |
sudo /usr/share/cmf/uninstall-cloudera-manager.sh 一直选择Yes 就好 | |
卸载完成后,它会问你是否要将database里的数据清理,选择Yes | |
2. 如果没有uninstall-cloudera-manager.sh |
This file contains 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
upstream back_server{ | |
ip_hash; | |
server 127.0.0.1:8000; | |
} | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} |
This file contains 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/sh | |
# install PPA | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
# update and install | |
sudo apt update | |
sudo apt install python3.8 python3.8-dev python3.8-venv | |
# setup alternatives |
OlderNewer