You may want to run Alfresco in read-only mode, for example, if you are using
Alfresco for Solr to track in order to maintain indexes.
To set Alfresco to read-only mode, use one of the following methods:
- Using the alfresco-global.properties file
- Using a JMX client, such as JConsole
Using the alfresco-global.properties file
The server.allowWrite property specifies that the repository will allow write operations. If set to false, the repository is in read-only mode.- Open the alfresco-global.properties file.
- Add the following property:
server.allowWrite=false
- Save the file.
- Restart the Alfresco server.
Using a JMX client, such as JConsole
- Login to JConsole.
- Using the MBean tab, go to JMX MBeans > Alfresco > Configuration > sysAdmin > Attributes.
- Set the value of the server.allowWrite=false attribute to read-only.
- Click Refresh.
Follow these steps to check if Alfresco is set to read-only mode or not:
- Go to the Alfresco Admin Console.
- Under General, click System Settings.
- Under Alfresco Content Services Repository Settings, check the value of Server Allow Writes.