--------------------------------------------------------------------------------------------------------------- ---JDK0: Download jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html1: Uninstall (root user) 1.0: Query the installed jdk# rpm-qa|grep jdk ***# rpm-qa|grep java ***1.1: Remove by name (-E for delete,-nodeps to prevent the JDK from associating with the program, causing the deletion to fail!) # RPM-E-nodeps***1.2: Run java-version again, if prompted-bash:java-version:command not found do not continue with the following scenario, the JDK is removed successfully. 1.3: Manually delete the folder (-F means delete the entire folder and subdirectories) # rm-f/usr/bin/java # rm-f/usr/bin/javac # rm-f/etc/alternatives/java # rm-f/etc/alter Natives/javac2: Install (Root user) 2.1: Add permissions to each user # CHOMD +x jdk_*.*.*.rpm2.2: Install jdk# RPM-IVH jdk_*.*.*.rpm2.3: Modify the following configuration file |--# CD/ Switch to root directory |--# CD ECT profile directory |--# vi./profile modify/etc/profile file (global All users) |--#打开profile后, press I to enter edit mode, add at the end: #set Java Environmentexport java_home=/usr/share/jdk1.7.0_60export path= $JAVA _home/bin: $PATHexport classpath=.: $JAVA _home/ Lib/dt.jar: $JAVA _home/lib/tools.jar|--#按catl +c into normall mode, enter #wq save and close |--# find-name. Bash_profile Find Bash_profiLe location./skel/.bash_profile|--# vi./skel/.bash_profile. Modify the. bash_profile file (using these environment variables for a user right) |--#打开profile后, press I to enter edit mode, Add at the end: Export java_home=/usr/java/jdk1.7.0_60# First confirm if your JDK is also this directory export path= $JAVA _home/bin: $PATHexport classpath=.:$ Java_home/lib/dt.jar: $JAVA _home/lib/tools.jar|--#按catl +c into normall mode, enter #wq save and close |--#source/etc/ The profile executes after 2.4: test [[email protected] ~]# vim hello.javapublic class hello{public static void Main (string[] args) { System.out.println ("Hello World");}} [[email protected] ~]# javac hello.java[[email protected] ~]# java hellohello World3: More details/HTTP// www.2cto.com/os/201211/171035. HTML------------------------------------------------------------------------------------------------------------------Tom CAT0::HTTP://TOMCAT.APACHE.ORG/DOWNLOAD-70.CGI1: Decompression tomcat#unzip xxx.zip#zip decompression #tar-zxvf xxx.tar.gx# Tar decompression 2: Then move Tomcat to/usr/java/tomcat[version];(personal advice) #mv-RF tomcat_x.x.x/usr/java/tomcat[version]3: Configuring the Tomcat environment (optional) #vim/etc/profile= #在末尾加入如下配置export Tomcat_home=/usr/javA/tomcat7/binexport catalina_home=/usr/java/tomcat7# Its purpose: can be executed in any directory./shutdown.sh or./STARTUP.SH4: Test access:/HTTP localhost:80805: Then you can package the Web project as a zip and upload the project to the server by PSCP xx [email protected]://xx//xx] in the window cmd. Then to the server decompression, and then restart Tomcat, you can run .... Howl 5: Detailed reference: Http://blog.sina.com.cn/s/blog_ 866c5a5d0101cn1l.html---------------------------------------------------------------------------------------------------- --------------MySql0: Download site: http://dev.mysql.com/downloads/mysql/5.1.html1: Install server[[email protected] ~]# rpm -IVH xxx.emp;2: Install client[[email protected] ~]# rpm-ivh xxx.emp;3:mysql Important directory |--database directory [[email protected] ~]#/ var/lib/mysql|--configuration file [[[Email protected] ~]#/usr/share/mysql (mysql.server and configuration files) |--related commands [[email protected ] ~]#/usr/bin/(mysqladmin|mysqldump) |--startup script [[email protected] ~]#/etc/rc.d/init.d (startup script file MySQL directory) 4: Start mysql[ [email protected] ~]#/etc/init.d/mysql start5: View the port number in use (if 3306 starts successfully) [[email protected] ~]# netstat- Natactive Internet Connections (Servers and established) Proto recv-q send-q Local address Foreign address State TCP 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN TCP 0 0 0.0.0.0:776 0.0.0.0:* LISTEN TCP 0 0 0.0.0.0:3306 0.0.0.0:* LIS TEN TCP 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 6: Set password after installation MySQL has a default user root , the password is not. [[email protected] ~]#/usr/bin/mysqladmin/-u root-p password 1234567: Login to mysql[[email protected] ~]# MySQL- U root-p 1234568: Query database Show DATABASES9: query table use testshow TABLES10: Stop mysql[[email protected] ~]#/usr/bin/mysqladmin -U root-p shutdown11: Common Cause 11.1:linuxe after startup 13:07mysql, unable to connect linuxe mysql under Windows. Error: 1130-host ... is not allowed to connect To this MySQL server open MySQL remote connection does not use the localhost solution http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html I was through the following To solve the grant all PRIVILEGES on * * to ' username ' @ '% ' identified by ' password ' with GRANT OPTION; FLUSH privileges;12: Detailed reference: http://www.t086.com/article/638------------------------------------------------------- -----------------------------------------------------------
In the study, we will encounter a lot of wonderful problems, but so wonderful problem is to let us enhance the valuable experience. So, please don't worry too much, blame yourself. Be patient and calm down to solve the problem.