自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (5)
  • 收藏
  • 关注

原创 PHP编译安装常见错误解决

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution复制代码代码如下:yum -y install libxslt-develconfigure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.复制代码代码如下:yum -y install ..

2021-10-13 14:56:46 658

原创 手贱安装python3以后,卸载系统原装python,导致yum不能用 CentOS7修复python拯救yum

记录一下,因为手贱编译安装php7.4要求python版本3.7,然后安装了python3.7以后觉得系统原来版本的python2.7多余就删掉了,删掉以后发现yum不能用了,悲剧,手贱!!!!然后经过一番折腾后,终于解决了这个问题,真是蛋疼找事!话不多说了,先彻底卸载完成残余程序:rpm -qa |grep python|xargsrpm -ev --allmatches --nodepsrpm -qa|grep yum|xargs rpm -ev --allm.

2021-05-25 15:22:17 533

原创 linux:The CXX compiler identification is unknown

centos 7编译出现cmake:The CXX compiler identification is unknown 1问题原因 Centos7默认的gcc版本是4.8.3,虽然对C++11的一些新特性提供了支持,但是对C++11的正则表达式好像只写了头文件,没有提供具体的实现????!Wtf!因为在cmake编译项目的时候整个项目可以正确的编译成功,但是一旦运行就会出现terminate called after throwing an instance of 'std::re..

2021-05-18 14:43:23 4099

转载 Centos 6无法使用yum的解决方法_提示Error: Cannot find a valid baseurl for repo: base

yum命令无法使用了,遇到的错误提示如下:[root@c8-20 ~]# yum -y install wgetLoaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file.Eg. Invalid release/repo/arch

2021-05-17 15:16:12 223

原创 elasticsearch7.12 PHP7数据批量导入遇到的问题

elasticsearch7.12 PHP7数据批量导入遇到的坑刚开始用python是这样写的:for line in list: action = { "_index": self.index_name, "_type": self.index_type, "_id": i, "_source": { "date": line['date'], "source": l.

2021-05-14 17:47:50 502

原创 ubuntu16. YII2出现“Either GD PHP extension with FreeType support or ImageMagick PHP extension..."的解决办法

1. 安装:ImageMagick:下载:sudo curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz解压:sudo tar -zxvf ImageMagick.tar.gz安装:cd ImageMagick-7.0.7-22/sudo ./configure --prefix=/usr/local/imageM...

2018-07-06 17:05:26 2172

转载 dpkg: error processing package php7.0 (--configure): dependency problems - leaving unconfigured Err

安装软件时出错:dpkg: error processing package php7.0 (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: php7.0-fpm php7.0E: Sub-process /usr/bin/dpkg returned ...

2018-07-05 14:36:26 2970

转载 Mysql使用外连接替换in和not in

在程序中,我们经常会习惯性的使用in和not in,在访问量比较小的时候是可以的,但是一旦数据量大了,我们就推荐使用not exists或者外连接来代替了。如果要实现一张表有而另外一张表没有的数据时,我们通常会这么写:select * from table t where t.id not in (select id from table2)我们可以使用下面的语句代替:sel

2017-08-03 14:48:04 575

原创 字符串中英文混合前后截取

/* * 截取隐匿 * */ public function getNickName($nickName) { $string = trim($nickName); $str = strlen($string); $a = $this->substr_text($string, 0, 1); $b = $this->substr_te

2017-04-20 13:28:08 327

转载 centos下快速重置mysql密码

CentOS刚装的MySQL一般需要重设MySQL密码,可以用以下方法重设。 # /etc/init.d/mysqld stop  # mysqld_safe --user=mysql --skip-grant-tables --skip-networking &  # mysql -u root mysql   mysql> UPDATE user SET Password=

2017-03-20 10:21:07 231

原创 PHP 中文无乱码截取

function substr_text($str, $start=0, $length, $charset="utf-8", $suffix=""){ if(function_exists("mb_substr")){ return mb_substr($str, $start, $length, $charset).$suffix; } elseif(funct

2017-02-27 16:51:21 233

php+elastic2.0

elasticsearch封装

2021-06-04

php7.4+ElasticSearch7.12.rar

包含索引创建更新删除,映射设置,模糊、高亮自定义搜索偏移设置,多字段多国语言支持,数据库与索引文档同步等,丰富的封装,不懂的可以留言咨询

2021-05-20

RunHiddenConsole.exe

WIN10 用的命令RunHiddenConsole 亲测可用!!至少2018年还可以用!折腾了半天,里面注明了用法,不会用给我留言

2018-07-01

适合window ALL的64位Apache 2.4(好东西太难下载)

一款好的Apache应用是比较难找的,廉价又实惠的web server更是难找

2015-06-26

magento1.6.2安装包绝对可以安装

找了很久,也下载了很多magento包,可是安装不了,浪费了资源和积分不说,也浪费了许多时间,本人很气愤,最后还是找到了一个经本人亲自测试,绝对可以安装的magento包。虽然版本不是最新的,起码可以安装成功!在此献给magento初学者和到处寻找magento安装包的童鞋,祝你们技术进步!

2013-05-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除