- 博客(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 701
原创 手贱安装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 579
原创 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 4301
转载 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 235
原创 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 527
原创 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 2197
转载 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 3034
转载 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 625
原创 字符串中英文混合前后截取
/* * 截取隐匿 * */ 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 342
转载 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 250
原创 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 249
php7.4+ElasticSearch7.12.rar
2021-05-20
magento1.6.2安装包绝对可以安装
2013-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人