The previous time is intended to start researching Tiger. Because of its own system is Windows, and the 1.4 environment is more stable, so I feel that the development environment of JDK1.5 is configured under Linux. After entering your own RedHat9, I saw that the last login time was September 2004, and suddenly I found a lot of orders I didn't remember. (Khan ...) Hurry to find Linux's entry book to recall the basic operations and commands of Linux. I hope to be the same as the Linux rookie, and it is best to master some common orders, in the future, can be paid in the system. If you encounter any order, you don't remember it, use help Man XXX. Let me talk about it first. Since I have been using a Windows system, many of the information is saved in the Windows partition. Mounting NTFS partitions in Linux is too complicated to me, so I use a U disk. I think there will be many friends like me, I will first talk about the use of the U disk. Generally, the U disk is inserted into the USB interface, which is in the / dev / sda or / dev / sda1 directory, we need to use the mount / dev / sda / mnt / usb, USB is our new folder before this, so that the U disk content It's all in this directory. Using a U disk unloading command is umount / mnt / usb. My current environment is: J2SDK 1.5.0_01 Eclipse 3.1M4 myeclipse 3.8.4beta Tomcat 5.5.7 mysql 4.1.10
The Linux system and the Windows system are different. The installation files under Linux are mostly RPM formats and BIN formats, and the compressed files are generally zip formats and tar.gz format. Here I don't want to say more installed commands and some environment variables, because there are many online information, I am also referring to online information, I just want some questions I have encountered when I installed configuration and some of you The doubts that may encounter when configuring. (All installations below are to do in the root user, because more configuration files involved)
The first is JDK, this is the most critical, Sun's website has two form installation versions, and the format is bin, one is to perform installation, one is executing to extract the RPM file, then use rpm Installed. The former will generate a JDK directory directly in the current directory, the latter is installed in the default /usr/java/jdk1.5.0_01 folder, here I recommend the latter, because using this default directory can reduce a lot of later trouble. Install JDK, we have to configure environment variables. Similar to Windows configuration system variables and user variables, Linux can also configure environment variables for all users. If it is for a user, add the export command in /Home/Username/.bash_profile, where username is the user name, .bash_profile is a configuration file, this file is a hidden file to use LS -LA to see. I have directly modified the / etc / profile configured to set the environment variable for all users. The specific command is to use export, I don't specifically. Here I want to explain two points: Reference a variable is $ PATH, and each path is used: (colon). After adding the export statement, I will restart the machine to take effect. I am not sure, because I don't have a restart. Check if the configuration is successful, you can see if the path is correct in Echo $ ClassPath. There is no problem with the path. Java -Version Views whether the JDK is configured!
It is best to confirm that the JDK configuration is successful before installing other software, because other things are on the JDK. Start installing tomcat, my installation file is TAR.GZ format, using the tar command will directly decompress the current directory, then you can copy Tomcat to any place you want to put. Modify the Tomcat directory /bin.startup.sh file, configure the environment variable such as Catalina_home with an export statement. After modify saving, enter ./startup.sh ,tomcat is started! Then you can see the cute cat in the browser. Below is Eclipse, you must pay attention when choosing the Eclipse version, as if there is only 3.1m4 to support JDK1.5. And note that the Eclipse used by RedHat9 should be the GTK version, so we downloaded is Eclipse-SDK-3.1m4-linux-gtk.zip. Use the unzip command to extract the file to the current directory, then enter ./eclipse launched. Like Windows, we need to set the default JRE. In Window -> -> Preferences-> Java-> Installed Jres, we can see the JRE below the default path, so if we use RPM installation JDK is unnecessary to modify, and you can avoid the trouble of finding JRE. It is also necessary to modify Window-> Preferences-> Java-> Compiler-> Compiler Compliance Level, select 5.0 in the drop-down box, so our JDK environment is JDK1.5.
MyECLIPSE is a powerful J2EE difference that does not need any other plug-ins for it to install it. The latest version is to use 3.8.4beta version, which can support struts1.2 and hibernate2.1. Its installation file is bin, and the installation is exactly the same as the Windows installation, specifying the Eclipse installation path can be installed automatically. Installed, we need to configure Tomcat, this is the same as Windows, I will not get it out. Then you can start our JDK1.5 trip. :)
If you need to use the database, I personally recommend mysql, easy to operate, small and light, and the function is not behind. At www.mysql.org, we download to mature MySQL4.1.10 and JDBC driver orgjt.mm.mm.mysql.driver. Need to note that mysql includes two tar.gz files, one is a ServerD one is a client, for us It is necessary to install it. After installing the default directory, enter the command / usr / bin / mysqladmin -u root to launch the MySQL service, then we can use mysql -u root -p to log in. Check if the default port of MySQL is listening, we can use the command netstat -na to observe the 3306 port. There is no problem with the installation, we want to introduce the default directory structure of MySQL, which is very important for us to manage the database later. 1, database directory / var / lib / mysql / 2, configuration file /usr/share/mysql (Mysql.server command, configuration file) 3, related command / usr / bin (mysqladmin mysqldump, etc.) 4, start script / etc /rc.d/init.d/ (Launch Script File MySQL ") May this time you have a My.ini configuration file inside Windows? In Linux, this configuration file is existing, but you must first handle it. There are several My - *. CNF files in the / usr / share / mysql / directory, this is the configuration file. What we need to do is copying any file to the / etc folder and modify the name to my.cnf. This way we can set the parameters of MySQL with Windows. Here I will introduce this, there is no specific commands and statements in the text, those can be found online, I hope this article is a bit helpful to everyone. :)