linux(ubuntu)下安装WebStorm 7 (没有图片,看文字会有点累)
#文章jsWebStorm申请达人,去除赞助商链接
WebStorm 7相信是js开发中的中的高富帅工具了,不知道站内的是不是都用windows,今天终于考完考试,终于有一段时间可以空下来了,然后今晚装了ubuntn系统的一个美化版本Elementary OS,系统很美,但是不知道如何截图,所以就不上图了。
1.开始准备,去甲骨文网站下载jdk。
因为我是64系统,所以下了X64的版本。
2.配置jdk的环境变量。
在命令行中sudo gedit /etc/profile
#set java environment
JAVA_HOME=/home/shidoudou/123/jdk1.7.0_45
export JRE_HOME=/home/shidoudou/123/jdk1.7.0_45/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
重启电脑在命令行中输入 java -version,察看安装完全不,如果别行。
sudo gedit /etc/environment
PATH="home/shidoudou/123/jdk1.7.0_45/bin"CLASSPATH=";,;home/shidoudou/123/jdk1.7.0_45/lib"
JAVA_HOME="home/shidoudou/123/jdk1.7.0_45"
注: Path中自带我没有粘贴上来。
如果gedit没有安装。sudo apt-get install gedit就好了。
3.下载webStrom,解压。
把webstrom加入环境变量
PATH="home/shidoudou/123/WebStorm-131.202/bin;home/shidoudou/123/jdk1.7.0_45/bin"
就变成这样了。
然后我在修改了idea.properties中几个参数,
idea.config.path=${shidoudou.home}/.WebStorm/config
idea.system.path=${shidoudou.home}/.WebStorm/system
但是我刚才注释掉了,结果导致不能自定义webstrom启动时缺省目录。
最后一步,启动软件
sh webstorm.sh
就跟windows界面一样了。
后面我贴处压缩包里面的安装向导文件,给有用的人参考下。
WebStorm
INSTALLATION INSTRUCTIONS
===============================================================================
Linux Installation Instructions
------------------------------------------------------------------------------
1. Unpack the WebStorm distribution archive that you downloaded to
where you wish to install the program. We will refer to this destination
location as your {installation home} below.
2. Open a console and cd into "{installation home}/bin" and type:
./webstorm.sh
to start the application.
3. [OPTIONAL] Add the "{installation home}/bin" to your PATH environmental
variable so that you may start WebStorm from any directory.
4. [OPTIONAL] To adjust the value of JVM heap size open webstorm.vmoptions
(webstorm64.vmoptions for 64-bit JDK), and modify the -Xms and -Xmx parameters.
[OPTIONAL] Changing location of "config" and "system" directory
------------------------------------------------------------------------------
By default WebStorm stores all your settings under ~/.WebStorm7/config directory
and stores data cache under ~/.WebStorm7/system directory.
If you want to change these settings,
1. Open a console and cd into "{installation home}/bin"
2. Open file "idea.properties" in an editor. You should find strings like
idea.system.path=~/.WebStorm/system
and
idea.config.path=~/.WebStorm/config
and change them.
3. Note that we recommend to store data cache ("system" directory) at a disk
with at least 1G bytes free space
Enjoy!
-WebStorm Development Team