Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

2.8. Running on a Solaris Operating System Installation


Red Hat Enterprise Web Server consists of Apache Httpd and Apache Tomcat and the set of components needed to run them. These components can be run with the following users and groups who are created after installation:
Running Tomcat version 5 or 6

In order to run Tomcat on the Solaris operating system, some service configuration files will need manual editing.

Editing the Tomcat service entails uncommenting and setting the JAVA_HOME variable to the desired JDK in the configuration file. The configuration file can be found at:
For Tomcat 5:
/opt/redhat/ews/etc/sysconfig/tomcat5
Copy to Clipboard Toggle word wrap
For Tomcat 6:
/opt/redhat/ews/etc/sysconfig/tomcat6
Copy to Clipboard Toggle word wrap
To run Tomcat 5 or 6, the following command must be run as root:
For Tomcat 5:
sbin/tomcat5 start
Copy to Clipboard Toggle word wrap
For Tomcat 6:
sbin/tomcat6 start
Copy to Clipboard Toggle word wrap
By running one of the above commands, the configuration file is read and the user and group are changed to that of the tomcat user account before the catalina.sh script is executed.
The catalina.sh script file can be found within:
For Tomcat 5:
/opt/redhat/ews/share/tomcat5/bin
Copy to Clipboard Toggle word wrap
For Tomcat 6:
/opt/redhat/ews/share/tomcat6/bin
Copy to Clipboard Toggle word wrap
To stop Tomcat, one of the following commands can be executed:
For Tomcat 5:
sbin/tomcat5 stop
Copy to Clipboard Toggle word wrap
For Tomcat 6:
sbin/tomcat6 stop
Copy to Clipboard Toggle word wrap
By default, tomcat-native is automatically added to the LD_LIBRARY_PATH and -Djava.library.path during Tomcat startup. The catalina.sh script detects the running JVM version and adds the /opt/redhat/ews/lib path (/opt/redhat/ews/lib64 for 64 bit JVM) to the library path.
To run Tomcat as a service, use the provided scripts within the /opt/redhat/ews/etc/init.d directory. The following commands can be used to copy the necessary scripts:
For Tomcat 5:
cp /opt/redhat/ews/etc/init.d/tomcat6 /etc/rc3.d/S70tomcat5
cp /opt/redhat/ews/etc/init.d/tomcat6 /etc/rcS.d/K20tomcat5
Copy to Clipboard Toggle word wrap
For Tomcat 6:
cp /opt/redhat/ews/etc/init.d/tomcat6 /etc/rc3.d/S70tomcat6
cp /opt/redhat/ews/etc/init.d/tomcat6 /etc/rcS.d/K20tomcat6
Copy to Clipboard Toggle word wrap
For information on how to choose the init level numbers, consult your Solaris operating system 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.
Running the HTTP Server

Apache httpd configuration files are located inside the /opt/redhat/ews/etc/httpd directory. By default all supported modules are loaded and enabled, so it is advised that you edit the httpd.conf file and disable the modules you don't need.

Starting the HTTP server is performed using the provided apachectl script located inside the /opt/redhat/ews/sbin directory. The apachectl script uses the configuration script, where you can edit and select various startup parameters, including the running of mpm. The file used is /opt/redhat/ews/etc/sysconfig/httpd
To start the HTTP Server, use the following command:
sbin/apachectl start
Copy to Clipboard Toggle word wrap
To stop the HTTP Server, use the following command:
sbin/apachectl stop
Copy to Clipboard Toggle word wrap
If you want your server to continue running automatically after a system reboot, a call to the apachectl script should be added to your system startup files.

Note

For complete documentation on how to start and stop the HTTP Server, refer to the files, docs/httpd/invoking.html and docs/httpd/stopping.html respectively.
Running the mod_jk

Running mod_jk on the Solaris operating system is the same as running the package on Red Hat Enterprise Linux installed via zip. For detailed instructions see Running the mod_jk

Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat