默认分类下的博客

php根据IP获取地理位置TOP

piaoling  2013-10-25 17:56:43

http://www.phpandstuff.com/articles/geoip-country-lookup-with-php How to get the surfers country using PHP? Most coders need to tackle this problem sooner or later. There are several options out there. There is even a package called GeoIP Location. However, since this does not come with most default installations, it may not be your best choice. A company called Maxmind specializes in professional GeoIP solutions. However, when you dig through their website, you can find that they also provide some free databases and free code. I will show you how to use this free stuff in a portable......

类别 :  默认(742)  |  浏览(71581)  |  评论(1)

都是一生啊TOP

piaoling  2013-02-04 11:06:17

......

类别 :  默认(742)  |  浏览(21935)  |  评论(0)

ubuntu安装php7.4

piaoling  2024-07-15 17:02:56

在 Ubuntu 上,如果默认的 PHP 版本是 PHP 8 并且你想安装 PHP 7,你需要添加一个额外的软件源,因为 Ubuntu 的官方仓库可能不再包含旧版本的 PHP。一个常见的做法是使用 Ondřej Surý 维护的 PHP PPA (Personal Package Archive)。 以下是安装 PHP 7.4 的步骤,因为 PHP 7.4 是 PHP 7 系列中的最后一个主要版本,并且在 2023 年 11 月结束支持,但可能在某些场景下仍然需要。请注意,使用旧版本的 PHP 可能会有安全风险,且不建议在生产环境中使用不再支持的软件 首先,打开终端......

类别 :  默认(742)  |  浏览(77)  |  评论(0)

在 Ubuntu 22.04上安装 MariaDB 11

piaoling  2024-07-15 15:33:00

1 – 更新您的系统 我们总是从系统更新开始安装。 sudo apt update && sudo apt -y upgrade 升级完成后,您可以转到下一步。 2 – 添加 MariaDB APT 存储库 接下来,我们添加包含在 Ubuntu 系统上安装 MariaDB 11.x 所需的软件包的存储库。 curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.2 命令执行的预期输出。 # [info] Checking for script prerequisites. # [info] MariaDB Server version 11.2 is valid # [info] Repository file successfully written to /etc/apt/sources.......

类别 :  默认(742)  |  浏览(73)  |  评论(0)

git 找回删除的stash

piaoling  2024-01-29 10:23:01

1.找回 git log --graph --oneline --decorate $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' ) 2.应用找回 git stash apply 提交head ......

类别 :  默认(742)  |  浏览(629)  |  评论(0)

https修改cookie

piaoling  2023-12-28 11:38:52

https修改cookie <IfModule mod_headers.c> #Header add Access-Control-Allow-Origin "*" Header edit Set-Cookie (.*) "$1; Secure;SameSite=None" env=HTTPS </IfModule> ......

类别 :  默认(742)  |  浏览(690)  |  评论(0)

Windows系统下,OpenSSL升级为最新版

piaoling  2023-11-21 18:19:30

 环境介绍:Windows2016,phpstudy集成环境(版本:8.1.1.3),web服务器用的是apache(版本:2.4.55),OpenSSL是1.1.1p          客户网站在做等保,OpenSSL高危漏洞,需要进行升级。网上搜了很多教程,基本上都是Linux的系统,要不就是需要编译,找了个简单的办法,并测试成功了,在此记录一下。         1.下载需要的OpenSSL版本(Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions),链接中是1.1.1w和3.1.4两个版本......

类别 :  默认(742)  |  浏览(1036)  |  评论(0)

Sendmail 安装升级实现方式

piaoling  2023-11-17 16:02:24

1) 首先取得最新版本的原始码:http://www.sendmail.org/或ftp://ftp.dlut.edu.cn/pub/unix/mail/sendmail/,将他存放在/usr/local目录下。 2) 执行以下命令,解压缩: cd /usr/local tar -xf sendmail-8.9.3.tar.gz 3) 编译:由于sendmail自己带了一个编译程式Build,所以不用make命令: cd /usr/local/sendmail-8.9.3/src ./Build install ......

类别 :  默认(742)  |  浏览(1103)  |  评论(0)

Centos7在线升级Apache Httpd至最新版本

piaoling  2023-11-13 12:15:22

Centos7下在线升级Apache Httpd至最新版本 一、确认原版本信息 查找Centos上软件库里的Apache版本,在命令行下输入以下指令: [root@test yum.repos.d]# yum info httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Installed Packages Name        : httpd Arch        : x86_64 Version     : 2.4.6 Release     : 89.el7.......

类别 :  默认(742)  |  浏览(1377)  |  评论(0)

CentOS 7升级内核的三种方式(yum/rpm/源码)

piaoling  2023-11-10 12:07:35

一、yum安装 升级至最新 centos7升级内核,3.1-> 4.4 (4.17.8) 导入仓库源 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm 查看可安装的软件包 yum --enablerepo="elrepo-kernel" list --showduplicates | sort -r | grep kernel-ml.x86_64 选择 ML 或 LT 版本安装 # 安装 ML 版本 yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml -y # 安装 LT 版本,K8S全部选这个 yum --enablerepo=elrepo-kernel install kernel-lt-devel kernel-lt -y 查看现有内核启动顺序 ......

类别 :  默认(742)  |  浏览(799)  |  评论(0)
  • Page:1/75  742 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类