上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 概念理解 我们先来介绍控制反转,依赖注入,这两个概念我们可以认为他们表达的同一种意思,举个通俗的例子,我们用户登录需要提供记录日志的功能,可以选择使用文件或者数据库。下面我们用代码来演示。 // 定义写日志的接口规范 interface log { public function write(); 阅读全文
posted @ 2021-06-08 11:36 这该死的代码 阅读(225) 评论(0) 推荐(0)
摘要: ​ 如何共享session session的数据默认是保存在磁盘文件中。假设这种情况:多台php服务器进行负载均衡的时候,比如有三台php服务器,为了实现负载均衡,那么三台服务器上面的php代码都是一样(拷贝一份)。 生成session数据文件都是在本地了(a,b,c各自的服务器磁盘上)。负载均衡的 阅读全文
posted @ 2021-06-01 10:33 这该死的代码 阅读(374) 评论(0) 推荐(0)
摘要: 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)
摘要: 一.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)
摘要: ①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)
摘要: 下载: ​ 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)
摘要: nginx 下载: http://nginx.org/en/download.html Nginx的版本有: Mainline version:Mainline 是 Nginx 目前主力在做的版本,可以说是开发版。 Stable version:最新稳定版,生产环境上建议使用的版本。 Legacy 阅读全文
posted @ 2021-05-20 17:01 这该死的代码 阅读(1516) 评论(0) 推荐(0)
摘要: /* * 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)
摘要: 首先安装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)
摘要: 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 下一页