大多数的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 改变到指定的目录,并且包含下列文件:
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 改变到指定的目录,并且包含下列文件:
原因
服务器提供的递归查询的最大数量,导致不能提供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.
服务器提供的递归查询的最大数量,导致不能提供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.