cif安装错误异常处理过程记录

安装环境

Ubuntu 14.04.3 Server LTS amd64

官方指导手册

https://github.com/csirtgadgets/massive-octo-spice/wiki/PlatformUbuntu

安装方法

$ curl -Ls https://raw.githubusercontent.com/csirtgadgets/massive-octo-spice/master/hacking/platforms/easybutton_curl.sh | sudo bash -
$ sudo chown `whoami`:`whoami` ~/.cif.yml

其中第二句sudo chown `whoami`:`whoami` ~/.cif.yml 在`easy_button_curl.sh中有提到,因此安装使用第一句就ok了。

官方未涉及问题及解决方案

  • 更新无法安装
##some code in easy_button_curl.sh
case $OS in
    "Ubuntu" )
        sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y htop build-essential automake autoconf git
        git clone https://github.com/csirtgadgets/massive-octo-spice.git -b $BRANCH
        cd massive-octo-spice
        bash autogen.sh
        sudo bash ./hacking/platforms/easybutton.sh

更新无法安装后,可能是源的问题,最后使用了阿里源。

  • Ubuntu.shgeoipupdate 无法执行
## some code in Ubuntu.sh
apt-get update
apt-get install -y monit geoipupdate ........

报错:函数依赖无法安装,需要版本怎样怎样。aptitude 对依赖的支持较好。使用aptitude 解决依赖问题。
解决方案:

Installing on Ubuntu

MaxMind provides a PPA for recent version of Ubuntu. To add the PPA to your sources, run:

$ sudo add-apt-repository ppa:maxmind/ppa
Then install geoipupdate by running:

$ sudo aptitude update
$ sudo aptitude install geoipupdate
  • cpanm 无法安装(自己安装上cpanm 就成。)
echo 'installing cpanm...'
curl -L https://cpanmin.us | sudo perl - App::cpanminus

报错:

Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
installing cpanm...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

原因:证书验证出错,实际上并没有添加上证书。
解决方案:

curl -Lk https://cpanmin.us | sudo perl - App::cpanminus
  • 加上之后cpanm 还是无法安装。使用手动安装解决此问题,换了地址。
$ wget  http://xrl.us/cpanm  --no-check-certificate -O /sbin/cpanm 
$ chmod +x  /sbin/cpanm 
  • cpanm ZMQx::Class 无法安装,源文件中有--force 选项。多安装几次就强制安装上了。提示failed,but installed

  • 使用cpanm 安装DateTime模块 依赖无法安装。多人反映此问题。
    解决方案:不使用cpanm 安装,使用apt 安装。

sudo apt-get install libdatetime-perl
  • apache启动不能成功
echo 'restarting apache...'
service apache2 restart

原因:内存1G根本不够用,卡死。
解决方案:调成2G,解决问题。

其他说明

  • 问题描述与信息检索能力有待加强。
  • Linux基础需要巩固
  • 安装过程中,对sh 脚本要有一定的阅读能力。期间多次改写Ubuntu.sh 文件。
  • Ubuntu.sh 必须在根目录下执行,因为sh 中有cd ../../../ 语句。

update

上文说到的下载cpanm ssl出错是因为时间设置的问题,系统时间设置为正常即可。

最近又重装了一次,主要步骤如下:
1. sources.list 改为了阿里源。
2. 修改系统时间
3. 提前将kibana,GeoipLoate2.gz 上传到服务器。
4. 先安装geoipupdate,然后再一次性安装,安装的时候可能需要使用aptitude 解决依赖问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值