1
如何使Oracle Java 7与setcap cap_net_bind_service + ep一起使用
我正在尝试授予Java可执行文件在Linux上打开1024以下端口的权限。这是设置 /home/test/java 包含Oracle Server JRE 7.0.25 CentOS的6.4 这是getcap返回的内容 [test@centos6 java]$ pwd /home/test/java [test@centos6 java]$ getcap bin/java bin/java = cap_net_bind_service+ep [test@centos6 java]$ getcap jre/bin/java jre/bin/java = cap_net_bind_service+ep 尝试执行Java会出现以下错误。 [test@centos6 java]$ bin/java bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory [test@centos6 java]$ jre/bin/java …