Install apache + tomcat (VMware) under Solaris

xiaoxiao2021-03-06  108

Installing Apache under Solaris Tomcat (VMWare) Author: curson /2004.08.29 preface nonsense but some use: Tomcat is the Sun and Apache cooperation, made out of JSP Server, supports Servlet and JSP.Tomcat itself can be used as Web Server, when treatment When the static page, Tomcat is not as fast as Apache, is not as configurable, strong. Apache is powerful, efficient, but does not support JSP and servlet, so usually, to integrate them, let them Apache handles the static page, and gives the request for the dynamic page to Tomcat processing. Play its own advantages. Apache can transfer the request to Tomcat according to the URL by loading the integration module and settings in Apache. Apache and Tomcat jointly work, you must also have a connector to link them .Connector is important for performance, the convenience of configuration, which is currently jk1.x, jk2, mod_webapp three connectors can be used .jk Amazing .jk2 is an improvement in JK1.x, which is more new. These three Connector's configuration methods are large. Be sure to pay attention to the integration method of others. In addition, Tomcat is written with Java, so your system must have JDK or JRE. The operating system is Solaris9, the version of the version is Apache 2.0.47; Tomcat 5.0.27; JK2 2.0.4; J2SDK 1.4.2_05, this article is installed under VMware4.0, not working under the real machine, please pay attention to 1, let's download to use software 2, use the upload software to transfer the download package to the TMP directory httpd-2.0.47.tar.gzjakarta-tomcat-5.0.27.tar.gz libiconv-1.8-sol9-intel-local.gz (not used) Under the transfer to the TMP directory, TMP is a temporary directory without user permissions, can be uploaded directly, then open the terminal under VMware, put the upload package to the directory you want to install.

The directory installed in this article is installed under / usr / local. The installation, pay attention to the installation: Be sure to have the "INABLE-SO load SO module, which is integrated to use. Gzip -d httpd-2.0.47 .tar.gz tar xvf httpd-2.0.47.tar cd httpd-2.0.47 ./configure - with-layout = apache2 -prefix = / path to install directory -enable-so make make install, Apache installation completion My installation directory is / usr / local / apahce2 modified Apache's httpd.conf servername name offer, if you have the following errors when you install, refer to this box below, if you don't appear or not, This can jump process configure: error: No acceptable c compiler found in $ PATHSEE `config.log 'for more details.configure failed for srclib / apr This reason is because you didn't have a GCC compiler before installation, first view you There is no /usr/local/lib/libiconv.so.2 file in the machine, if you don't have trouble, download this package, install, download libiconv-1.8-sol9-intel-local.gz (with It's ok.) Gunzip libiconv-1.8-sol9-intel-local.gzpkgadd -d libiconv-1.8-sol9-intel-local Please install GCC-3.4.1-Sol9-Intel-local.gzgunzip GCC-3.4.1-Sol9- Intel-local.gzpkgadd -d GCC-3.4.1-Sol9-Intel-localRM GCC-2.95.3-Sol8-Intel-localcd / usr / ucbmv cc cc.origln -s / usr / local / bin / gcc cc if this If you are not easy to use, you can't resolve it, then you can repeat 3 operations should not have an error to add the following environment variable Path = / bin: / sbin: / USR / BIN: / USR / local / bin: / usr / ccs / bin; Export Path 4, next is the startup problem 5, install the JDK to enter / usr / local / apache2 / bin execution ./apachectl start Start Apache (./apachectl stop) If successful, you can see the APCHE's default home page http: // or if you can use 127.0 in your local machine installation. 0.1 (HTTPD -L can list the module that has been loaded) Java is SUN development, so it is pre-installed on the OS of the Java in the House. Since the JDK packet under VMware is not included under VMware If you want to upgrade or re-install, please refer to other document 6. Install Tomcat 7, unpack the downloaded package and install it before installing Tomcat: java_home = / usr / j2se classpath = / usr / J2SE / LIB: / USR / J2SE / JRE / LIB (this is for Solaris9, Solaris8 /usR/JAVA1.2;

转载请注明原文地址:https://www.9cbs.com/read-104888.html

New Post(0)