1 Using the Redhatlinux 9 Personal Simplified Chinese version (5GB), Mysql 3 and Mozilla 1.2.1 after installation, MYSQL 3 and Mozilla 1.2.1 have been installed in Linux. This note is aimed at the original MySQL comes with Linux, and Mysql is not installed. In order to automatically load the above software and open the necessary port when the system starts, log in and runs in the root user and runs: 1. Select the FireWall Configuration item, select the Customize item, then select the WWW (HTTP) item After determining it. This allows the system to open HTTP's 80-port feature. (You must select it) 2. Select the NetWork Configuration item to fill in the corresponding network address (eg 192.168.1.11) at the IP AddRES, fill in the corresponding mask at Netmask (eg 255.255.25 5.0) ), Determine the exit. This has a fixed IP address. 3. This note is directed to the Apache server in Linux, select the System Services item, do not select the [] httpd item, and then exit. This allows the system not automatically launch Apache software when starting next time. 4. Use Linux original mysql as a database: Select the mysqld (system database) item, select the mysqld item, and then exit. This allows the system automatically launches MySQL software when starting next time. 2 Development and application software: 1. Redhat Linux 9.0 Simplified Chinese Personal (Redhat's Linux operating system) 2. Java 2 Platform, Enterprise Edition 1.4 (Sun's Enterprise Java Application Server [included J2SE SDK 1.4.2 and Web Server Wait]) 3. MySQL version 4.0.17 (MySQL database management system) 4. MySQL Connector / J 3.0.10 (MySQL JDBC driver) 5. James 2.1.3 (Apache's E-Mail Mail Server) 6. Mozilla 1.6 (Mozilla's web browser) 7. Mysqlcc version 0.9.4 (MySQL database control center) 8. J2ME MIDP version 1.0 (J2ME mobile device outline) 9. J2ME CLDC version 1.0 (J2ME connection limited device configuration 10. J2ME Wireless Toolkit 1.0 version (J2ME wireless device development kit) 3 Main software download: 1. J2EESDK-1_4-DR-linux-evAl.bin
http://java.sun.com/j2ee/1.4/download-dr.html
Download. 2. MySQLCC-0.9.4-linux-glibc23.tar.gz
http://www.mysql.com
Download. 3. MySQL-Standard-4.0.17-PC-Linux-I686.tar.gz
http://www.mysql.com/downloads
Download. 4. MySQL-Connector-Java-3.0.10-stable.tar.gz is
http://www.mysql.com/downloads
Download. 5. Mozilla-i686-PC-Linux-gnu-1.6-sea.tar.gz
Http://www.mozilla.org download. 6. James-2.1.3.tar.gz
http://james.apache.org
Download. 4 Main software installation: 1. J2EE SDK 1.4 Installation: 1) #CP J2EESDK-1_4-DR-Linux-Eval.bin / usr / local // copies the J2EE SDK 1.4 to the / usr / local directory. 2) #CD / usr / local // Enter the directory. 3) #. / J2eesdk-1_4-dr-linux-eval.bin // Run the program, the system will automatically install it into the / OPT / SUNWAPServer directory, fill in: admin and its password, admin port: 4848, http Port: 80, https port: 1043, select "Don't Prompt for Admin User Name," If you encounter "XXXX Port May Be in Use.Specify A Different Port", indicating that this port is being used, please change to other ports. number. (Including J2SE SDK 1.4.2, Application Un One Message Queue 3.5, PointBase Server 4.6) 2. MySQL 3 Settings: Log in with root, in SETUP SYSTEM Services item, to select the mysqld item, determine it. The system will automatically start MYSQL software. #mysql_install_db // First Run: Create a MySQL Authorization Form Add: #mysql -u root mysql // Use root users to enter MySQL and open Mysql Database Mysql> Set Password For root = password ('password'); you have to enter mysql in the future: "# mysql -uroot -p password" mode. 3. MySQLCC installation: #CP mysqlcc-0.9.4-linux-glibc23.tar.gz / usr / local // copy mysqlcc 0.9.4 to the / usr / local directory. #CD / usr / local #tar -xvzf mysqlcc-0.9.4-Linux-glibc23.tar.gz // Differently extract this file and automatically generates /usr/local/mysqlcc-0.9.4-linux-glibc23 directory. // Run /usr/local/mysqlcc20-0.9.4-linux-glibc23/mysqlcc file in the KDE environment, and execute the mysql console program. #Ln -s /usr/local/mysqlcc-0.9.4-linux-glibc23 mysqlcc // Generate Connection Express Directory 4. MySQL Connector / J Installation: Just extract MySQL-Connector-Java-3.0.10-Stable.tar .gz finds the mysql-connector-java-3.0.10-stable-bin.jar file and copy it to the / OPT / SUNWAPSERVER / LIB directory. 5. James Installation: #cp james-2.1.3.tar.gz / usr / local // copies the james-2.1.2.tar.gz to the / usr / local directory.
#CD / usr / local #tar -xvzf james-2.1.3.tar.gz // Differently extract this file and automatically generates /usr/local/james-2.1.3 directories. #LN -s /usr/local/james-2.1.3 James // Generates a connection fast directory. #CD / usr / local / james / bin #chmod x run.sh // change the run.sh file properties. #CHMOD X phoenix.sh // change the phoenix.sh file properties. 5 Main software configuration: (Note: The following configuration files can only be edited with the command line to edit, remove excess space, especially the "^ @" and other characters of the row!) 1. #VI / ETC / Profile editing system environmental profile, add the following lines: PATH = $ PATH: / OPT / SUNWAPSERVER / JDK / BIN: / OPT / SUNWAPSERVER / BIN: / USR / LOCAL / JAMES / BINEXPORT PATH JAVA_HOME = / OPT / SUNWAPSERVER / JDKEXPORT Java_Home 2. #VI / ETC / Bashrc Editing System Automatic Batch Files, add the following: Run.sh // Indicates the James service when the system is self-start, pay attention: POP3 (110), SMTP (25), IMAP ( 143), // NNTP (119), Sockets (1024), Telnet (4555) cannot conflict. / OPT / SUNWAPPSERVER / BIN / Asadmin Start-Domain Domain1 // Indicates that the J2EE Application Server service is also launched when the system is self-start. // Note: Stop service / opt / sunwappserver / bin / asadmin stop-domain domain1 Note: The above configuration files can only be edited with the command line to edit, remove excess space, especially the end of the line "^ @ "And other characters! Otherwise, J2EE Application Server cannot start normally. 3. You can modify the Domain.xml and default-web.xml of the / OPT / SUNWAPSERVER / DOMAINS / DOMAIN1 / CONFIG directory: ... After installing and configuring, you need to restart Linux. When you enter Linux again, the system will automatically start J2EE Application Server, James, and MySQL, you can use Vi /opt/sunwappserver/domains/domain1/logs/server.log to view the startup situation. 6 Introduction to the main software: 1. J2EE Application Server: 1) Execute directory: / OPT / sunwappserver / bin. 2) J2se SDK directory: / opt / sunwappserver / jdk. 3) User web root directory: / OPT / sunwappserver / domains / domain1 / doch. 4) Public Class library directory: / OPT / sunwappserver / lib. 5) User Class library directory: / opt / sunwappserver / domains / domain1 / docroot / user web directory / web-inf / classes.
6) Profile: / OPT / SunwappServer / Domains / Domain1 / Config Directory Domain.xml and Default-Web.xml. 7) Store user JSP SERVLET files automatically compiled: / opt / sunwappserver / domains / domain1 / generated / jsp / j2ee-modules / default-web-module-server / org / apache / jsp / user web directory name /. 8) Super User Management Interface: http: // localhost: 4848 / asamin / index.html.
9) Notes: The J2EE Application Server needs to be restarted when there is a change in the public CLASS library. 2. Mysql: 1) Mysql Database Backup: #mysqldump Database Name [| GZIP]> Backup file name [.gz] (such as: *. Sql) 2) MySQL database recovery: #mysql -u root mysql> Create Database Database name; mysql> quit [#tar xvzf backup file name .gz] #mysql database