MySQL/MariaDB 表结构CREATETABLE`customers`(`customerNumber`int(11)NOTNULL,`customerName`varchar(50)NOTNULL,PRIMARYKEY(`customerNumber`))ENGINE=InnoDBDEFAULTCHARSET=utf8表数据customerNumbercustomerName--------------------------------------------------103Ateliergraphique112Sig
阅读114 2018-04-14 08:41:07
CentOS 第一步:在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,得到数...
阅读90 2009-10-01 14:34:44
Nginx 我们常规的做法是将统一入口文件、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...
阅读248 2009-10-01 14:34:44
Nginx 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...
阅读116 2009-10-01 14:34:44
MySQL/MariaDB 默认情况下,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 *.*...
阅读98 2009-10-01 14:34:44
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
阅读94 2009-10-01 14:34:44
数据库主从同步 一、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...
阅读116 2009-10-01 14:34:44
PHP /***消息列队服务*@example*-----------------------------------Create----------------------------------------*$array=array('a','b','c','d');*$this->load->library('amqp_service')
阅读96 2009-10-01 14:34:44
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=&
阅读108 2009-10-01 14:34:44
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 ...
阅读221 2009-10-01 14:34:44