dounong5373 2017-06-23 13:00
浏览 51
已采纳

如何在我的服务器上安装freegeoip

I want to install https://github.com/fiorix/freegeoip On my Linux server. But i have no idea how to do that. Documentation is not very clear and i don't know anything about servers (I always thought cpanel->publichtml has all the stuff that matters). I know php very well but that doesn't help it.

So can someone give me little guidance. I am trying this for hours now, But still don't know where i am going. Please little help would make my day.

  • 写回答

1条回答 默认 最新

  • dropbox1111 2017-06-23 14:29
    关注

    Download the latest release (currently 3.2) and untar on your server, make sure the binary has executable permissions then run the binary.

    Run the following commands on your Linux server.

    cd ~
    wget https://github.com/fiorix/freegeoip/releases/download/v3.2/freegeoip-3.2-linux-amd64.tar.gz
    tar xvfz freegeoip-3.2-linux-amd64.tar.gz
    cd freegeoip-3.2-linux-amd64
    chmod +x freegeoip
    ./freegeoip
    

    Once you've done that, you should see the following:

    2017/06/23 14:26:21 freegeoip http server starting on :8080
    2017/06/23 14:26:21 database info: starting update
    2017/06/23 14:26:22 database info: finished update
    2017/06/23 14:26:23 database loaded: /tmp/freegeoip/db.gz

    At this point you should be able to visit http://your-server-ip:8080/json/ and the service should be up and running.

    Note: The above steps were tested on a Ubuntu 16.04 server. This doesn't install the binary on your server, it only a runs the binary.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作