java.policy

来自「JAVA分布式程序学习的课件(全英文)」· POLICY 代码 · 共 27 行

POLICY
27
字号
grant {
   permission java.net.SocketPermission "*:1099", 
      "connect, accept, resolve";
// This allows RMI clients to contact the RMIRegistry of any host

   permission java.net.SocketPermission "*:1024-65535", 
      "connect, accept, resolve";
// This allows RMI clients to make network connections to the public
// ports on any host
// If you start the RMIregistry on a port in this range, this will help
//  to get around the resolve access violation.

   permission java.net.SocketPermission "localhost:1099", 
      "connect, resolve";
   permission java.net.SocketPermission "129.65.242.5:1024-",
      "connect, accept";

// For some reason it is necessary for some people to have the above
// statements to explicitly allow connection to/from falcon.

   permission java.net.SocketPermission "*:80", 
      "connect";
// This allows connection to the default web server on any host - 
// needed for stub downloading, among other things.
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?