Linux(CentOS) 下安装PhpStorm --CHL

#下载好jdk-8u60-linux-x64.gz 安装文件

tar -zxvf jdk-8u60-linux-x64.gz 

mv jdk1.8  jdk

#进入安装目录
cd jdk


#配置环境变量

vi /etc/profile
export JAVA_HOME=/usr/local/jdk  #这里写jdk安装目录
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin

============================

PHPSTORM_HOME=/usr/local/phpstorm
JAVA_HOME=/usr/local/jdk
PATH=$JAVA_HOME/bin:$PATH
PATH=$PHPSTORM_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PHPSTORM_HOME
export PATH
export CLASSPATH


source /etc/profile


============================phpstorm===================================
#phpstorm 下载链接 http://pan.baidu.com/s/1ScNgy


tar -zxf PhpStorm-9.0.2.tar.gz
# 然后将解压出来到目录移动到你希望到安装目录下
mv phpstorm_dirctory /usr/local/phpstorm
cd /usr/local/phpstorm/bin
chmod 777 phpstorm.sh
./phpstorm.sh

#phpstorm 9.0最新 注册码(链接: http://www.jincon.com/archives/368/ )

User Name:newasp


01.License Key:

===== LICENSE BEGIN =====

14617-12042010

00001xrVkhnPuM!Bd!vYtgydcusnqt

mM!hZWoGg"DprWxZCBwsy8T91O7MRu

NVHtrbzv8O9mmoLvtijcHSSE7i5Jr!

===== LICENSE END =====

#到用户主目录
#命令: cd ~
#修改 vim .bashrc
#将以下环境变量写入文件
PHPSTORM_HOME=/usr/local/phpstorm
JAVA_HOME=/usr/local/jdk
PATH=$JAVA_HOME/bin:$PATH
PATH=$PHPSTORM_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PHPSTORM_HOME
export PATH
export CLASSPATH

#保存之后让修改生效: source ~/.bashrc

 

你可能感兴趣的:(linux)