1.打开Ubuntu的/etc/network/interfaces文件 .默认内容如下 auto lo iface lo inet loopback 2.如果以DHCP方式配置网卡,则改为:auto eth0 iface eth0 inet dhcp也可以在命令行下直接输入下面的命令来获取地址sudo dhclient eth0 3.如果你想配置静态IP地址,你需要编辑/etc/network/interfaces,并输入以下几行(假设你的网卡是eth0) sudo vi /etc/netwo…
Refer: http://wenku.baidu.com/link?url=DtrbhO0A393hg8kOWKX0XYuZtSC8Iu0occn8NF1pYcUwNzlaSq5qXCQoNEBDMP5yTakMepoP_ZFheNu9j0MRnlF138wWctprLyiWGGaVl__ 1.在/etc/network/interfaces中修改eth0网络配置信息 # interfaces(5) file used by ifup(8) and ifdown(8)# auto lo# if…
1.用Linux自带的命令dd测试硬盘IO,如下------------------------------------写: [root@server102 ~]# time dd count= of=/tmp/1Gb.file + records in + records out bytes ( MB/s real 0m2.375s user 0m0.079s sys 0m2.028s 读: [root@server102 ~]# time dd if=/tmp/1Gb.file bs=64k…
1.创建数据库,帐号及授权 create database testdb; CREATE USER 'rusking'@'%' IDENTIFIED BY '12345678'; CREATE USER 'rusking'@'%' IDENTIFIED WITH mysql_native_password BY '12345678';GRANT ALL ON testdb.* TO 'rusking'@'%' WITH GRANT OPTION; flush privileges; 2.登录My…