df -h 查看硬盘
free -m 查看内存
cat /proc/cpuinfo 查看cpu信息
vi /etc/passwd 查看linux系统账号信息
创建账号及密码权限
grant all privileges on *.* to 'admin'@'%' identified by 'admin';
查看防火墙
iptables -nL
防火墙关闭
service iptables stop;
设置权限账号及密码
grant all on *.* to 'root'@'localhost' identified by 'root' with grant option;
flush privileges;
永久关闭防火墙
chkconfig iptables off
chkconfig iptables on
查看防火墙运行级别
chkconfig --list iptables
3 5 是off开机就不启动 反之就是启动