安裝rmiserver

一、安裝jdk

[root@AY14041513373970594fZ local]# ll
total 70416
drwxr-xr-x  4 root root     4096 Aug 16  2013 aegis
drwxr-xr-x. 2 root root     4096 Apr 15 14:14 bin
drwxr-xr-x. 2 root root     4096 Sep 23  2011 etc
drwxr-xr-x. 2 root root     4096 Sep 23  2011 games
drwxr-xr-x. 2 root root     4096 Apr 15 14:21 include
-rwxr-xr-x  1 root root 72048548 Apr 23 17:03 jdk-6u37-linux-x64.bin
[root@AY14041513373970594fZ local]# ./jdk-6u37-linux-x64.bin
.......................
Java(TM) SE Development Kit 6 successfully installed.
Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Oracle products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the JDK Product Registration form will
be presented. If you do not register, none of this information
will be saved. You may also register your JDK later by
opening the register.html file (located in the JDK installation
directory) in a browser.
For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....
                   
Done.


二、配置環境變量

[root@AY14041513373970594fZ local]# vim /etc/profile
unset i
unset pathmunge
CLASSPATH=$CLASSPATH:/data/script/rmiserver/com/usernet/product/tools/rmi/:/data/script/rmiserver:/data/script/rmiserver
[root@AY14041513373970594fZ local]# source /etc/profile   #生效


三、進入rmiserver目錄

[root@AY14041513373970594fZ rmiserver]# pwd
/data/script/rmiserver
[root@AY14041513373970594fZ rmiserver]# ll
total 12
drwxrw---- 3 root root 4096 Apr 23 16:57 com
-rw-r--r-- 1 root root   22 Apr 23 17:10 myfile.out
-rw-r--r-- 1 root root   70 Apr 23 17:10 nohup.out
[root@AY14041513373970594fZ rmiserver]# tree com
com
└── usernet
    └── product
        └── tools
            └── rmi
                ├── FileAccepted.class
                ├── FileAcceptedImpl.class
                ├── FileAcceptedImpl_Stub.class
                └── FileAcceptedServer.class
4 directories, 4 files


四、後臺運行

nohup /usr/local/jdk/bin/rmiregistry > myfile.out 2>&1 &
nohup /usr/local/jdk/bin/java com.usernet.product.tools.rmi.FileAcceptedServer > nohup.out 2>&1 &


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章