alternatives是Linux下的一个功能强大的命令。只能在root权限下执行。如系统中有几个命令功能十分类似,却又不能随意删除,那么可以用 alternatives 来指定一个全局的设置。 alternatives常用于同一个系统中安装同一软件的多个版本。比如为了开发需要,我需要安装JDK1.4.2,同时还需要JDK1.6.10,我怎么样才能忽略安装路径,按照我自己的意思,使用我想要的java版本呢? 下面为您一一道来。 alternatives的命令行执行如下:...
Unix Network Programming Volume 1,Third Edition The Sockets Networking API Chapter 30. Client/Server Design alternatives gave us this figure: Row Server Description Process Control CPU time(Difference from baseline) 0 Iterative Server (baseline) 0.0 1 Concurrent Server, one fork per client request 20.90 2 Pre-fork, each child calling accept 1.80 3 Pre-forking, file locking around accept...
Unix Network Programming Volume 1,Third Edition The Sockets Networking API Chapter 30. Client/Server Design alternatives gave us this figure: Row Server Description Process Control CPU time(Difference from baseline) 0 Iterative Server (baseline) 0.0 1 Concurrent Server, one fork per client request 20.90 2 Pre-fork, each child calling accept 1.80 3 Pre-forking, file locking around acce...
如题:那位有用alternatives命令维护java版本的资料啊?万分感激! Redhat有一个文章:http://www.redhat.com.cn/kbase/3622.php mail: [email]mjwdj80@gmail.com[/email] MSN: [email]mjwdj80@hotmail.com[/email]
以前自己装上jdk之后,都是把java,javac做成链接替换掉/usr/bin/里面的gij的java和javac。但是这么做一直感觉都不是很“正规”,像是旁门左道。 前一阵子在网上看到有人说可以用一个叫做alternativs的工具来实现linux下软件版本的迁移,就决定使用alternatives来把jdk从gij迁移至我新装的jdk6.0。 alternatives在/usr/sbin目录下 首先需要把新安装的jdk添加到alternatives: [root@djn-laptop sbin]# ./alternatives --install /u...