<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch ...
分类:
其他好文 时间:
2020-07-10 19:01:48
阅读次数:
42
下载、上传证书: rz -E 3198872_www.mcl2rock.cn_nginx.zip 在/etc/nginx下新建文件夹cert: mkdir -p /etc/nginx/cert 把证书解压到cert目录下: unzip 3198872_www.mcl2rock.cn_nginx.zi ...
分类:
其他好文 时间:
2020-07-10 18:51:17
阅读次数:
58
1、flume日志收集架构如下 2、解压安装包,修改文件夹名称,配置环境变量 tar -zxvf apache-flume-1.6.0-bin.tar.gz export FLUME_HOME=/soft/flume export PATH=$PATH:$FLUME_HOME/bin 修改conf下 ...
分类:
Web程序 时间:
2020-07-10 18:37:36
阅读次数:
66
功能:rsyslog 负责写入日志, logrotate负责备份和删除旧日志, 以及更新日志文件。 一 rsyslog服务 配置文件(/etc/rsyslog.conf) # rsyslog configuration file # For more information see /usr/sha ...
分类:
编程语言 时间:
2020-07-10 14:56:12
阅读次数:
106
tomcat启动时,启动窗口有时会出现中文乱码: 乱码原因: 字节流解码为字符串时,使用了错误的字符集(和编码所用字符集不一致)! 解决办法如下: 第一步: 进入tomcat配置文件conf目录:D:\APP_Tomcat\apache-tomcat-9.0.36-windows-x64\apach ...
分类:
其他好文 时间:
2020-07-10 13:23:49
阅读次数:
88
一.服务端设置 安装rsync服务 [root@backup ~]# yum install -y rsync 修改配置文件 [root@backup ~]# vim /etc/rsyncd.conf ## 指定进程启动uid uid = rsync ## 指定进程启动gid gid = rsync ...
分类:
其他好文 时间:
2020-07-10 13:17:40
阅读次数:
72
1 public ActionResult Show() 2 { 3 return View(); 4 } 5 public ActionResult Add() 6 { 7 return View(); 8 } 9 public ActionResult Del() 10 { 11 return ...
分类:
Web程序 时间:
2020-07-10 10:13:58
阅读次数:
101
1、Startup类里先定义一个全局变量: readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins";//名字随便起 2、ConfigureServices方法里写如下代码: services.AddCors(options ...
分类:
Web程序 时间:
2020-07-10 09:46:24
阅读次数:
115
前提:安装好了docker-ce。systemctlstartdockersystemctlenabledockeriptables-Xiptables-Fserviceiptablessave1、部署nginx:dockerrun-it-d-p80:80-v/usr/share/nginx/html/:/usr/share/nginx/html/-v/etc/nginx/conf.d/:/etc
分类:
其他好文 时间:
2020-07-10 09:36:54
阅读次数:
64