Loading

龙行博客

Nginx常用配置自用收藏一波

Nginx配置文件路径:不同安装方式,nginx的文件存放路径也有所不同。 源码编译安装方式:通常在/usr/local/nginx/conf目录下。 yum安装方式:通常在/etc/nginx/目录(主配置文件)与/etc/nginx/conf.d目录下。 Docker启动的nginx,一般也在/etc/nginx目录下。 Nginx主配置文件调优 # 启动用户改为 root,避免权限问题报错。 user root; # 定义了 nginx 在为你的网站提供服务时,worker 进程的数量。工作进程一般设置为 CPU 的线程数,这里设置成 auto...

Hyperf-redis锁

Hyperf-redis锁 直接使用 <?php declare(strict_types=1); /** * * This is my open source code, please do not use it for commercial applications. * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code * * @a...

hyperf-jwt登录限制登录次数

hyperf

Gitlab超级简单部署

Gitlab超级简单部署 1.环境和准备工作 操作系统:Centos7测试没问题 IP地址:192.168.19.135 2.建立git用户 useradd git passwd git 3.关闭防火墙 systemctl stop firewalld systemctl disabled firewalld 4.安装依赖库 # yum install curl openssh-server postfix cronie # service postfix start # chkconfig postfix on 5.安装Gitlab 历史版本下载:...