传说中的BUG,静态ip配置好之后,不能重启,重启后配置不见,要重新配置。解决方法为: 编辑/etc/network/interfaces 加入 代码: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1 address是IP地址 netmask是掩码 gateway是网关 都填你自己的 再指定dns 打开/etc/resolv.conf 代码: nameserver xx.xx.xx.xx nameserver xx.xx.xx.x...
by h0ng123 - 网络技术文档中心 - 2009-05-16 21:30:28 阅读(805) 回复(0)
解压PHP后进入configure, ./configure --prefix=/usr/local/apac he2/ --with-config-file-path=/usr/local/apache2/conf 出现错误:checking libxml2 install dir... no .... configure: error: xml2-config not found.Please check your libxml2 installation. 意思是没有安装libxml2,于是从网上下载了一个libxml2-2.6.23,进入之后configure到/usr/local/libxml2-2.6.23,然后重新在PHP中执行 ./configure --prefix=/usr/loca...
作者: CoDi 出自: http://www.linuxdiyf.com 安装MySQL sudo apt-get install mysql-server 这个应该很简单了,而且我觉得大家在安装方面也没什么太大问题,所以也就不多说了,下面我们来讲讲配置。 配置MySQL 注意,在ubuntu下MySQL缺省是只允许本地访问的,如果你要其他机器也能够访问的话,那么需要改变/etc/mysql/my.cnf配置文件了!下面我们一步步地来: 默认的MySQL安装之后根用户是没有密码的,所以首先用根用户进入...
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6889/showart_481166.html
从 http://httpd.apache.org/ 得到apache_1.3.36.tar.gz,解压到/tmp cd /tmp/apache_1.3.36 ./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-shared=max --htdocsdir=/var/www && make && make install # 这里我们通过enable-module参数告诉设置脚本,我们需要启动so和rewrite模块,so模块是用来提DSO支持的apache核心模块,而rewrite模块则是用意实现地址重写的模块,由于rewrite...
作者: PostCards 出自: http://www.linuxdiyf.com ubuntu上mysql默认安装使用的字符集是latin1。 1 查看字符集支持 show character set; 2 查看字符集相关变量 show variables like "character_set%"; 3 设置默认字符集 为解决乱码问题,最简单的办法就是修改默认字符集。修改默认字符集为utf8: 找到/etc/mysql/my.cnf,在[mysqld]下加上:default-character-set=utf8 或者如果装了桌面系统,可以用mysqladmin修改启动参...