The original use of Tomcat in Linux does not use the newly created user created by the non-ROOT permission, but may encounter a situation in which to start under this user identity After the project, close the SSH tool, the project can not be accessed, so you need to switch to root to execute, but the following error will occur, resulting in the project can not be started! The error is as follows:
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program
The JAVA_HOME path is not found, the following changes need to be made:
Found to start The directory where the path is located:
cd bin/vi catalina.sh
Add the following information:
export JAVA_HOME=/home/gongzi/http/jdk1.6.0_26export JRE_HOME=/home/gongzi/http/jdk1. The 6.0_26/jre
file can start blank area, as shown below:
Try again, and you need to pay attention. If you are deploying Tomcat for the first time, you need to edit it. Bashrc This file, method:
Enter the root directory:
vi .bashrc
Add content:
set JAVA_HOME=/home/gongzi/http/jdk1.6.0_26export JAVA_HOMEset PATH=$ JAVA_HOME/bin: $PATHexport PATHset CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport CLASSPATH
Be careful of your own installation path!
End.
Requirement Description Set SNAT policy using iptables Make hosts on 192.168.100.0/24 network segmen
(1) Ifconfig command The first type uses the ifconfig command to configure the ip
Will the Linux server crash? Of course, I have been exposed to a certain type of server. After inst
You all know what an IP address is, right? They are assigned to devices on the network to represent
CentOS 6.X Installation Guide With Screenshots
Batch replacement of file contents under Linux system
CentOS failed to start /dev/VolGroup00/LogVol00: UNEXPECTED INCONSIS
Linux sed command learning experience
Linux system security optimization in several directions
Design and Implementation of Linux-based Cluster Management System
Crontab command using basic tutorial
Getting Started with Linux Programming - Threading
Win8 upgrade to Win8.1 black screen, blue screen solution
Win7 sleep state can also maintain the method of downloading files
What should I do if I can't output sound when I reinstall the system front audio?
What can I do if Win10 cannot install fonts?
How to set the time of multiple time zones in Win10 system?
Love editing video coloring skills tutorial
Windows10 system download win10 preview version official download tutorial
[Video] Win10 Build 9926 Getting Started Video with the iso image download
How to disable Windows 8.1 to automatically update to Windows 10