04 2022 档案
摘要:原文链接:https://blog.csdn.net/daily886/article/details/90051167 php7拓展 sapnwrfc 介绍 https://php7-sapnwrfc.readthedocs.io/zh/latest/introduction.html php7-
阅读全文
摘要:iota是go语言的常量计数器,只能在常量的表达式中使用。 iota在const关键字出现时将被重置为0。const中每新增一行常量声明将使iota计数一次(iota可理解为const语句块中的行索引)。 使用iota能简化定义,在定义枚举时很有用。 举个例子: const ( n1 = iota
阅读全文
摘要:空白标识符 _ 也被用于抛弃值,如值 5 在:_, b = 5, 7 中被抛弃。 _ 实际上是一个只写变量,你不能得到它的值。这样做是因为 Go 语言中你必须使用所有被声明的变量,但有时你并不需要使用从一个函数得到的所有返回值。
阅读全文
摘要:方式一:使用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 ) 方式二:使用:=定义变量,只能用于函
阅读全文
摘要:业务场景:PHP消费对接Java rocketmq生产 消费模式:Push 处理方案:centos7x搭建rocketmq-client-php,php版本php7x(php -version检查php版本) 参考链接:https://gitee.com/apaas_framework/rocket
阅读全文
摘要:敏感文件限制访问: location ~ /\.ht { deny all; } location ~* \.(ini|conf|txt|log|gitignore|sql|bak|inc|old|sh)$ { deny all; } location ~ .*\.(svn|git) { deny
阅读全文
摘要:**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
阅读全文