- 博客(163)
- 资源 (1)
- 收藏
- 关注
原创 SSL 证书
(适用于 Linux 系统)安装 Certbotsudo apt-get install certbot python3-certbot-nginx # Nginx 服务器sudo apt-get install certbot python3-certbot-apache # Apache 服务器获取和安装证书Y 同意协议Y 同意分享电子邮件1,2,3,4 多个域名一起配置自动更新Let's Encrypt 证书的有效期为 90 天。
2024-07-05 14:46:46 1001
原创 proxySQL 安装与配置
ProxySQL有配置文件/etc/proxysql.cnf和配置数据库文件/var/lib/proxysql/proxysql.db。如果想要让proxysql.cnf文件里的配置在重启proxysql服务后生效(即想要让proxysql重启时读取并解析proxysql.cnf配置文件),则需要先删除/var/lib/proxysql/proxysql.db数据库文件,然后再重启proxysql服务。编辑 /etc/proxysql.cnf 文件配置 ProxySQL。ProxySQL配置。
2024-05-11 17:18:21 509
原创 phpize +Visual Studio + MSYS2 + bison 草稿记录并未正常完成
在 PATH 中添加 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64。例 https://windows.php.net/downloads/releases/php-devel-pack-8.3.6-Win32-vs16-x64.zip。> pacman -S gcc 或者 > pacman -S mingw-w64-ucrt-x86_64-gcc。
2024-05-08 12:03:46 405
原创 pear + pecl 安装php扩展
让 CMD 支持 utf8卸载安装system12 修改 12. Name of configuration file : C:\Windows\pear.inienterphp.ini;;*****双击 PEAR_ENV.reg 添加注册表项查看pear版本查看pear配置。
2024-05-07 16:13:26 565
原创 xhell + privoxy 手动http代理设置
SSH -> 隧道 -> 添加 -> 类型:Dynamic(SOCKS4/5)侦听端口:1080。
2024-05-07 16:06:34 411
原创 XMVC 创建启动服务
服务单元文件通常存放在 /etc/systemd/system/ 目录或者 /lib/systemd/system/ 目录下。服务单元文件的命名约定通常以 .service 作为后缀,例如 myservice.service。字段指定了服务应该在哪个目标(target)中启动,例如。字段指定了服务应该在什么时候启动(在。部分包含了单元的描述和依赖关系。部分定义了服务的执行方式和行为。字段指定了启动服务时执行的命令。部分定义了服务的安装和启动方式。字段指定了服务的类型,例如。字段用于描述服务的作用。
2024-05-07 09:41:30 241
原创 Debian 德比安 Nginx + PHP + MySql + beanstalkd + rabbitMQ + APCu + Redis + Node.js
网卡模式选择桥接 mirrors.163.com阿里镜像源DeBian 安装软件选择时勾选上apt updateapt install sudo #安装 sudousermod -aG sudo username #添加普通账号到 sudo让 root 可以 SSH配置文件 /etc/ssh/sshd_config找到 PermitRootLogin 选项 并将其值修改为重启ssh先在 VirtualBox 上添加好。
2024-04-29 16:59:53 859 2
原创 tesseract ocr 安装/调用/训练
训练工具自带 tesseract-ocrjTessBoxEditor 需要依赖 jdk-8u201-windows-x64.exe下载地址开源地址调用 tessseract 的包WINDOWS 系统环境变量tesseract 1.png output -l eng //tesseract.exe 直接调用,会在目录下产生一个 output.txt 文件, -l 指定哪种语言,在 tessdata 目录下找 xxxx..traineddataPHP 调用。
2024-03-13 11:35:23 1178
原创 VSCODE + PHP Debug + 名字空间指引
PHP Debugsettings.json{ "php.validate.executablePath": "D:\\openresty-1.19.9.1-win64\\php\\php-8.1.4-nts-Win32-vs16-x64\\php.exe", "workbench.colorTheme": "Default Light+", "editor.fontSize": 16, "intelephense.environment.include..
2022-04-20 17:48:42 764
原创 Doctrine 查询语法
Doctrine Query Language - Doctrine Object Relational Mapper (ORM)显性的事务 qgmvc封装$orm = orm();$orm->begin();try{......$orm->commit();}catch (\Throwable | \Exception $e){$orm->rollBack();}Repository$reposi...
2022-04-06 16:39:37 352
原创 ORM Doctrine 使用-准备
安装2.11.0 安装Installation and Configuration - Doctrine Object Relational Mapper (ORM)composer.jsoncomposer install{ "require": { "symfony/cache": "^5.4", "doctrine/annotations": "^1.13", "doctrine/orm": "^2.11.0", },
2022-04-02 11:19:49 946
原创 php8.1 fastcgi windows安装与配置
PHP: Hypertext Preprocessor安装 VS16https://aka.ms/vs/16/release/VC_redist.x64.exe下载 php nts-x64 并解压PHP For Windows: Binaries and sources Releases从 php.ini-development 复制一份 php.inicmd运行php-cgi.exe -b 127.0.0.1:9000Niginx API模式配置 location.
2022-04-01 17:51:08 2372
原创 github 操作
右键 Git Base Here$ ssh-keygen -t ed25519 -C "313143468@qq.com"ssh-keygen -t rsa -C "313143468@qq.com"C:\Users\Administrator\.ssh打开id_rsa.pub,复制里面的keyhttps://github.com/settings/keyssetting->ssl key验证ssh -T git@github.com设置username和emailgit .
2022-03-23 09:05:04 115
原创 Vue Grid DevExtreme
Add DevExtreme to a Vue Application: DevExtreme - JavaScript UI Components for Angular, React, Vue and jQuery by DevExpress 21.2npm install devextreme@21.2 devextreme-vue@21.2 --save --save-exactmain.jsimport 'devextreme/dist/css/dx.light.css';..
2022-03-16 09:07:41 534
原创 vue + bootstrap5
BootstrapVue-基于VueJS的Bootstrap框架 · 全球最流行的 HTML、CSS 和 JS 工具库。安装 bootstrapnpm install bootstrap-vue bootstraprouter/index.jsimport { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue'import 'bootstrap/dist/css/bootstrap.css'import 'bootstra.
2022-03-14 15:00:56 3338
原创 Vue安装 + Hello world
npm 安装安装 nodejs 自带 npmhttps://nodejs.org/en/下载 node-v16.14.0-x64.msi注win7 只支持到最大版本 node-v12.22.10-x86.msi检测$ node -vvue 安装如果访问国外慢 可以用不用 cnpm, $ npm install -g cnpm --registry=https://registry.npmmirror.com创建一个 npm 目录,例 x:\npm# 最新稳定版$ npm ins..
2022-03-11 16:37:12 686
原创 MYSQL 事件
DELIMITER $$CREATE DEFINER=`root`@`%` EVENT `event_hour` ON SCHEDULE EVERY 1 HOUR STARTS '2022-02-23 01:00:00' ON COMPLETION PRESERVE ENABLE COMMENT '每小时' DO BEGINSET @hour = CONVERT(DATE_FORMAT(NOW(),'%k'), UNSIGNED INTEGER);IF @hour>6 AND @hour&l.
2022-02-23 13:09:21 289
原创 RabbitMQ 安装与使用
RabbitMQ 消息队列[10分钟入门](https://blog.csdn.net/php_lzr/article/details/99635346)#Windwos下安装- [官方安装文档](https://www.rabbitmq.com/install-windows-manual.html)- [下载 erlang win64_v22.3](https://www.erlang.org/downloads)- [下载 RabbitMQ v3.8.3](https://github.
2022-02-22 12:43:07 1254
原创 redis 安装
WINDOWSGitHub - microsoftarchive/redis: Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes修改配置C:\Program Files\Redis\redis.wi
2022-02-19 16:03:04 338
原创 openfire php
支持PHP的XMPP服务协议:XMPPHP支持XMPP的JS库:StropheJSjQuery:jQueryXMPP服务器:OpenFireApache http.confLoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.so
2022-02-19 11:35:16 84
原创 grpc + go + php
GO GRPC 安装安装 protoc下载 https://github.com/protocolbuffers/protobuf/releases/latest$cd %GOPATH%将解析的后的 protoc.exe 文件放入 %GOPATH%/bin$protoc --version安装protoc-gen-go$go get -u github.com/golang/protobuf/protoc-gen-go或者手动安装下载源码,解压到 %GOPATH%/s...
2022-02-18 19:04:29 318
转载 PHP OPCAHCE
zend_extension=opcache.so #引入扩展 php7中默认已经装好了 [opcache];opcache开关opcache.enable=1 ;CLI环境下,PHP启用OPcacheopcache.enable_cli=1;OPcache共享内存存储大小,单位MBopcache.memory_consumption=128 ;PHP使用了一种叫做字符串驻留(string interning)的技术来改善性能。例如,如果你在代码中使用了1000次字符串...
2022-02-18 10:20:18 171
原创 CentOS7 操作
[systemctl]systemctl是CentOS7的服务管理工具中主要的工具,它融合了之前版本的service和chkconfig功能启动一个服务:systemctl start firewalld.service关闭一个服务:systemctl stop firewalld.service重启一个服务:systemctl restart fi...
2022-02-18 09:48:29 215
原创 ab 与 abs 测试详解
通常使用的命令是ab –c –n –k -r,分别表示:模拟终端数、发送包数、请求是否带keepalive、忽略错误,默认都是以GET方式去请求的测试10个用户并发 1000个请求$ab -c 10 -n 1000 http://127.0.0.1:90/tpl测试10个用户并发 1000个请求, 测试总时间为 100秒内$ab -c 10 -n 1000-t 100 http://127.0.0.1:90/tpl测试10个用户并发 1000个请求, POST 请求...
2022-02-14 10:45:44 1932
原创 go zero 框架
https://github.com/zeromicro/go-zero/blob/master/readme-cn.mdhttps://github.com/zeromicro/go-zero/blob/master/readme-cn.md简介 · go-zero documenthttps://go-zero.dev/cn/安装安装 goctl$go install github.com/zeromicro/go-zero/tools/goctl@latest$goctl -v
2022-02-11 14:57:48 1063
原创 nginx + lua + template + go
nginx 配置#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { #DNS解析 resolver 8.8.
2022-02-11 14:11:43 1264
原创 lua 的模板 lua-resty-template
https://github.com/bungle/lua-resty-templatehttps://github.com/bungle/lua-resty-templateNginx 配置 server { ...... set $template_root ./site/demo/tpl; location /tpl { default_type text/html; conte
2022-02-09 15:32:24 1401
原创 lua2go 为 lua 添加扩展
GitHub - theganyo/lua2go: Easy access to your Go (Golang) modules from Lua and NGINX!Easy access to your Go (Golang) modules from Lua and NGINX! - GitHub - theganyo/lua2go: Easy access to your Go (Golang) modules from Lua and NGINX!https://github.com/thega
2022-02-09 09:09:39 365
原创 GO的lua虚拟机 gopher-lua
https://github.com/yuin/gopher-luahttps://github.com/yuin/gopher-luaLua 5.1 Reference Manual - contentshttp://www.lua.org/manual/5.1/go 中使用 luapackage mainimport ( lua "github.com/yuin/gopher-lua")func main() { l := lua.NewState() defer l...
2022-02-08 13:28:05 1424
原创 Nginx Lua 安装与配置
OpenResty - 安装Nginx 配置 location /test { #是否开通lua编译缓存 lua_code_cache off; default_type text/html; content_by_lua_file D:/openresty-1.19.9.1-win64/lualib/test/test.lua; }LUA DEMO
2022-02-08 09:10:18 1872
php 汉字转拼音类
2011-02-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人