阿里云虚拟主机实现Thinkphp6的伪静态规则 2023年07月13日 liziyu 5 location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?s=/$1 last; } } location ~ /\.ht { de... 阅读全文 0 评论
Golang生成可变长随机字符串 2023年07月07日 liziyu 6 func BytesToString(b []byte) (s string) { _bptr := (*reflect.SliceHeader)(unsafe.Pointer(&b)) _sptr := (*reflect.St... 阅读全文 0 评论
非常实用且常用的Linux知识 2023年07月05日 liziyu 6 1.Nginx 实现一个 IP 访问总流量限制http { limit_conn_zone $binary_remote_addr zone=conn_zone:10m; limit_req_zone $binary_remote_add... 阅读全文 0 评论