分页: 10/30 第一页 上页 5 6 7 8 9 10 11 12 13 14 下页 最后页 [ 显示模式: 摘要 | 列表 ]
1、安装jdk
sudo apt-get install sun-java6-jdk
2、安装Eclipse
sudo apt-get install eclipse
3、安装pydev
下载:http://downloads.sourceforge.net/project/pydev/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip?use_mirror=ncu并解压
运行Eclipse->Help->software update->Find and install->search for new features to install->new local site..->选择解压目录,搞定。
4、sudo apt-get install eclipse-cdt
新建一个C++工程:
file-->new-->project-->C++-->managed make C++ project (选这个不用自己写make file)
代码提示:
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.3.3
C_INCLUDE_PATH: /usr/include

用jar更新包中的类文件 不指定

root , 2009/10/26 00:20 , JAVA , 评论(0) , 阅读(20369) , Via 本站原创
大多数的jar包的创建、更新都在Eclipse中去完成了,今天在Linux没有Eclipase的环境,还是乖乖用命令行了。
jar文件:/home/resin.jar
需更新包中com/caucho/server/port/Port.class类文件
方法1
jar uf resin.jar com/caucho/server/port/Port.class
要求是必须知道jar包的结构要非常熟悉,可以使用:jar tf resin.jar来查看。

方法2
解压resin.jar->覆盖相应类文件->再打包(jar cvf resin.jar com)

jar详细用法
用法:jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...
选项:
-c 创建新的存档
-t 列出存档内容的列表
-x 展开存档中的命名的(或所有的〕文件
-u 更新已存在的存档
-v 生成详细输出到标准输出上
-f 指定存档文件名
-m 包含来自标明文件的标明信息
-0 只存储方式;未用ZIP压缩格式
-M 不产生所有项的清单(manifest〕文件
-i 为指定的jar文件产生索引信息
-C 改变到指定的目录,并且包含下列文件:
Tags:
原因
服务器提供的递归查询的最大数量,导致不能提供DNS解析服务。
解决方法
在/etc/named.conf文件中的“options”中加入下面一行信息:
recursive-clients 1000000;
然后重新启动named即可
DNS and Bind的相关的内容
引用

Limiting the number of clientsBIND 9 gives you the ability to restrict the number of clients your name server will serve concurrently. You can apply a limit to the number of recursive clients (resolvers plus name servers using your name server as a forwarder) with the recursive-clients substatement:
options {
recursive-clients 10;
};
The default limit is 1000. If you find your name server refusing recursive queries and logging, as shown by an error message like this one:
Sep 22 02:26:11 terminator named[13979]: client 192.249.249.151#1677: no more
recursive clients: quota reached
you may want to increase the limit. Conversely, if you find your name server struggling to keep up with the deluge of recursive queries it receives, you could lower the limit.
You can also apply a limit to the number of concurrent TCP connections your name server will process (for zone transfers and TCP-based queries) with the tcp-clients substatement. TCP connections consume considerably more resources than UDP because the host needs to track the state of the TCP connection. The default limit is 100.
Tags: ,

解决:dns has no NS records 不指定

root , 2009/09/22 00:15 , DNS , 评论(0) , 阅读(23703) , Via 本站原创
参加文章
http://blog.tianya.cn/blogger/post_show.asp?idWriter=571320&Key=834795970&BlogID=311462&PostID=14425741
配置完毕运行:
/usr/sbin/named -u named -gc /etc/named.conf

提示
引用

...................
Nov 27 13:17:58 dns named[1966]: zone localhost.zone/IN: has no NS records
Nov 27 13:17:58 dns named[1966]: zone named.local/IN: has no NS records
Nov 27 13:17:58 dns named[1966]: zone hk.hn/IN: has no NS records
...................

引用

解决方法:
原因为直接copy web上的配置文件,配置文件中的NS行没有空格或tab,添加上一个tab就可以了。
如"IN NS localhost".换成" IN NS localhost."即可。
Tags: ,

给php添加iconv模块 不指定

root , 2009/09/20 00:12 , PHP , 评论(0) , 阅读(19367) , Via 本站原创
./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-curl --with-gd --enable-gd-native-ttf --with-apxs2=/usr/local/apache/bin/apxs --enable-sockets --with-iconv
make时提示:
引用

.....................................................
ext/iconv/.libs/iconv.o(.text+0x1738): In function `zif_iconv_mime_encode':
/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1017: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x1756):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1031: undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o(.text+0x1993):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1290: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x19ad):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1293: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x1b01):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1102: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1b33):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1134: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1b5e):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1150: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1e10):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1202: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x1e3c):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1233: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x207f):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:1277: more undefined references to `libiconv' follow
ext/iconv/.libs/iconv.o(.text+0x2c08): In function `php_iconv_stream_filter_dtor':
/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2393: undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o(.text+0x2cf2): In function `php_iconv_stream_filter_append_bucket':
/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2543: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x2d34):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2543: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x2de7):/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2465: undefined reference to `libiconv'
ext/iconv/.libs/iconv.o(.text+0x30e2): In function `php_iconv_stream_filter_factory_create':
/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2419: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Tags:

部署ntop平台 不指定

root , 2009/09/15 00:05 , Linux , 评论(0) , 阅读(19917) , Via 本站原创
下载软件包
引用

wget http://oss.oetiker.ch/rrdtool/pub/libs/libart_lgpl-2.3.17.tar.gz
wget http://oss.oetiker.ch/rrdtool/pub/libs/freetype-2.3.5.tar.gz
wget http://oss.oetiker.ch/rrdtool/pub/libs/libpng-1.2.18.tar.gz

安装
引用

tar -zxvf libart_lgpl-2.3.17.tar.gz
cd libart_lgpl-2.3.17
./configure
make;make install
cd
tar -zxvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure
make ;make install
cd
tar -zxvf libpng-1.2.18.tar.gz
libpng-1.2.18
./configure
make ;make install

cp -r libart-2.0/ /usr/include/libart-2.0/
cp -r freetype2/ /usr/include/freetype2/
cp -r libpng12/ /usr/include/libpng12/

wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.27.tar.gz
tar -zxvf rrdtool-1.2.27.tar.gz
cd rrdtool-1.2.27
ls
./configure --prefix=/usr/local/rrdtool
make && make install
Tags:
MySQL Workbench的主要功能包括:
基于Cairo 的图形渲染,可以将内容输出到OpenGL、Win32、X11、Quartz、PostScript、PDF等多种目标上
可视化的表、视图、存储进程/函数和外键
实现数据库到SQL脚本的逆向工程
数据库/模型的同步
导出SQL创建的脚本
导入DBDesigner4的模型
支持MySQL5的特性
可选的图示记号
点击在新窗口中浏览此图片

curl 实用操作 不指定

root , 2009/08/28 00:02 , Linux , 评论(0) , 阅读(18256) , Via 本站原创
1、开启gzip请求
curl -I http://www.sina.com.cn/ -H Accept-Encoding:gzip,defalte

2、监控网页的响应时间
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http://www.kklinux.com"

3. 监控站点可用性
curl -o /dev/null -s -w %{http_code} "http://www.kklinux.com"

4、以http1.0协议请求(默认为http1.1)
curl -0 ..............
Tags:
分页: 10/30 第一页 上页 5 6 7 8 9 10 11 12 13 14 下页 最后页 [ 显示模式: 摘要 | 列表 ]