zhao-sun.com

December 13, 2004

Killing the Five Myths Against Linux

Filed under: Computer — blogadmin @ 12:32 pm

By Mark Rais, author of the new book Linux For the Rest of Us 2nd Edition.

Over the past few years, I have tried to focus almost exclusively on helping small companies and inquisitive users move to Linux. I realize that much of the hesitation to apply Linux in the business and home setting extends from five core myths. Yes, it¡¯s true that some people hesitate because they adore their Windows environment. But most users I have worked with tend to shy away from trying out Linux simply because they believe a myth.

In response to their concerns, and because more and more new and inquisitive users desire to try Linux but remain hesitant, I document these core five myths and put an end to the shameless ritual of attacking something that works.
(more…)

December 12, 2004

jakarta-tomcat-connectors, Apache-Tomcat connector

Filed under: Computer — blogadmin @ 4:27 am


    The jakarta-tomcat-connectors binary download doesn’t work as expected.So, I download the src and build myself.

  • install jakarta-tomcat-4.1.24. download http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/bin/jakarta-tomcat-4.1.24.tar.gzand install it.

  • installi httpd-2.0.47.tar.gz. download http://www.apache.org/dist/httpd/httpd-2.0.47.tar.gz and install it.

  • go http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/, and download file jakarta-tomcat-connectors-4.1.24-src.tar.gz

  • untar jakarta-tomcat-connectors-4.1.24-src.tar.gz

  • go under jakarta-tomcat-connectors-4.1.24-src/util/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/coyote/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/http11/, run “ant”

  • go under jakarta-tomcat-connectors-4.1.24-src/jk/, run “export CLASSPATH=/usr/local/jakarta-tomcat/common/lib/servlet.jar” and “ant”

  • under jakarta-tomcat-connectors-4.1.24-src/jk/, edit build.xml, comment out the line ““, and run “ant native”. This will build .so files for apache2. (It mayfail, but all the necessary .so are built already.)

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/conf/workers2.properties to /usr/local/apache2/conf/, and add the following at the end in workser2.properties file:

    [uri:/examples/jsp/*]
    info=Example webapp in the default context.
    context=/examples/jsp/*
    debug=0

    [uri:/examples/servlets/*]
    info=Example webapp in the default context.
    context=/examples/servlets/*
    debug=0

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/build/jk2/apache2/mod_jk2.so to /usr/local/apache2.0.46/modules/

  • copy jakarta-tomcat-connectors-4.1.24-src/jk/build/jk2/jni/libjkjni.so to /usr/local/apache2.0.46/modules/

  • edit /usr/local/apache2/conf/httpd.conf, add the line:

    LoadModule jk2_module modules/mod_jk2.so

  • start Tomcat and Apache, “apachectl -k restart”

  • try with http://localhost/examples/, and make sure that jsp and servlet files are working

Powered by WordPress