Skip to content

zw135113/ip_lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

环境

  • Ubuntu 2204
  • PHP 8.1
  • Nginx 1.18.0

部署过程

部署web环境

部署PHP

apt -y install php-fpm php-mysql php-json php-gd php-xml php-mbstring php-zip php-curl

部署nginx

apt -y install nginx

克隆项目到本地

git clone https://gitee.com/zw135113/ip_lookup.git

ngixn配置文件示例

/etc/nginx/sites-enabled/ip_lookup.conf

server {
    listen 80;
    server_name 10.0.0.200;

    root /apps/ip_lookup;
    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

}

加载配置文件

nginx -s reload

效果展示

示例图片

About

IP address location lookup page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published