
PHP
Runner_NingGuo_Wen
云在天边,水在瓶
展开
-
Laravel 虚拟主机 502错误
curl -I homestead.test502 bad gatewaytail /var/log/nginx/homestead.test-error.log2021/01/13 14:33:49 [error] 740#740: *3 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.1, server: hom.原创 2021-01-13 23:21:19 · 691 阅读 · 0 评论 -
RESTful api
#格式https[协议]://api.example.com[域名]/v1[版本]/animals[资源名]#动词* GET(SELECT):从服务器取出资源(一项或多项)。* POST(CREATE):在服务器新建一个资源。* PUT(UPDATE):在服务器更新资源(客户端提供改变后的完整资源)。* PATCH(UPDATE):在服务器更新资源(客户端提供改变的属性)。* DELETE(DELETE):从服务器删除资源。* GET /zoos:列出所..原创 2020-12-07 15:51:51 · 161 阅读 · 0 评论 -
ab工具压测
# 安装yum install -y httpd-tools# 压测ab -c 100 -n 100http://localhost/member/index.php?act=seccode&op=makecode&type=50,120&nchash=a773092f&t=0.9891769412229554-n 请求数-c 并发量# 指标Requests per second : 每秒请求数Time per reques...原创 2020-09-17 15:08:20 · 205 阅读 · 0 评论 -
php 5.6 redis.so扩展、zend_smart_str.h 错误
# 版本错误fatal error: zend_smart_str.h: No such file or directory# 编译wgethttp://pecl.php.net/get/redis-2.2.7.tgztar zxf redis-2.2.7.tgzcd redis-2.2.7//Data/app/php/bin/phpize./configure --with-php-config=/Data/app/php/bin/php-configmake &..原创 2020-07-12 16:55:31 · 709 阅读 · 0 评论 -
php替换换行符
windows: /r/nLinux: /nMac: /r$str = str_replace(array("/r/n", "/r", "/n"), '', $str);$str = preg_replace('//s*/', '', $str);$str = str_replace(PHP_EOL, '', $str); 「PHP_EOL 换行符」原创 2020-07-06 10:45:44 · 163 阅读 · 0 评论 -
ShopNC 之 PHP 5.6 安装
接上篇:「 Shopnc之nginx配置」版本:php-5.6.9系统:centos 7# 目录mkdir -p /Data/app/mysql#用户useradd -g www wwwgroups www# 库依赖yum install -y gd-develyum install -y curl-develyum install -y pcre-develyum install -y zlib-develyum install -y...原创 2020-06-30 18:37:52 · 225 阅读 · 0 评论 -
使用 phpize 编译mysqli时提示 autoconf 和 perl 错误
版本:php 5.6.9扩展:mysqli工具:phpize[root@centos-linux mysqli]# /Data/app/php/bin/phpize 「autoconf 错误」Configuring for:PHP Api Version:20131106Zend Module Api No:20131226Zend Extension Api No:220131226Cannot find autocon...原创 2020-06-28 21:38:43 · 373 阅读 · 0 评论 -
php 5.6 编译参数 with-mysql
系统:centos 7版本:php 5.6--with-mysql=/Data/app/mysqlconfigure: error: Cannot find MySQL header files under /Data/app/mysql.Note that the MySQL client library is not bundled anymore!yum install -y mysql-devel--with-mysql=/usrconfigure: error: .原创 2020-06-26 17:01:24 · 232 阅读 · 0 评论 -
composer安装
环境:CentOS + MacOSx作用:PHP依赖管理版本:1.10.7# centos/usr/local/php/bin/php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');”/usr/local/php/bin/php composer-setup.phpmv composer.phar /usr/local/bin/composer 「全域」...原创 2020-06-14 19:28:34 · 130 阅读 · 0 评论 -
mysql5.6编译安装
# 工具yum -y install gccyum -y install gcc-c++yum -y install makeyum -y install cmake (注:Mysql 5.5后不再使用 ./configure 改用 cmake 编译工具)//wget wgethttp://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gz;tar -zxf cmake-3.1.1.tar.gz;./bootstrap;make;make insta.原创 2020-05-26 09:53:53 · 201 阅读 · 0 评论