redhat5下面netbeans的安装
首先下载 java 的运行环境: jre
下载地址: http://java.com/zh_CN/download/linux_manual.jsp?locale=zh_CN
再下载 netbeans for php 的版本:
下载地址: http://netbeans.org/downloads/
安装步骤:
JRE:
1.由于要执行这个安装程序,所在一定要有这个程序的执行权限,而默认的权限只有读和写而没有执行的权限,所以修改一个权限,如下:
[root@localhost tools]# chmod +x jre-6u27-linux-i586-rpm.bin
[root@localhost tools]# ls -la
-rwx--x--x 1 root root 21080279 10-06 02:39 jre-6u27-linux-i586-rpm.bin
2. 开始生成 rpm 安装程序,如装方法 在当前目录直接执行即可:
[root@localhost tools]# ./jre-6u27-linux-i586-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u27-linux-i586.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Done.
3. 生成完成,得到如下文件
[root@localhost tools]# ls -la
-rw-r--r-- 1 root root 21331915 07-19 19:07 jre-6u27-linux-i586.rpm
-rwx--x--x 1 root root 21080279 10-06 02:39 jre-6u27-linux-i586-rpm.bin
4. 修改文件执行权限并执行
[root@localhost tools]# chmod +x jre-6u27-linux-i586.rpm
[root@localhost tools]# ls -la
-rwxr-xr-x 1 root root 21331915 07-19 19:07 jre-6u27-linux-i586.rpm
-rwx--x--x 1 root root 21080279 10-06 02:39 jre-6u27-linux-i586-rpm.bin
[root@localhost tools]# rpm -ivh jre-6u27-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.6.0_27-fcs.i586 is already installed
5. JRE 安装完成 !
Netbeans 的安装:
[root@localhost tools]# ./netbeans-7.0.1-ml-php-linux.sh
bash: ./netbeans-7.0.1-ml-php-linux.sh: 权限不够
[root@localhost tools]# chmod +x netbeans-7.0.1-ml-php-linux.sh
[root@localhost tools]# ls -la
-rwxr-xr-x 1 root root 42844160 10-05 18:12 netbeans-7.0.1-ml-php-linux.sh
[root@localhost tools]# ./netbeans-7.0.1-ml-php-linux.sh
正在配置安装程序...
正在搜索系统上的 JVM...
正在解压缩安装数据...
正在运行安装程序向导...
好的,netbeans 就这样安装完成了!