Alfresco Documentation
Published on Alfresco Documentation (https://docs.alfresco.com)

Home > Alfresco One 4.2.8 > Reference > Frequently occurring tasks

Frequently occurring tasks

This section describes tasks that are frequently used or referred to in this guide.
  • Opening a Windows command prompt [1] You may need to run and edit scripts in a command prompt when installing on a Windows-based system.
  • Adding folder paths to the Windows path variable [2] You may need to add folder paths to the Windows path variable when installing on a Windows-based system.
  • Changing the default shell (Unix/Linux/Solaris) for shell scripts [3]
  • Setting file limits for Linux [4] When running Alfresco on Red Hat Linux, if you encounter a "Too many open files" error message, you must increase the file limits setting.
Parent topic: Reference [5]

Opening a Windows command prompt

You may need to run and edit scripts in a command prompt when installing on a Windows-based system.

  1. On the Windows task bar, click Start > Run.
  2. In the Run dialog box, type cmd.

    Run dialog box
  3. Click OK.

    The Run dialog box closes and a command prompt opens.

    Command prompt dialog

Parent topic: Frequently occurring tasks [6]

Adding folder paths to the Windows path variable

You may need to add folder paths to the Windows path variable when installing on a Windows-based system.

  1. On the Windows desktop, right-click My Computer.
  2. In the pop-up menu, click Properties.
  3. In the System Properties window, click the Advanced tab, and then click Environment Variables.
  4. In the System Variables window, highlight Path, and click Edit.
  5. In the Edit System Variables window, insert the cursor at the end of the Variable value field.
  6. If the last character is not a semi-colon (;), add one.
  7. After the final semi-colon, type the full path to the file you want to find.

    For example: path C:\jdk

  8. Click OK in each open window.

    The new path will be used the next time a command prompt is opened, or a service is started.

Parent topic: Frequently occurring tasks [6]

Changing the default shell (Unix/Linux/Solaris) for shell scripts

When you run Alfresco on the Unix, Linux, or Solaris operating systems, the default shell is sh. You can edit the alfresco.sh file to change to your preferred shell.
  1. Open the alfresco.sh file.

    These steps also apply to any shell script, for example: apply_amps.sh or deploy_start.sh.

  2. Edit the shell command to specify your preferred shell.

    For example, change the #!/bin/sh line to #!/bin/bash.

  3. Save the alfresco.sh file.
Parent topic: Frequently occurring tasks [6]

Setting file limits for Linux

When running Alfresco on Red Hat Linux, if you encounter a "Too many open files" error message, you must increase the file limits setting.
These steps assumes that Alfresco is running as the alfresco user.
  1. Edit the following file:

    /etc/security/limits.conf

  2. Add the following settings:

    alfresco soft nofile 4096
    alfresco hard nofile 65536

    This sets the normal number of file handles available to the alfresco user to be 4096. This is known as the soft limit.

  3. As the alfresco user, set a system-level setting for Linux, up to the hard limit, using the following command:

    ulimit -n 8192

Parent topic: Frequently occurring tasks [6]

Source URL: https://docs.alfresco.com/4.2/concepts/fot.html

Links:
[1] https://docs.alfresco.com/../tasks/fot-opendos.html
[2] https://docs.alfresco.com/../tasks/fot-addpath.html
[3] https://docs.alfresco.com/../tasks/fot-change-shell.html
[4] https://docs.alfresco.com/../tasks/fot-linux-openfiles.html
[5] https://docs.alfresco.com/../concepts/ch-reference.html
[6] https://docs.alfresco.com/../concepts/fot.html