博客园 - StudyBlog
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=45043
2022-05-09T09:20:19Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
feed.cnblogs.com
https://www.cnblogs.com/IT--Loding/p/10439310.html
rsync + git发布项目 - StudyBlog
前言: 更新项目的时候需要将更改的文件一一上传,这样比较麻烦,用版本控制器git +rsync 搭建一个发布服务器,以后发布文件非常方便 首先说下,我这边的更新流程,本地写完之后,git push 到测试服,测试服测试完毕,运行脚本rsync.sh(此脚本先将代码 git pull到测试服,再rsy
2019-02-27T06:58:00Z
2019-02-27T06:58:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】前言: 更新项目的时候需要将更改的文件一一上传,这样比较麻烦,用版本控制器git +rsync 搭建一个发布服务器,以后发布文件非常方便 首先说下,我这边的更新流程,本地写完之后,git push 到测试服,测试服测试完毕,运行脚本rsync.sh(此脚本先将代码 git pull到测试服,再rsy <a href="https://www.cnblogs.com/IT--Loding/p/10439310.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/10368499.html
nginx下配置Yii2 rewrite、pathinfo等 - StudyBlog
环境说明: 我试用的lnmp安装包安装的nginx,nginx版本是1.14.1
2019-02-13T02:34:00Z
2019-02-13T02:34:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】环境说明: 我试用的lnmp安装包安装的nginx,nginx版本是1.14.1 <a href="https://www.cnblogs.com/IT--Loding/p/10368499.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/10368459.html
nginx下根据指定路由重定向 - StudyBlog
前言: 最近在搭建vue后台,后端接口是PHP写的,线上构建好之后,需要请求其他域名下的接口,开发环境已经使用proxytable解决了接口问题,为了开发和生成的代码一致, 编译后的代码,放在nginx下运行,配置了路由重写。 项目说明: 前端页面域名 front.me,后端接口backend.me
2019-02-13T02:29:00Z
2019-02-13T02:29:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】前言: 最近在搭建vue后台,后端接口是PHP写的,线上构建好之后,需要请求其他域名下的接口,开发环境已经使用proxytable解决了接口问题,为了开发和生成的代码一致, 编译后的代码,放在nginx下运行,配置了路由重写。 项目说明: 前端页面域名 front.me,后端接口backend.me <a href="https://www.cnblogs.com/IT--Loding/p/10368459.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/10368323.html
新装NGINX重启,出现错误 nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" - StudyBlog
重装nginx出现,重启出现错误 ./nginx -s reload nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 解决办法: 命令解释: 设置成功之后在之前
2019-02-13T02:07:00Z
2019-02-13T02:07:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】重装nginx出现,重启出现错误 ./nginx -s reload nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 解决办法: 命令解释: 设置成功之后在之前 <a href="https://www.cnblogs.com/IT--Loding/p/10368323.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/10213210.html
wamp mysql服务意外停止 - StudyBlog
出现问题: MySQL启动一段时间之后,意外停止。可以再次启动,但是过不了多久又自动停止了。 发现问题: 查看错误日志,发现以下问题: 解决方案: 网上网友分享以下操作: 1、删除data文件夹里面的文件ib_logfile0 和 ib_logfile1 2、在my.ini [mysqld] 添加配
2019-01-04T06:12:00Z
2019-01-04T06:12:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】出现问题: MySQL启动一段时间之后,意外停止。可以再次启动,但是过不了多久又自动停止了。 发现问题: 查看错误日志,发现以下问题: 解决方案: 网上网友分享以下操作: 1、删除data文件夹里面的文件ib_logfile0 和 ib_logfile1 2、在my.ini [mysqld] 添加配 <a href="https://www.cnblogs.com/IT--Loding/p/10213210.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/9063568.html
PHP异步请求 - StudyBlog
正常情况下,PHP都是同步请求,脚本右上而下依次执行,必须等上一步请求好了,才能进行下一步操作,这种效率在某些时候是不必要的,如发送邮件等操作,是可以异步处理的。 PHP异步也很不少插件,我们使用的是原生的PHP函数,fsockopen(),改函数http请求和socket都可以。 这个函数官网手册
2018-05-20T07:34:00Z
2018-05-20T07:34:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】正常情况下,PHP都是同步请求,脚本右上而下依次执行,必须等上一步请求好了,才能进行下一步操作,这种效率在某些时候是不必要的,如发送邮件等操作,是可以异步处理的。 PHP异步也很不少插件,我们使用的是原生的PHP函数,fsockopen(),改函数http请求和socket都可以。 这个函数官网手册 <a href="https://www.cnblogs.com/IT--Loding/p/9063568.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/8916835.html
php curl_errno 60 - StudyBlog
重启PHP
2018-04-23T03:20:00Z
2018-04-23T03:20:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】重启PHP <a href="https://www.cnblogs.com/IT--Loding/p/8916835.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/8397526.html
php开启fileinfo扩展 - StudyBlog
1、检查当前环境: 1 看是否已安装fileinfo扩展,若没有,则进行下一步。 2、安装fileinfo扩展 2.1、下载扩展包 根据各自的版本号进行下载 1 2.2、解压 1 2.3、进入该扩展目录 1 该扩展暂时解压在/alidata/server/php目录下 2.4、编译 && 安装 1
2018-04-02T12:15:00Z
2018-04-02T12:15:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】1、检查当前环境: 1 看是否已安装fileinfo扩展,若没有,则进行下一步。 2、安装fileinfo扩展 2.1、下载扩展包 根据各自的版本号进行下载 1 2.2、解压 1 2.3、进入该扩展目录 1 该扩展暂时解压在/alidata/server/php目录下 2.4、编译 && 安装 1 <a href="https://www.cnblogs.com/IT--Loding/p/8397526.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/8505199.html
centos6.9 升级内核版本 - StudyBlog
想在centos6.9上安装docket,不过因为内核版本是2.6的故而想升级到最新的内核版本 晚上有编译升级的比较麻烦,不过有助于理解内核升级,我使用的直接升级到最新版方法 1. 导入public key 2. 安装ELRepo到CentOS 3、安装 kernel-lt(lt=long-term
2018-03-04T09:09:00Z
2018-03-04T09:09:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】想在centos6.9上安装docket,不过因为内核版本是2.6的故而想升级到最新的内核版本 晚上有编译升级的比较麻烦,不过有助于理解内核升级,我使用的直接升级到最新版方法 1. 导入public key 2. 安装ELRepo到CentOS 3、安装 kernel-lt(lt=long-term <a href="https://www.cnblogs.com/IT--Loding/p/8505199.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/8504732.html
nginx php 配置跨域 - StudyBlog
我使用的是lnmp一键安装包在虚拟记住添加 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'OPTION, POST, GET'; ...
2018-03-04T06:59:00Z
2018-03-04T06:59:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】我使用的是lnmp一键安装包在虚拟记住添加 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'OPTION, POST, GET'; ... <a href="https://www.cnblogs.com/IT--Loding/p/8504732.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6743083.html
composer安装以及更新问题,配置中国镜像源。 - StudyBlog
配置国内镜像源 中国镜像源 https://pkg.phpcomposer.com/ composer 中文官网地址 http://www.phpcomposer.com/ 下载 Composer 安装前请务必确保已经正确安装了 PHP。打开命令行窗口并执行 php -v 查看是否正确输出版本号。
2018-01-30T08:51:00Z
2018-01-30T08:51:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】配置国内镜像源 中国镜像源 https://pkg.phpcomposer.com/ composer 中文官网地址 http://www.phpcomposer.com/ 下载 Composer 安装前请务必确保已经正确安装了 PHP。打开命令行窗口并执行 php -v 查看是否正确输出版本号。 <a href="https://www.cnblogs.com/IT--Loding/p/6743083.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6795777.html
PHP使用文件排它锁,应对小型并发 - StudyBlog
众所周知,并发容易造成数据的重复处理,我的一个项目给游戏客户端提供了接口,游戏用户相对较多,如果使用数据库排它锁消耗的资源较高,因而使用了文件的排它锁来应对并发。 思路是打开一个文件并取得文件的独占锁,采用的是非阻塞,当程序运行完毕再释放独占锁资源。 /** * 加锁,独占锁 */ public f
2018-01-30T08:50:00Z
2018-01-30T08:50:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】众所周知,并发容易造成数据的重复处理,我的一个项目给游戏客户端提供了接口,游戏用户相对较多,如果使用数据库排它锁消耗的资源较高,因而使用了文件的排它锁来应对并发。 思路是打开一个文件并取得文件的独占锁,采用的是非阻塞,当程序运行完毕再释放独占锁资源。 /** * 加锁,独占锁 */ public f <a href="https://www.cnblogs.com/IT--Loding/p/6795777.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/7692911.html
配置phpstorm自动上传代码 - StudyBlog
本地的项目目录是 D:\www\guandan 虚拟机上的项目目录是 /var/www/guandan
2018-01-30T08:37:00Z
2018-01-30T08:37:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】本地的项目目录是 D:\www\guandan 虚拟机上的项目目录是 /var/www/guandan <a href="https://www.cnblogs.com/IT--Loding/p/7692911.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/8251304.html
linux 安装 PHP fileinfo 扩展 - StudyBlog
将windows解压Linux服务器 1、错误: PHP Fileinfo extension must be installed/enabled to use Intervention Image. 2、原因: 缺少 fileinfo扩展,一般安装包编译的时候考虑到fileinfo需要的资源比较多
2018-01-30T08:35:00Z
2018-01-30T08:35:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】将windows解压Linux服务器 1、错误: PHP Fileinfo extension must be installed/enabled to use Intervention Image. 2、原因: 缺少 fileinfo扩展,一般安装包编译的时候考虑到fileinfo需要的资源比较多 <a href="https://www.cnblogs.com/IT--Loding/p/8251304.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/7106781.html
open_basedir restriction in effect,解决php引入文件权限问题 - StudyBlog
一、前言 今天在Ubuntu安装了lnmp环境,运行项目的时候出现了,引入500的错误 二、查看错误 再项目文件入口添加,代码显示错误内容,查看到一下错误 三、分析错误内容 查看问题描述以及资料,发现是php open_basedir 配置的问题,php不能引入其授权目录上级及其以上的文件,默认配置
2017-07-02T10:48:00Z
2017-07-02T10:48:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】一、前言 今天在Ubuntu安装了lnmp环境,运行项目的时候出现了,引入500的错误 二、查看错误 再项目文件入口添加,代码显示错误内容,查看到一下错误 三、分析错误内容 查看问题描述以及资料,发现是php open_basedir 配置的问题,php不能引入其授权目录上级及其以上的文件,默认配置 <a href="https://www.cnblogs.com/IT--Loding/p/7106781.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/7050109.html
Linux下php安装memcache扩展 - StudyBlog
一 、下载编译文件 下载地址:http://pecl.php.net/package/memcache 文件名:memcache-3.0.8.tgz 可以下载在本地上传到服务器,或者在服务器 下载 二、进行编译安装 安装完成之后会提示 Installing shared extensions: /u
2017-06-19T11:18:00Z
2017-06-19T11:18:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】一 、下载编译文件 下载地址:http://pecl.php.net/package/memcache 文件名:memcache-3.0.8.tgz 可以下载在本地上传到服务器,或者在服务器 下载 二、进行编译安装 安装完成之后会提示 Installing shared extensions: /u <a href="https://www.cnblogs.com/IT--Loding/p/7050109.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6973610.html
LNMP一键安装包开启pathinfo和rewrite模式 - StudyBlog
此教程适用于集成安装包lnmp,官网是https://lnmp.org/ 一、 开启pathinfo 二、 开启rewrite 在server最后添加如些的配置 三、 重启服务 service nginx restart
2017-06-09T12:22:00Z
2017-06-09T12:22:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】此教程适用于集成安装包lnmp,官网是https://lnmp.org/ 一、 开启pathinfo 二、 开启rewrite 在server最后添加如些的配置 三、 重启服务 service nginx restart <a href="https://www.cnblogs.com/IT--Loding/p/6973610.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6918098.html
MySQL开启远程连接 - StudyBlog
开启MySQL的基本语法是grant授权,这个一般都没有什么问题,主要是开启之后可能还是连接不上 可能会出现如下的错误提示 确认成功授权之后(具体查看方法在文底),出现如下的问题可能有两种原因,一种是防火墙问题,一种是MySQL配置绑定了本地127.0.0.1。 一、防火墙问题 防火墙没有开启330
2017-06-04T07:42:00Z
2017-06-04T07:42:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】开启MySQL的基本语法是grant授权,这个一般都没有什么问题,主要是开启之后可能还是连接不上 可能会出现如下的错误提示 确认成功授权之后(具体查看方法在文底),出现如下的问题可能有两种原因,一种是防火墙问题,一种是MySQL配置绑定了本地127.0.0.1。 一、防火墙问题 防火墙没有开启330 <a href="https://www.cnblogs.com/IT--Loding/p/6918098.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6853083.html
nginx下配置laravel+rewrite重写 - StudyBlog
server { listen 80; server_name ha.d51v.cn; #access_log /data/wwwlogs/access_nginx.log combined; root /data/wwwroot/demo/wechat_center/public; index index.html index.htm index.ph...
2017-05-14T09:32:00Z
2017-05-14T09:32:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】server { listen 80; server_name ha.d51v.cn; #access_log /data/wwwlogs/access_nginx.log combined; root /data/wwwroot/demo/wechat_center/public; index index.html index.htm index.ph... <a href="https://www.cnblogs.com/IT--Loding/p/6853083.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/IT--Loding/p/6852349.html
composer安装laravel-u-editor及其使用 - StudyBlog
前言 使用的框架是laravel5.1,是composer搭建的,可以直接配置composer,如果不是composer搭建的larave,需要先安装composer,具体安装发放可以参考composer中国官网, 国内最好配置中国镜像,不然很可能下载资源失败以及各种问题,composer中国镜像。
2017-05-14T06:33:00Z
2017-05-14T06:33:00Z
StudyBlog
https://www.cnblogs.com/IT--Loding/
【摘要】前言 使用的框架是laravel5.1,是composer搭建的,可以直接配置composer,如果不是composer搭建的larave,需要先安装composer,具体安装发放可以参考composer中国官网, 国内最好配置中国镜像,不然很可能下载资源失败以及各种问题,composer中国镜像。 <a href="https://www.cnblogs.com/IT--Loding/p/6852349.html" target="_blank">阅读全文</a>