最新文章

MySQL/MariaDBSQL计算字符出现次数

SQL计算字符出现次数

表结构CREATETABLE`customers`(`customerNumber`int(11)NOTNULL,`customerName`varchar(50)NOTNULL,PRIMARYKEY(`customerNumber`))ENGINE=InnoDBDEFAULTCHARSET=utf8表数据customerNumbercustomerName--------------------------------------------------103Ateliergraphique112Sig
CentOSlnmp1.4 安装php fileinfo扩展

lnmp1.4 安装php fileinfo扩展

第一步:在lnmp1.4找到php安装的版本使用命令 tar -jxvf php-7.1.7.tar.bz2 解压第二步: 在解压的php-7.1.7文件夹里找到fileinfo文件夹,然后使用命令 cd /home/xxx/lnmp1.4/src/php-7.1.7/ext/fileinfo 进入到fileinfo文件夹第三步:/usr/local/php/bin/phpize,得到数...
Nginx解决nginx下不能require根目录以外的文件

解决nginx下不能require根目录以外的文件

我们常规的做法是将统一入口文件、css、js这些放在网站根木,其他php文件放到根目录外部,这个时候nginx访问是require不到的,需要设定一下1、编辑nginx配置文件vi/usr/local/nginx/conf/nginx.conf在http下添加includefastcgi.conf:wq保存2、vi /usr/local/nginx/conf/fastcgi.conf...
Nginxngxin开启rewrite伪静态

ngxin开启rewrite伪静态

1、编辑nginx配置文件vi/usr/local/nginx/conf/nginx.conf#includeenable-php.conf;includeenable-php-pathinfo.conf;2、在server后面加上location/{if(!-e$request_filename){rewrite^/(.*)$/index.php/$1last;break;}}location~/index.php{fastcgi_pass127.0.0.1:9000;fastcgi_inde...
MySQL/MariaDB配置mysql允许远程连接的方法

配置mysql允许远程连接的方法

默认情况下,mysql只允许本地登录,如果要开启远程连接,则需要修改/etc/mysql/my.conf文件。一、修改/etc/mysql/my.conf找到bind-address = 127.0.0.1这一行改为bind-address = 0.0.0.0即可二、为需要远程登录的用户赋予权限1、新建用户远程连接mysql数据库grant all on *.*...
Shell脚本Shell根据年月日创建文件夹

Shell根据年月日创建文件夹

#!/bin/shdir_path="/vol/project/log/test/"foryearin{2012..2013}do#echo"$year"cd$dir_pathmkdir$yearformonthin{1..12}do#echo"$month"month_dir="$dir_path/$year"cd$month_dirmkdir$monthfordayin{1..31}do#echo"$day&qu
数据库主从同步Redis主从配置

Redis主从配置

一、redis安装$ wgethttp://download.redis.io/releases/redis-2.8.17.tar.gz$tarxzfredis-2.8.17.tar.gz$cdredis-2.8.17$make二、redis启动$cdredis-2.8.17$src/redis-server ./redis.conf #启动redis或者$src/redis-server ./redis.conf & #后台启动三、主从配置1、拷贝redis...
PHP在PHP中如何使用消息列队(RabbitMQ)

在PHP中如何使用消息列队(RabbitMQ)

/***消息列队服务*@example*-----------------------------------Create----------------------------------------*$array=array('a','b','c','d');*$this->load->library('amqp_service')
PHPIOS苹果购买PHP服务器端验证(订阅购买和一次性购买通用)

IOS苹果购买PHP服务器端验证(订阅购买和一次性购买通用)

//正式环境验证地址$ios_verify_url='https://buy.itunes.apple.com/verifyReceipt';//测试环境验证地址$ios_sandbox_verify_url='https://sandbox.itunes.apple.com/verifyReceipt';$defaults=array(CURLOPT_POST=>1,CURLOPT_HEADER=>0,CURLOPT_URL=&
PHPAndroid Google购买PHP服务器端验证(订阅购买和一次性购买)

Android Google购买PHP服务器端验证(订阅购买和一次性购买)

一、订阅购买验证android端采用google service account进行校验1、打开https://cloud.google.com/console创建一个project;2、打开project->APIs & auth->Credentials点击CREATE NEW CLIENT ID创建一个SERVICE ACCOUNT;3、打开project->APIs & auth->APIs Google Play ...
热门搜索词