heritrix 不能运行 You may have to set the ownership of the file
来源:互联网 发布:人工智能如何硬件实现 编辑:程序博客网 时间:2024/06/18 18:05
You may have to set the ownership of the file
\learning\lucence\search\Heritrix\heritrix-1.14.4\heritrix-1.14.4\jmxremote.password
manually to yourself (Administrator) and restrict the access to read-only
当你遇到以上的错误,导致heritrix不能运行的时候,可以试试下面的方法,我用这个方法解决了:
来自于: http://docs.oracle.com/javase/6/docs/technotes/guides/management/security-windows.html
Securing a password file is done differently in the different versions of Windows XP. Solutions for both Windows XP Professional Edition and Windows XP Home Edition are provided in this appendix.
To Secure a Password File on Windows XP Professional Edition
The procedure given below will not work if you are running Windows XP Home Edition, which does not allow you to change file permissions graphically. A solution is given in To Secure a Password File on Windows XP Home Edition below.
Note - The solution using the cacls command described in To Secure a Password File on Windows XP Home Edition can also be used on Windows XP Professional Edition, as a command-line alternative to using the graphical interfaces.
- In Windows Explorer, navigate to the directory containing the jmxremote.password file.
- Right-click on the jmxremote.password file and select the Properties option.
- Select the Security tab
If you are using Windows XP Professional Edition and the computer is not part of a domain, then the Security tab will not be automatically visible. To reveal the Security tab, you must perform the following steps.
- Open Windows Explorer, and choose Folder Options from the Tools menu.
- Select the View tab and scroll to the bottom of the Advanced Settings and clear the Use Simple File Sharing check box.
- Click OK to apply the change.
- Restart Windows Explorer.
The Security tab will now be visible
- Select the Advanced button in the Security tab.
- Select the Owner tab to check if the file owner matches the user under which the Java VM is running.
- Select the Permissions tab to set the permissions.
If there are permission entries inherited from a parent directory that allow users or groups other than the owner access to the file, then clear the "Inherit from parent the permission entries that apply to child objects" checkbox.
- A dialog box will ask if the inherited permissions should be copied from the parent or removed. Press the Copy button.
- Remove all permission entries that grant access to users or groups other than the file owner.
Do this by clicking the user or group and pressing the Remove button for all users and groups except the file owner.
Now there should be a single permission entry which grants Full Control to the owner.
- Press OK to apply the file security change.
The password file is now secure and can only be accessed by the owner.
- Press OK in the jmxremote.password Properties dialog.
To Secure a Password File on Windows XP Home Edition
As stated above, Windows XP Home Edition does not allow you to set file permissions graphically. However, you can set permissions using the cacls command.
- Open a command prompt window.
- Run the following command
C:\MyPasswordFile>cacls jmxremote.password
This command displays the access control list (ACL) of the jmxremote.password file.
- Set the access rights so that only your username has read access.
When no users have been configured on the machine the default username is usually Owner, or a localized translation of Owner.
C:\MyPasswordFile>cacls jmxremote.password /P Owner:R
This command grants access to the user Owner with read-only permission, where Owner is the owner of the jmxremote.password file.
- Display the ACL again.
C:\MyPasswordFile>cacls jmxremote.password
This time, you will see that only the Owner has access to the password file.
- heritrix 不能运行 You may have to set the ownership of the file
- 运行程序报错:the file"xxx"couldn't be open because you don't have permisslion to view it
- iOS运行报错:the file couldn't be opened because you don't have permission to view it 。
- You don’t have permission to save the file “project.xcworkspace” in the folder
- just have a click the link,you may get surprise
- 13.You have executed this command to change the size of the database buffer cache:
- 125.You want to check the details of few errors that users have reported. You search for the alert l
- the file “XXX” could not be opened because you don't have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- the file “XXX” could not be opened because you don't have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- The file “***” couldn’t be opened because you don’t have permission to view it
- the file “XXX” could not be opened because you don't have permission to view it
- 解决方案:The file * couldn't be opened because you don't have permission to view it
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- the file couldn't be opened because you don't have permission to view it
- the file couldn't be opened because you don't have permission to view it 解决办法
- Spring 注解
- ssh命令
- jQueryEasyUI Messager基本使用
- CCAction继承关系结构图
- xdebug安装
- heritrix 不能运行 You may have to set the ownership of the file
- 为PetaPoco添加Fill方法
- 怪怪的房子
- 黑马程序员_集合Collection
- ldrFile支持(PE ELF EX STUFF等各种格式支持)
- WordPress+Nginx+proxy取得真实IP
- 在Ubuntu桌面显示“计算机”图标
- https://github.com/spring-projects/spring-framework/releases/tag/v3.0.0.RC1
- toupper函数