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
sed -i "s|show_force_bind();||g" /www/server/panel/BTPanel/static/js/index.js && \ | |
sed -i "s|if not public.is_bind():||g" /www/server/panel/BTPanel/__init__.py && \ | |
sed -i "s|return redirect('/bind',302)||g" /www/server/panel/BTPanel/__init__.py | |
# 执行完毕后重启 bt 1 |
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
添加端口 | |
# firewall-cmd --zone=public --add-port=6022/tcp --permanent | |
# firewall-cmd --zone=public --add-port=6022/udp --permanent | |
删除端口 | |
# firewall-cmd --zone=public --remove-port=6022/tcp --permanent | |
# firewall-cmd --zone=public --remove-port=6022/udp --permanent | |
之后运行firewall-cmd --reload或firewall-cmd --complete-reload重启就ok了 |
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
{ | |
"config": { | |
"chainId": 33, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"nonce": "0x0000000000000033", | |
"timestamp": "0x0", | |
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", |
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
# zip -rP abc#123 test.zip test.txt | |
-P abc#123 是加密密码 | |
-r 递归,将指定目录下的所有文件和子目录一并处理 | |
test.zip 是生成的压缩文件 | |
test.txt 是被压缩的文件 | |
zip [参数] <压缩包> <源文件> |