默认分类下的博客

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......

类别 :  默认(738)  |  浏览(66881)  |  评论(1)

都是一生啊TOP

piaoling  2013-02-04 11:06:17

......

类别 :  默认(738)  |  浏览(21216)  |  评论(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 ......

类别 :  默认(738)  |  浏览(144)  |  评论(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> ......

类别 :  默认(738)  |  浏览(247)  |  评论(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两个版本......

类别 :  默认(738)  |  浏览(532)  |  评论(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 ......

类别 :  默认(738)  |  浏览(582)  |  评论(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.......

类别 :  默认(738)  |  浏览(603)  |  评论(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 查看现有内核启动顺序 ......

类别 :  默认(738)  |  浏览(371)  |  评论(0)

GNU C Library 安全漏洞 (CVE-2020-29573) GNOME Glib 授权问题漏洞 (CVE-2019-12450)

piaoling  2023-11-10 11:46:27

centos7升级glibc避坑指南 centos7默认的glibc函数库的版本为2.17,无法运行一些对glibc版本有要求的中间件。为了在centos7上可以正常运行此类中间件,则需要对glibc进行升级。         假设需要安装一个中间件,该版本的中间件要求glibc函数库在2.25以上,但操作系统的glibc版本为2.17,为了符合运行要求需要对glibc进行升级。由于直接升级到glibc2.25会出现各种崩溃的问题(如:无法远程、常规基础命令无法使用等等)。经反复测试确认......

类别 :  默认(738)  |  浏览(371)  |  评论(0)

清除yum中可能重复或者破损的包

piaoling  2023-11-10 11:42:28

yum install -y yum-utils yum-complete-transaction --cleanup-only #清除可能存在的重复包 package-cleanup --dupes #清除可能存在的损坏包 package-cleanup --problems #清除重复包的老版本: package-cleanup --cleandupes #删除旧的系统包: package-cleanup --oldkernels ......

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

    文章分类