1. Installing Phpstorm
Download Phpstorm Linux version http://www.jetbrains.com/phpstorm/download/index.html extract compressed files from official website tar xfz phpstorm-*.tar.gz Enter the bin directory of Phpstorm to execute the installation script CD phpstorm-*./phpstorm.sh Setup starts, you need to enter the registration code (optional) User Name:embracelicense during the installation process key:===== LICENSE BEGIN =====43136-1204201000002usvson704l "Dile1pvx3y4" B349AU6OSDJRSJE8NMOQH "8htdjhiuuhgd1bebyc5u" 6oxdbvsalb4eb10pw8 "===== LICENSE END =====
2. Installing the JDK
1, to the Sun's official website download
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select Accept License and select the JDK download that fits your model.
2, unzip the file, modify the filename
mkdir/usr/lib/tar zxvf jdk-7u21-linux-i586. Tar.gz-c/usr/lib/JVM $ cd/usr/lib/mv Jdk1. 7.0_21 java
3. Add Environment variables
sudo vim ~/.BASHRC
Add the following:
Export java_home=/usr/lib/jvm/JAVA export jre_home=${java_home}/JRE export classpath=.:${java_home}/lib:${ jre_home}/
4. Configuring the default JDK version
sudo update-alternatives--Install/usr/bin/java Java/usr/lib/jvm/java/bin/java300sudo update-alternatives--300 sudo update-alternatives--install/usr/bin/jar jar/usr/lib/jvm/java/bin/jar 300 Span style= "color: #0000FF; line-height:1.5!important;" >sudo update-alternatives--install/usr/bin/javah javah/usr/lib/jvm/ Java/bin/javah 300 sudo update-alternatives--install/usr/bin/javap javap/usr/lib/jvm/ JAVA/BIN/JAVAP 300
And then execute
sudo update-alternatives--config java
If you first install the JDK, you will be prompted
In Link Group Java (providing/usr/bin/java):/usr/lib/jvm/java/bin/Java does not need to be configured.
For non-initial installation, there will be different versions of the JDK option.
5. Testing
$ java-"1.7.0_21"1.7.0_21-23.21-b01, mixed mode)
Ubuntu installation Phpstorm and JDK