shell脚本
DreamLee0201/script: shell脚本 (github.com)
python脚本
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
安装pip:python get-pip.py
pip官方源:https://pypi.python.org/simple
PyPI · The Python Package Index
1./etc/profile
2./etc/bashrc
3.~/.profile
4.~/.bash_login
5.~/.bash_profile
6.~/.bashrc
7.~/.bash_logout
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_x3.2_SC_UTF8.zip
https://dl.discuz.chat/dzq_latest_install.zip
wget -c https://nginx.org/download/nginx-1.12.0.tar.gz
.sh >/dev/null 2>&1
sh脚本加密
加密:gzexe a.sh;shc -T -f l.sh
解密:gzexe -d a.sh;
# 最快压缩:upx -1 l.sh
# 最强压缩:upx -9 l.sh
准备ansible管理及其
1.选择yum自动化安装,阿里云yum,epel源,前提就得配置好
yum install epel-release -y
yum install ansible libselinux-python -y
2.检查ansible软件安装情况
rpm -ql ansible|grep -E '^/etc|^/usr/bin'
ansible --version