会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2021年6月8日
PHP依赖注入、控制反转、
摘要: 概念理解 我们先来介绍控制反转,依赖注入,这两个概念我们可以认为他们表达的同一种意思,举个通俗的例子,我们用户登录需要提供记录日志的功能,可以选择使用文件或者数据库。下面我们用代码来演示。 // 定义写日志的接口规范 interface log { public function write();
阅读全文
posted @ 2021-06-08 11:36 这该死的代码
阅读(225)
评论(0)
推荐(0)
2021年6月1日
session 共享
摘要: 如何共享session session的数据默认是保存在磁盘文件中。假设这种情况:多台php服务器进行负载均衡的时候,比如有三台php服务器,为了实现负载均衡,那么三台服务器上面的php代码都是一样(拷贝一份)。 生成session数据文件都是在本地了(a,b,c各自的服务器磁盘上)。负载均衡的
阅读全文
posted @ 2021-06-01 10:33 这该死的代码
阅读(374)
评论(0)
推荐(0)
2021年5月26日
centos7 glibc二进制包方式安装mysql-5.7
摘要: Mysql二进制 glibc 安装 下载 地址:https://downloads.mysql.com/archives/community/ 安装 官方安装文档:https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html 警示语
阅读全文
posted @ 2021-05-26 14:47 这该死的代码
阅读(220)
评论(0)
推荐(0)
centos7 源码编译安装mysql5.7
摘要: 一.MYSQL 源代码 编译安装 官方教程:mysql源代码编译安装 第一步:安装MySql编译所需要用到的依赖库 # yum -y install ncurses-devel cmake libaio-devel openssl-devel install gcc gcc-c++ # rm -f
阅读全文
posted @ 2021-05-26 10:05 这该死的代码
阅读(405)
评论(0)
推荐(0)
2021年5月21日
centos7 php与nginx 整合
摘要: ①nginx.conf #server段添加 location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } ②重启 ngxin nginx -s reload ③ 在
阅读全文
posted @ 2021-05-21 11:36 这该死的代码
阅读(107)
评论(0)
推荐(0)
centos7 上 安装 php8.0
摘要: 下载: https://www.php.net/downloads https://www.php.net/distributions/php-8.0.6.tar.gz 编译安装php: ①安装依赖: yum -y install libxml2-devel sqlite-devel bzi
阅读全文
posted @ 2021-05-21 11:30 这该死的代码
阅读(1620)
评论(0)
推荐(0)
2021年5月20日
centos7 上 安装 nginx1.20
摘要: nginx 下载: http://nginx.org/en/download.html Nginx的版本有: Mainline version:Mainline 是 Nginx 目前主力在做的版本,可以说是开发版。 Stable version:最新稳定版,生产环境上建议使用的版本。 Legacy
阅读全文
posted @ 2021-05-20 17:01 这该死的代码
阅读(1516)
评论(0)
推荐(0)
2021年5月13日
laravel 获取路由中? 问号 后面的参数
摘要: /* * http://127.0.0.1:8000/index?id=5 * hello_5 **/ Route::get('index/',function (){ return 'hello_'.$_GET['id']; }); /* * 控制器接收 ?(问号)参数 * http://127.
阅读全文
posted @ 2021-05-13 14:11 这该死的代码
阅读(432)
评论(0)
推荐(0)
2021年5月12日
centos7 上安装 Memached
摘要: 首先安装l memached 所需的 libevent 库 yum -y install gcc yum -y install gcc-c++ yum -y install openssl-devel #官网下载 https://libevent.org/ tar -zxvf libevent-2.
阅读全文
posted @ 2021-05-12 14:28 这该死的代码
阅读(88)
评论(0)
推荐(0)
2021年4月22日
php 的 几种运行方式
摘要: web 服务器 在设计之初 是为了给用户提供静态资源的! php5_module 用LoadModule 来加载php5_module, 把php作为apache 的一个子模块来运行。apache 与php 通讯 当通过web访问php文件时,apahce就会调用php5_module来解析php代
阅读全文
posted @ 2021-04-22 13:27 这该死的代码
阅读(478)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告