Difference between revisions of "SUNScholar/Prepare Ubuntu/S08"

From Libopedia
Jump to navigation Jump to search
m
 
(10 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
==Step 8.1 Java environment settings for other java web applications==
 
==Step 8.1 Java environment settings for other java web applications==
To setup the environment variables for other java applications (such as the Handle and SOLR servers), type the following:
+
<font color="red">'''*** To setup the environment variables for other java applications, type the following: ***'''</font>
 
  sudo nano /etc/environment
 
  sudo nano /etc/environment
  
Copy and paste the following to the bottom of the file.
+
Copy and paste the following '''to the bottom of the file'''.
 
<pre>
 
<pre>
 
JAVA_HOME="/usr/lib/jvm/default-java"
 
JAVA_HOME="/usr/lib/jvm/default-java"
Line 20: Line 20:
 
Open the following file as follows:
 
Open the following file as follows:
 
  sudo nano /etc/security/limits.conf
 
  sudo nano /etc/security/limits.conf
Add the following to the bottom of the file:
+
Add the following to '''the bottom of the file''':
 
<pre>
 
<pre>
 
*            hard      nofile          65536
 
*            hard      nofile          65536
Line 28: Line 28:
 
Save and exit the file.
 
Save and exit the file.
  
Make sure to check the files open parameter with the next computer reboot by typing the following as the root user:
+
''Make sure to check the files open parameter with the '''next computer reboot''' by typing the following as the root user:''
  
 
  ulimit -n
 
  ulimit -n
Line 34: Line 34:
 
==Step 8.3: Setup file creation permissions==
 
==Step 8.3: Setup file creation permissions==
 
  nano $HOME/.bashrc
 
  nano $HOME/.bashrc
Add the following to the bottom of the file
+
Add the following to '''the bottom of the file'''.
 
  umask 002
 
  umask 002
 +
 +
Save and exit the file.
  
 
==References==
 
==References==
Line 48: Line 50:
 
   '''[[SUNScholar/Prepare Ubuntu/S07|PREVIOUS - STEP 7]]'''
 
   '''[[SUNScholar/Prepare Ubuntu/S07|PREVIOUS - STEP 7]]'''
 
</center>
 
</center>
 +
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 23:50, 9 June 2016

 NEXT - STEP 9

Step 8. Configure the environment variables

Step 8.1 Java environment settings for other java web applications

*** To setup the environment variables for other java applications, type the following: ***

sudo nano /etc/environment

Copy and paste the following to the bottom of the file.

JAVA_HOME="/usr/lib/jvm/default-java"
JAVA_OPTS="-Djava.awt.headless=true -Xmx2048m -Xms1024m -Dfile.encoding=UTF-8"

Save and exit the file.

Step 8.2 Increase number of open files available

Open the following file as follows:

sudo nano /etc/security/limits.conf

Add the following to the bottom of the file:

*            hard       nofile          65536
*            soft       nofile          65536

Save and exit the file.

Make sure to check the files open parameter with the next computer reboot by typing the following as the root user:

ulimit -n

Step 8.3: Setup file creation permissions

nano $HOME/.bashrc

Add the following to the bottom of the file.

umask 002

Save and exit the file.

References

 PREVIOUS - STEP 7