1、拉取nginx镜像,以及php-fpm镜像 docker pull nginx:1.16.0 docker pull php:5.6.40-fpm 2、分别创建nginx 容器php-fpm 容器 # 这里最后吧 /etc/nginx/conf.d 目录和存放静态资源文件的目录挂载到宿主机上来 ...
分类:
Web程序 时间:
2021-07-27 17:31:51
阅读次数:
0
依赖安装 # 在CentOS系统上安装所需的依赖:ssh,防火墙,postfix(用于邮件通知) ,wget,以下这些命令也会打开系统防火墙中的HTTP和SSH端口访问。 yum install curl openssh-server openssh-clients postfix cronie - ...
分类:
其他好文 时间:
2021-07-19 16:46:25
阅读次数:
0
一、什么是泛型? 泛型是一种未知的数据类型,当我们不知道要使用什么数据类型的时候,可以使用泛型。 泛型也可以看成是一个变量,用来接收数据类型 E e:Element 元素 T t:type 类型 如: 1 public class ArrayList<E>{ 2 public boolean add ...
分类:
编程语言 时间:
2021-07-19 16:42:15
阅读次数:
0
做下面操作前先安装这些工具: yum install virt-install libvirt-admin libvirt-client libvirt-daemon libvirt主要的配置文件和目录 (1) libvirtd服务的主配置文件 /etc/libvirt/libvirtd.conf ...
分类:
其他好文 时间:
2021-07-09 17:54:18
阅读次数:
0
iOS内存泄漏检查&原理 前面罗列了iOS中常见的会导致内存泄漏的场景, 这篇文章主要说一下内存泄漏的常见检测方式和原理. 1 内存分类 要想检查内存泄漏, 首先我们要了解一个 app 的内存分类. 苹果的开发者文档里可以看到,一个 app 的内存分三类: Leaked memory: Memory ...
分类:
移动开发 时间:
2021-07-09 17:53:15
阅读次数:
0
CentOS7防火墙命令有变化: CentOS7: systemctl status firewalld.service 查看防火墙状态 systemctl stop firewalld.service 本次访问关闭防火墙 systemctl disable firewalld.service 从下 ...
分类:
其他好文 时间:
2021-07-05 18:49:21
阅读次数:
0
1、启动服务 systemctl restart mysqld.service 报错: 启动数据库Can‘t connect to MYSQL server through socket ''var/lib/mysql/mysql.cock(146 lock timed out:Retry tran ...
分类:
数据库 时间:
2021-07-05 17:35:04
阅读次数:
0
检测Tomcat日志关键字异常 日常工作中经常会遇到Tomcat日志报特定的错误导致 Linux 服务器CPU暴涨,这时候需要重启应用才可以降下来 所以就需要写一个shell脚本,报出特定的错误就重启应用 shell脚本如下: [root@Mike-VM-Node-10_10_0_188 ~]# v ...
分类:
其他好文 时间:
2021-07-02 16:18:28
阅读次数:
0
file1=new File(path);//path 为文件地址String parentPath=file1.getParent();parentPath为path的父级目录String[] arr=null;//用来验证文件是否为空文件File parentFile=new File(pare ...
分类:
编程语言 时间:
2021-07-02 16:09:34
阅读次数:
0
Linux常用命令 1、系统命令 runlevel # 查看当前的运行级别 systemctl status firewalld # 开启网络服务功能 stop # 关闭 restart # 重启 reload # 重载 reboot # 重启 halt # 关机 poweroff # 关机 2、查 ...
分类:
系统相关 时间:
2021-07-01 16:41:50
阅读次数:
0