Guys always say that Technology is changing faster , becoming better and better. Today is 2014/3/21 and , I learn how to install those things base on blogs written in 2009 . How does it happen ?
Back to work .
安裝路徑一般是:
First , you should install jdk-8 in Ubuntu , those are my way .
1. open Terminal
2 . sudo apt-get install oracle-java8-installer
PS : JAVA_HOME will be : /usr/lib/jvm/java-8-oracle
Second , you can install MyEclipse
Share a installation for all of you : check here
that is 32-bit Arichitect of i386
1. cd to path where installation exits
2. rename MyEclipse 10.06 for linux.run to myeclipse.run (Just for convenint , not necessary)
3. change mod of myeclipse.run
sudo chmod +x myeclipse.run
4. udo sh myeclipse.run
5. that is OK , then you will come to the GUI installing processing
6. run and do it
my installing path : /root/MyEclipse/MyEclipse 10
cd /root/MyEclipse/'MyEclipse 10'
sudo ./myeclipse
and you are running it now .
Third, I will share a installation of tomcat7 of Ubuntu for you :check here
1. Download and unpress tar.gz , open tomcat7/bin/catalina.sh in Terminal
sudo gedit catalina.sh
2. find those word , then write on it
cygwin=false
darwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
Darwin*) darwin=true;;
OS400*) os400=true;;
changed to
JAVA_HOME = /usr/lib/jvm/java-8-oracle
JAVA_OPTS = "-server -Xms512m -Xmx1024m -XX:PermSize=600M -XX:MaxPermSize=600m -Dcom.sun.management.jmxremote"
cygwin=false
darwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
Darwin*) darwin=true;;
OS400*) os400=true;;
3. change the port of tomcat7
in path tomcat7/conf/server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
change to
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
maybe not 9090, other things like 8084 is OK.
4. in the directory tomcat7/bin
sudo ./startup.sh
found
Using CATALINA_BASE: /home/kingpin/Public/tomcat7
Using CATALINA_HOME: /home/kingpin/Public/tomcat7
Using CATALINA_TMPDIR: /home/kingpin/Public/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /home/kingpin/Public/tomcat7/bin/bootstrap.jar:/home/kingpin/Public/tomcat7/bin/tomcat-juli.jar
Tomcat started.
that is OK
5. run http://localhost:9090/
that is OK.
6. If you want to close it
sudo ./shutdown.sh
Fouth: Installing mysql
1.
sudo apt-get install mysql-server
2.
sudo apt-get install mysql-client
3.
sudo apt-get install php5-mysql
I suggest you to run mysql in those code :
sudo /etc/init.d/mysql restart
mysql -uroot -p
Enter password :
then you will run mysql
How to connect those things? I will talk it in another day.
Friendly link list : http://developer.51cto.com/art/201012/238581.htm