本文首发在 这里
CentOS 7.x
查看系统发行版本
cat /etc/redhat-release
修改主机名
hostnamectl set-hostname xxx
修改时区
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Extra Packages for Enterprise Linux
yum install epel-release
Nginx
systemctl reload nginx
curl
--data-urlencode "key=value"
--header "Content-Type:application/x-www-form-urlencoded"
lsof
yum install lsof
lsof -i | grep ^sshd
split
split -b 20M output.log
chown
chown -R mysql:mysql /home/work/mysql
fuser
yum install psmisc
fuser -m /home/work
tar exclude
tar -zcf config.tar.gz config --exclude=ip
tar salt
tar -zcf - hello.txt | openssl des3 -salt -k pwd -out hello.tar.gz
openssl des3 -d -k pwd -salt -in hel