寻觅生命中的那一片浅草......

每日存档 六月 20th, 2009

Debian下改IP

下载的是debian-500-i386-netinst.iso,安装好后,默认可以root登录,尝试过用普通用户登录,但输入sudo时说没有这个命令,先用root登录吧
IP是DHCP得到的,不方便,想改为静态的

改IP

# vi /etc/network/interfaces
将iface eth0 inet dhcp
修改为:
iface eth0 inet static
address 192.168.0.13
netmask 255.255.255.0
gateway 192.168.0.159

auto eth0

保存退出

重启网络
# /etc/init.d/networking restart

参考文章:http://blog.chinaunix.net/u1/50685/showart_427694.html

spine的configure: error: Cannot find MySQL headers

有朋友在ubuntu上安装Cacti的spine,configure时,提示
configure: error: Cannot find MySQL headers.  Use –with-mysql= to specify non-default path.

记得上次在CentOS上安装也出现过这个错误,yum -y install mysql-devel就可以了

然后告诉朋友,要他安装mysql-devel,结果输入sudo apt-get install mysql-devel

提示发现没有这个包

Google了下

发现在ubuntu上应该安装libmysqlclient15-dev

sudo apt-get install libmysqlclient15-dev

2009年六月
« 5月   7月 »
1234567
891011121314
15161718192021
22232425262728
2930