service iptables stop iptables是linux自带的一个防火墙
netstat -tln 查看端口
grant select,insert,update,delete on *.* to root@"%" Identified by "123456"; 这是mysql中赐予某用户最高权限的命令。
grant all privileges on *.* to root@"%" Identified by "密码" WITH GRANT OPTION; 整个写法是这样的
uname -a 查看系统
mount /dev/cdrom /mnt/cdrom/ 挂光盘,/mnt/cdrom/是要挂的路径 unmount /mnt/cdrom
scp -r oracle@192.168.54.120:./oracle10201 ./ 系统之间传东西
du -hs src 看目录大小,src是目录
cp -a /opt/* /mnt/temp 包含属性的copy
/etc/rc.d/init.d/network restart 重启网络服务
echo "nameserver 202.202.202.20" >>/etc/resolv.conf 修改DNS
route add ddefault gw 102.168.0.254 网关修改为:102.168.0.254
ifconfig eth0 102.168.0.1 netmask 255.255.255.0 网卡eth0 IP修改为:102.168.0.1
/etc/init.d/iptables stop关闭防火墙
转载于:https://my.oschina.net/tomsu/blog/1304