Submitted by admin on 2009, February 27, 11:38 AM
新装系统,在语言设置里既然是空的?一个都没有,但确实是存在的,因为可以切换,可输入,只是默认安装得太多,不删一些,实在麻烦。在想,可能是安装时的问题,因为在安装过程中,有些文件读不了,跳过了。
后安装了个搜狗拼音输入法,可以删,作用还真大,哈哈
后安装office2003,提示 安装程序包的语言不受系统支持,郁闷,想想,也肯定是上面的原因。后GG一下,找到下面的解决方法。然后就把所有的问题都给解决了。真爽。换了台比较好的机器,4G内存,不过CPU不是太高,还是很爽。
出现这种问题时,很显然是操作系统没有安装东亚语言包。进入控制面板,启动“区域和语言选项”,您会发现“区域选项”中的“标准和格式”中没有“中文(中国)”,这时您应选择“语言”页,将“为东亚语言安装文件”选上,再点击“应用”或“确定”按钮,系统会提示您插入WinXP安装盘,主要工作是将WinXP安装盘中的i386的Lang目录中的东亚语言包复制到系统中,重新启动后,您会发现“区域选项”中的“标准和格式”有了“中文(中国)”,现在可以安装office2003了。
windows | 评论:0
| Trackbacks:0
| 阅读:1373
Submitted by admin on 2009, February 20, 12:44 PM
./configure --prefix=/usr/local/phpa --with-apxs2=/usr/local/httpd20/bin/apxs --with-mysql=/usr/local/mysql --with-mcrypt=/usr --with-gd=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-zlib --with-freetype-dir=/usr --with-iconv --enable-mbstring --enable-ftp
提示
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/webserver/httpd20/bin/apxs follows
/usr/local/webserver/httpd20/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared ob
ject file: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/local/webserver/httpd20/bin/httpd'..
configure: error: Aborting
运行 ldd /usr/local/webserver/httpd20/bin/httpd
提示找不到
libiconv.so.2 => not found
查找 libiconv.so.2 ,并复制到 httpd20/lib下,编译成功
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 suppo
rt while your server is Apache 2. Please use the appropiate switch --with-apxs2
把--with-apxs 改为 --with-apxs2
记得比较早以前,在apache2时是要加2的,但之前的好一段时间,似乎都没加也一样可以.有点糊涂了.
configure: error: Unable to find gd.h anywhere under /usr
安装gd-devel
yum install gd-devel
ext/iconv/.libs/iconv.o: In function `_php_iconv_strlen':
/root/php-5.2.8/ext/iconv/iconv.c:603: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:626: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:660: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_string':
/root/php-5.2.8/ext/iconv/iconv.c:441: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:453: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:467: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:478: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_strpos':
/root/php-5.2.8/ext/iconv/iconv.c:851: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:879: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:993: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_appendl':
/root/php-5.2.8/ext/iconv/iconv.c:348: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:385: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `_php_iconv_substr':
/root/php-5.2.8/ext/iconv/iconv.c:723: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:747: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:802: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:806: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_decode':
/root/php-5.2.8/ext/iconv/iconv.c:1354: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:1465: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:1468: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:1823: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:1826: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_dtor':
/root/php-5.2.8/ext/iconv/iconv.c:2465: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function `_php_iconv_mime_encode':
/root/php-5.2.8/ext/iconv/iconv.c:1043: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:1057: undefined reference to `libiconv_open'
/root/php-5.2.8/ext/iconv/iconv.c:1316: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:1176: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:1128: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:1160: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close'
/root/php-5.2.8/ext/iconv/iconv.c:1228: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:1259: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:1303: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/root/php-5.2.8/ext/iconv/iconv.c:2615: undefined reference to `libiconv'
/root/php-5.2.8/ext/iconv/iconv.c:2537: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/php-5.2.8/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
apache/web | 评论:0
| Trackbacks:0
| 阅读:2929
Submitted by admin on 2009, February 18, 2:46 PM
一直是用apache,也早早就听说过nginx的性能是如何如何的优越,却也一直没有亲自测试过.
最近有一台机的负载好大,CPU的资源,基本上是用完.
后用了nginx来试,而且,也把原来的PHP程序换成了CGI(因为这台机的功能,代码都很简单),这个nginx的编译,也是优化了CGI的编译的.速度确实快了好多.
主要原因,一是用nginx,且用了专门优化了CGI的,代码也换了,而且,对访问方式也作了一些调整
记录一些数据:
所有连接 开始连接 正在连接 结束连接
apache 15万 2-4K (2-5K) (120K)
nginx 10万 1K 60K 70K
有些值相差是比较大,我想这和我的设置时间有关
apache的连接时间都很短,而nginx的是apache的10倍差不多
不过从测试的结果来看,nginx的响应上,确实比apache快得多.
不过,流量或连接大到一定大的时候.nginx会直接丢掉,而apache等待的时间会长一点
所以,用nginx时,会丢掉一连接,从一些数据统计中,可以看到
硬件配置,双至强3.0,4G内存
linux | 评论:0
| Trackbacks:0
| 阅读:1059
Submitted by admin on 2009, February 14, 11:07 AM
./configure --prefix=/www/servers/php --with-apxs2=/www/servers/httpd20/bin/apxs --with-mcrypt=/usr --with-gd=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-zlib --with-freetype-dir=/usr --with-mysql=/www/servers/mysql --with-iconv --enable-mbstring --enable-ftp
configure: error: libjpeg.(a|so) not found
ln -sf libjpeg.so.62.0.0 libjpeg.so
configure: error: libpng.(a|so) not found.
yum install libpng-devel
linux | 评论:0
| Trackbacks:0
| 阅读:1887
Submitted by admin on 2009, February 5, 5:34 PM
一
mkdir -p /storage/kickstart_build/isolinux/CentOS
mkdir -p /storage/kickstart_build/isolinux/ks
mkdir -p /storage/kickstart_build/isolinux/image
mkdir -p /storage/kickstart_build/isolinux/repodata
mkdir /storage/kickstart_build/all_rpms
cp -rp /media/isolinux/* /storage/kickstart_build/isolinux
cp /media/.discinfo /storage/kickstart_build/isolinux
cp -rp /media/repodata/comps.xml /storage/kickstart_build
cp -rp /media/CentOS/* /storage/kickstart_build/all_rpms
cd /storage/kickstart_build
chmod +x pare.pl
cd /storage/kickstart_build/isolinux/CentOS
/storage/kickstart_build/pare.pl /storage/kickstart_build/all_rpms i386
cd /storage/kickstart_build/isolinux/CentOS
mkdir /tmp/testdb
rpm --initdb --dbpath /tmp/testdb
rpm --test --dbpath /tmp/testdb -Uvh *.rpm
cd /storage/kickstart_build/isolinux
declare -x discinfo=`head -1 .discinfo`
createrepo -u "media://$discinfo" -g /storage/kickstart_build/comps.xml .
cd /storage/kickstart_build
mkisofs -o MYOS.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/
二
1 安装一个简洁的系统
2 安装 anaconda,anaconda-runtime
3 mount,mkdir /centos,cp光盘内所有到/centos
4 剪裁软件包,可根据install.log,放到 /centos/centos,也可直接替换CentOS
5 cd /centos,createrepo -g repodata/coms.xml . 执行两次
6 cp anaconda-ks.cfg ks.cfg
vi isolinux.cfg
default linux > default linux ks=cdrom:/ks.cfg
7 make iso
mkisofs -o MYOS.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T centos/
linux | 评论:0
| Trackbacks:0
| 阅读:1980
Submitted by admin on 2009, February 4, 2:46 PM
运行perl程序时出现: bad interpreter: No such file or directory 这样的错误提示.
原因:这是在windows下通过写字板或其他编辑工具编写的perl程序,windows环境下每行的结束符是CRLF(Carriage-Return, Line-Feed). 在linux下结束符却是LF,所以每行多了一个CR串.
处理:通过以下脚本对每行结束符进行替换
#!/usr/bin/perl
die "Usage: $0 < files >\n" unless @ARGV;
for $file (@ARGV)
{
open IN, $file or die "$0: Cannot open $file for input!\n";
my @lines = <IN>;
close IN;
open OUT, "> $file" or die "$0: Cannot open $file for output!\n";
s/\r$// for @lines;
print OUT for @lines;
}
linux | 评论:0
| Trackbacks:0
| 阅读:1832
Submitted by admin on 2009, February 3, 9:55 AM
在mysql表损坏时,用phpmyadmin or mysqlcheck 等修复,都提示 Table is already up to date.但数据表仍无法正常使用.
myisamchk --safe-recover db/table.MYI
mysql/db | 评论:0
| Trackbacks:0
| 阅读:1313