摘要: 1.最简单的基础架构: 业务服务器+数据库服务器 2.访问量增加、计算量增加造成业务服务器卡顿,架构增加业务服务器负载均衡 cdn+nginx负载均衡+业务服务器+数据库服务器 3.数据量增加造成查询变慢,架构增加读写分离、主从复制、分库分表 cdn+nginx负载均衡+业务服务器器+数据库多机主从 阅读全文
posted @ 2023-06-20 22:33 我要的我现在就要 阅读(60) 评论(0) 推荐(0)
摘要: (一)搭建websocket服务 步骤一:给PHP安装swoole扩展 步骤二:进入项目目录,执行 composer require topthink/think-swoole,安装think-swoole扩展 步骤三:修改配置文件swoole.php server.host 服务器IP,一般为 1 阅读全文
posted @ 2023-01-31 15:09 我要的我现在就要 阅读(541) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/daily886/article/details/90051167 php7拓展 sapnwrfc 介绍 https://php7-sapnwrfc.readthedocs.io/zh/latest/introduction.html php7- 阅读全文
posted @ 2022-04-21 21:59 我要的我现在就要 阅读(532) 评论(0) 推荐(0)
摘要: iota是go语言的常量计数器,只能在常量的表达式中使用。 iota在const关键字出现时将被重置为0。const中每新增一行常量声明将使iota计数一次(iota可理解为const语句块中的行索引)。 使用iota能简化定义,在定义枚举时很有用。 举个例子: const ( n1 = iota 阅读全文
posted @ 2022-04-19 22:14 我要的我现在就要 阅读(667) 评论(0) 推荐(0)
摘要: 空白标识符 _ 也被用于抛弃值,如值 5 在:_, b = 5, 7 中被抛弃。 _ 实际上是一个只写变量,你不能得到它的值。这样做是因为 Go 语言中你必须使用所有被声明的变量,但有时你并不需要使用从一个函数得到的所有返回值。 阅读全文
posted @ 2022-04-19 21:58 我要的我现在就要 阅读(53) 评论(0) 推荐(0)
摘要: 方式一:使用var关键字,函数内 包内均可使用 var a,b bool var a,b string="hello","world" var a,b,c=5,"hello",true var( a="hello", b="world" c=5 d=true ) 方式二:使用:=定义变量,只能用于函 阅读全文
posted @ 2022-04-19 21:57 我要的我现在就要 阅读(410) 评论(0) 推荐(0)
摘要: 业务场景:PHP消费对接Java rocketmq生产 消费模式:Push 处理方案:centos7x搭建rocketmq-client-php,php版本php7x(php -version检查php版本) 参考链接:https://gitee.com/apaas_framework/rocket 阅读全文
posted @ 2022-04-18 22:31 我要的我现在就要 阅读(3624) 评论(0) 推荐(1)
摘要: 敏感文件限制访问: location ~ /\.ht { deny all; } location ~* \.(ini|conf|txt|log|gitignore|sql|bak|inc|old|sh)$ { deny all; } location ~ .*\.(svn|git) { deny 阅读全文
posted @ 2022-04-14 22:45 我要的我现在就要 阅读(537) 评论(0) 推荐(0)
摘要: **centos7.5 + nginx-1.16.1+mysql-5.6+php-7.2.24** ~~~ 配置文件位置: nginx:/mnt/data/apps/nginx/conf/nginx.conf mysql:/etc/my.cnf php7:/mnt/data/apps/php7/et 阅读全文
posted @ 2022-04-14 22:36 我要的我现在就要 阅读(529) 评论(0) 推荐(0)
摘要: Syntax Error: Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree. 第一步 npm install @vue/compil 阅读全文
posted @ 2021-12-05 13:25 我要的我现在就要 阅读(2385) 评论(2) 推荐(0)