GeoIP Legacy City数据库安装说明

Here is a brief outline of the steps needed to install GeoIP Legacy City on Linux/Unix. The installation on Windows is similar, just replace the tar command with WinZip or a similar ZIP program.

Step 1 – Download database

For GeoIP clients, go to the download files page. You may need to enter your username and password. From there, you can download the binary or CSV formats of the GeoIP databases you purchased. Then you will want to upload the databases to your web server.

If you are not a client, you can use the free GeoLite database. You may download it from the GeoLite page.

If you are using the wget program to download the GeoLite file, please use the -N option to only download if the file has been updated:

$ wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

Step 2 – Install database

Once you have uploaded the database, you will want to uncompress it. To uncompress the binary format, you will need to unzip the file. For example, to uncompress the GeoIP City binary database on Linux or Unix, you could run:

$ gunzip GeoLiteCity.dat.gz

Then you will need to install the .dat file into a data directory. For example, on Linux/Unix, you could run:

$ mv GeoLiteCity.dat /usr/local/share/GeoIP/

To uncompress the CSV format, you can use any zip program, like WinZip for Windows, or unzip on Linux. Then you can load the CSV database into a SQL database. Learn more

Step 3 – Query database

For the binary databases, we supply APIs for most major programming languages. You may need to point the API code to the /usr/local/share/GeoIP/GeoLiteCity.dat location. Each API has documentation and example programs inside the downloaded distribution. The fastest way to get started is to use the example program included. You may need to replace the database path in the example program with the location where you installed the database.

For the CSV databases, once you have loaded them into a SQL database, you can issue SQL queries against the database table with the GeoIP data. Learn more

If you do not have shell access to the server

After you have downloaded the database, unzip it using a program like WinZip. Then rename the *.dat file to GeoIP.dat, GeoIPRegion.dat, or GeoIPCity.dat, for the GeoIP Country, Region or City databases, respectively. Finally upload the *.dat file to the /usr/local/share/GeoIP or other user-specified folder on your server using FTP or another upload mechanism.

时间: 2024-10-10 16:50:14

GeoIP Legacy City数据库安装说明的相关文章

Vmware 后台下Citrix Xendesktop 7.6实战篇之四SQL数据库安装部署

1.        2008r2安装调整 1.1 系統要求 站点配置数据库(最初包括配置日志记录数据库和监视数据库)支持的 Microsoft SQL Server 版本: SQL Server 2014 Express     Edition.Standard     Edition 和 Enterprise Edition. SQL Server 2012 SP1     Express Edition.Standard     Edition 和 Enterprise Edition. 默

mongodb数据库安装 & 设置管理员密码(单独mongo,无副本集)

##初始化系统环境,参考文档:服务器系统环境初始化,Centos7系统 #mongodb下载安装 mkdir -p /server/src /server/logs groupadd mongod useradd -s /sbin/nologin -g mongod mongod   cat /etc/passwd |grep mongo cd /server/src    ##安装mongodb 3.0.7版本,若需要其他版本,官网获取下载https://fastdl.mongodb.org/

SuSE Linux 11 下informix数据库安装配置

Informix是IBM公司出品的关系数据库管理系统(RDBMS)家族.现在用的人越来越少啦,各大运营商倒是还有用的,工作需要,还是要学习一下安装. 系统: SUSE Linux Enterprise Server 11 (x86_64) 一.安装 1.以root用户身份创建informix组和用户,假设informix用户的HOME目录为/opt/informix # groupadd  informix # useradd  -g  informix  -d  /opt/informix  

HSQLDB源码学习——数据库安装启动及JDBC连接

HSQLDB 是一个轻量级的纯Java开发的开放源代码的关系数据库系统.因为HSQLDB的轻量(占用空间小),使用简单,支持内存运行方式等特点,HSQLDB被广泛用于开发环境和某些中小型系统中. 在http://sourceforge.net/projects/hsqldb/files/下载了HSQLDB 1.8.0版本.把下载的zip文件解压缩至任意目录例如c:\hsqldb1.8便完成安装. hsqldb有四种运行模式: 一.内存(Memory-Only)模式:所有数据都在内存里操作.应用程

0001 Oracle数据库安装

从这个月初开始学习Oracle,因为完全是零起步,就从Oracle的下载安装开始一点一点学起,今天把系统重新做了,就再安装了一遍Oracle11gR2,把安装过程记录一下: 一.安装Oracle数据库系统 从官网下载来的Oracle11gR2解压到一个文件夹,约2.12G,setup.exe开始安装,在第二步可以选择“创建和配置数据库”或者“仅安装数据库软件”(安装完成后再配置,这里选“仅安装数据库软件”),然后选“单实例数据库安装”,选择语言,第5步选择版本,这里选企业版,选择安装目录,第8步

全套Oracle数据库安装实施视频课程套餐[涉及RAC,Linux,Win,ASM,Udev,FS]

全套Oracle数据库安装实施视频课程套餐[涉及RAC,Linux,Win,ASM,Udev,FS] 套餐介绍:高薪必学的Oracle数据库实施教程. 基础:Oracle数据库基础体系结构,ASM,RAC集群架构与概念. 实战:VMware/Windows2008/Linux操作系统安装, Windows/Linux操作系统上Oracle 11g R2 RAC集群安装与单机布署,Linux上ASM基于udev与asmlib的配置,Linux上Oracle11g基于文件系统及ASM与GRID布署,

PostGreSQL数据库安装教程

windows 10 x64 pro 1703安装postgresql-9.6.3-2-windows-x64.exe数据库,步骤如下: 第一:下载数据库安装程序,下载地址为:https://www.postgresql.org/download/ 第二:下载完毕之后双击执行安装程序,如下图所示: 点击Next进入下一步,如下图所示: 更改安装路径为,D:\Development\PostgreSQL\PostgreSQL\9.6,并点击Next进入下一步,如下图所示: 这一步不做更改,采用默认

达梦数据库安装和创建表

1.达梦数据库安装 2.达梦命令行sql工具 进去达梦数据库安装目录下的/bin目录 运行./disql 输入用户名和密码: 默认的管理用户SYSDBA 的初始密码是SYSDBA 在sql> 工具里边执行sql操作

单实例数据库安装脚本

安装脚本 1.1_preusers.sh #!/bin/bash #Purpose:Create 3 groups named 'oinstall','dba','oper', plus 1 users named 'oracle'. #Also setting the Environment #variable for oracle user. #Usage:Log on as the superuser('root'),and then execute the command:#./1pre