Loading

龙行博客

vmwar挂载宿主机目录

vmwar挂载宿主机目录 2.在Linux中安装vm-tools: yum install -y open-vm-tools open-vm-tools-desktop 3.挂载: 查看共享的目录 # vmware-hgfsclient vmwar-soft 执行命令挂载目录 mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other,nonempty 修改数据令系统启动时自动挂载 vim /etc/fstab #在末尾另起一行 添加: .host:/ /mnt/hgfs fuse.vmhgf...

socket-Redis创建fd

socket-Redis创建fd-uid对应关系 直接使用 <?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 co...

Docker配置JAVA环境一条龙服务

1.先关闭防火墙先 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io sudo systemctl start docker # 开机自启动 sudo systemctl...

Docker安装nacos

Docker安装nacos 安装镜像 docker pull nacos/nacos-server PS:这是拉取最新的nacos版本,如果需要拉取别的版本可以加:版本号(如:docker pull nacos/nacos-server:v2.2.0 挂载目录 mkdir -p /mydata/nacos/logs/ #新建logs目录 mkdir -p /mydata/nacos/conf/ #新建conf目录 PS:这一步是添加映射文件夹,将宿主机的文件映射...

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 历史版本下载:...