1.5 注解@ConfigurationProperties进行组件属性和资源配置文件中的值进行绑定 注解@ConfigurationProperties+@Component的方式将application.properties文件中的值绑定到某个组件的属性上。注意现在默认只能是绑定核心资源配置文件 ...
分类:
编程语言 时间:
2021-06-17 17:11:28
阅读次数:
0
==时区修改== 查看当前时区:date 查看时区列表:timedatectl list-timezones 修改时区:timedatectl set-timezone Asia/Shanghai ==配置文件== centos8已经没有ntp时间同步服务了,使用的是chrony。 配置文件:vim ...
分类:
其他好文 时间:
2021-06-17 17:09:13
阅读次数:
0
一、安装(基于docker-compose) 使用docker安装Nginx非常简单,只需要准备如下YML文件即可: version: "3" services: nginx12: restart: always image: daocloud.io/library/nginx:1.12.0 con ...
分类:
其他好文 时间:
2021-06-17 16:49:40
阅读次数:
0
安装完postgres后,默认只能本机访问数据库,下面通过配置实现局域网内访问postgres数据库。 1、修改配置文件 在安装目录的/data文件夹下,打开pg_hba.conf文件,定位到如下文本。 # IPv4 local connections:host all all 127.0.0.1/ ...
分类:
数据库 时间:
2021-06-17 16:48:03
阅读次数:
0
函数的定义 # 方式一 start () { echo "nginx start .... [OK]" #return 0 } stop () { echo "nginx stop .... [FAIL]" } # 方式二 function start { echo "nginx start ... ...
分类:
其他好文 时间:
2021-06-17 16:37:05
阅读次数:
0
1.下载安装 wget https://artifacts.elastic.co/downloads/kibana/kibana-7.0.0-x86_64.rpm yum install -y kibana-7.0.0-x86_64.rpm 2.修改配置文件 vim /etc/kibana/kiba ...
分类:
其他好文 时间:
2021-06-16 18:25:40
阅读次数:
0
1 问题背景 nginx 安全漏洞(CVE-2019-9511) nginx 安全漏洞(CVE-2019-9513) nginx 安全漏洞(CVE-2019-9516) http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-201908-9 ...
分类:
系统相关 时间:
2021-06-16 18:19:57
阅读次数:
0
[Linux文件管理、配置文件目录、vim编辑器] ? **Linux ** 系统的单根?录结构 linux与windows的?录结构对? 123 绝对路径与相对路径 ?切皆?件的设计思想 ?件的时间 ls -l ?件名 仅看的是?件的修改时间 Linux?件有 三种时间,?stat查看 例如:st ...
分类:
系统相关 时间:
2021-06-16 18:14:08
阅读次数:
0
在配置文件下新建格式如下: route -n ...
分类:
其他好文 时间:
2021-06-16 18:09:59
阅读次数:
0
https://www.it1352.com/733995.html 问 题 就是我有一个域名ABC.com一台服务器,两个网站应用程序两个网站应用程序挂在不同端口设置了两个域名,A.ABC.com,B.ABC.com访问A.ABC.com和B.ABC.com能指向这两个应用程序.如何配置 解决方案 ...
分类:
其他好文 时间:
2021-06-16 18:03:58
阅读次数:
0