标签:tab stop 设置 comment strong eve net 常用命令 源地址
# yum install bash-completion -y  \\centos  命令补全
# iftop \\网络IO
# iotop \\磁盘IO
# top  \\cpu利用率
# free -m  \\内存使用率
# df -Bg  \\分区使用率
# ethtool eth0 \\查看网卡
# screen \\会话管理 https://www.ibm.com/developerworks/cn/linux/l-cn-screen/
# nmon  \\性能测试  http://nmon.sourceforge.net/pmwiki.phpmysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "root";
\\开启root远程登录
mysql> CREATE DATABASE DBNAME;  \\创建数据库
mysql> GRANT ALL PRIVILEGES ON DBNAME.* TO ‘USERNAME‘@‘localhost‘ IDENTIFIED BY ‘USERPASS‘;
\\创建用户名并赋予数据库权限
# mysql_secure_installation  \\初始化设置root密码等service iptables save
\\保存
iptables -F  
\\清空所有规则
iptables -F -t nat  
\\清空nat表
iptables -t nat  -L -n  
\\查看nat表
iptables -L -n --line-number   
\\查看防火墙规则
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j MASQUERADE
  
\\源地址转换 把10.0.0.0/24 转换为 eth0的接口地址
iptables -A FORWARD -s 10.100.0.0/24 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1200  
\\更改tcp MTU 最大传输单元
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
\\运行tcp22端口
# systemctl stop firewalld.service
# systemctl disable firewalld.service
# yum install iptables-services
# systemctl enable iptables
# systemctl start iptablesrsync rsync -auvrtzopgP --progress --delete  --exclude-from=exclude.list SRC DST
\\保留原文件属性并详细输出 删除那些DST中SRC没有的文件touch README
git add README 
git commit -m ‘first commit‘
git push origin master标签:tab stop 设置 comment strong eve net 常用命令 源地址
原文地址:http://www.cnblogs.com/37yan/p/6632037.html