cpanm 命令的安装及使用

 

001、安装

(base) [root@pc1 test01]# yum install perl-App-cpanminus.noarch    ## 安装; 系统为centos7系统

 

002、测试安装效果

(base) [root@pc1 test01]# cpanm
Usage: cpanm [options] Module [...]

Try `cpanm --help` or `man cpanm` for more options.

 。

 

003、使用,安装模块测试

 

a、

(base) [root@pc1 test01]# perldoc MongoDB       ## 提示MongoDB模块未安装
No documentation found for "MongoDB".

 

b、

(base) [root@pc1 test01]# cpanm MongoDB         ## 使用cpanm安装该模块

 

 

c、测试安装效果

(base) [root@pc1 test01]# perldoc MongoDB | head

 。

 

posted @ 2023-11-11 10:45  小鲨鱼2018  阅读(511)  评论(0编辑  收藏  举报