此内容没有您所选择的语言版本。
5.5. Running Enterprise Web Server
			After the installation is complete, you can run the required Enterprise Web Server components.
		
5.5.1. Running Tomcat
复制链接链接已复制到粘贴板!
				Tomcat can be run either in the foreground as a program or in the background as a service.
			
Important
					We strongly recomend to run tomcat as a service (refer to Section 5.5.1.2, “Running Tomcat as a Service”). Note that this is the only supported running method.
				
5.5.1.1. Running Tomcat as a Program
复制链接链接已复制到粘贴板!
					If you want to run Tomcat as a program, use either the 
tomcat[5,6] script in the sbin directory or the catalina script in the lib directory:
				- To start Tomcat with the tomcat script, run the following command as the root user with the respective Tomcat version (5or6):The system reads the configuration file and changes to the user and group of the tomcat user account (that is, Tomcat is always run under the tomcat user). By default,/opt/redhat/ews/sbin/tomcat<VERSION> start /opt/redhat/ews/sbin/tomcat<VERSION> startCopy to Clipboard Copied! Toggle word wrap Toggle overflow tomcat-nativeis automatically added to theLD_LIBRARY_PATHand-Djava.library.pathduring Tomcat startup.
- To start Tomcat with thecatalina.shscript, run the following command with the respective Tomcat version (5or6) :The/opt/redhat/ews/share/tomcat<VERSION>/bin/catalina.sh /opt/redhat/ews/share/tomcat<VERSION>/bin/catalina.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow catalina.shscript detects the running JVM version and adds the/opt/redhat/ews/lib/path (/opt/redhat/ews/lib64for 64 bit JVM) to the library path.
5.5.1.2. Running Tomcat as a Service
复制链接链接已复制到粘贴板!
					To run Tomcat as a service you can use either the Tomcat script located in the 
init.d or you can create and use your own system daemon script with jsvc or tanukiwrapper.
				
					To run Tomcat as a service, create symbolic links to the provided Tomcat scripts using the following command: 
 
Copy to Clipboard
Copied!
 
 
Toggle word wrap
Toggle overflow
 
 
				
ln -s /opt/redhat/ews/etc/init.d/tomcat<VERSION> /etc/rc3.d/S70tomcat<VERSION> ln -s /opt/redhat/ews/etc/init.d/tomcat<VERSION> /etc/rcS.d/K20tomcat<VERSION>
ln -s /opt/redhat/ews/etc/init.d/tomcat<VERSION> /etc/rc3.d/S70tomcat<VERSION>
ln -s /opt/redhat/ews/etc/init.d/tomcat<VERSION> /etc/rcS.d/K20tomcat<VERSION>
					Define the 
init level numbers (for information on how define init level numbers consult your Solaris documentation). The preferred method of service management is through the Solaris Service Management Facility. In order to read more about this facility, consult the smf(5) manual.