HUGO +++ Hugo为其模板引擎使用了出色的Go html / template库。它是一种非常轻量级的引擎,提供了非常少量的逻辑。根据我们的经验,创建一个好的静态网站只是适当的逻辑量。如果您使用了来自不同语言或框架的其他模板系统,则会在Go模板中发现很多相似之处。 本文档是使用Go模板的简要 ...
分类:
其他好文 时间:
2021-01-08 10:50:46
阅读次数:
0
报错信息类似以下这2句,其中的"localhost.localdomain"会略有不同。Ambari Agent host cannot reach Ambari Server 'localhost.localdomain:8080'Ambari agent machine hostname (lo ...
分类:
其他好文 时间:
2021-01-07 12:32:11
阅读次数:
0
获取程序地址或路径 Web地址: JS: var baseUrl = window.location.host;//不带http:// 结果为: localhost:8033 asp.net: string host = HttpContext.Current.Request.Url.Host; s ...
分类:
其他好文 时间:
2021-01-07 12:20:42
阅读次数:
0
1、首先安装一下ansible yum install ansible 2、修改一下ansible的参数以防ssh过去的时候需要首次判断yes 或者no sed -i 's/#host_key_checking = False/host_key_checking = False/g' /etc/an ...
分类:
其他好文 时间:
2021-01-07 12:10:47
阅读次数:
0
HTTP是什么? HTTP是超文本传输协议 超文本+传输+协议 HTTP常见状态码有哪些? HTTP常见字段有哪些? HOST字段:客户端发送请求时,用来指定服务器的域名 --HOST:www.A.com Content-Length字段:服务器在返回数据时,会有Content-Length字段,表 ...
分类:
Web程序 时间:
2021-01-07 11:56:46
阅读次数:
0
<!-- 父组件 --> <template> <view> <syncA :title.sync="title"></syncA> </view> </template> <script> export default { data() { return { title:"hello vue.js ...
分类:
其他好文 时间:
2021-01-07 11:53:43
阅读次数:
0
安装部署主控节点服务 -- etcd 部署master节点服务 部署etcd集群 集群规划 HDss7-12.host.com ectc lead 192.168.154.12 HDss7-21.host.com ectc follow 192.168.154.21 HDss7-22.host.co ...
分类:
其他好文 时间:
2021-01-07 11:46:58
阅读次数:
0
Vue 中mixins,extends,class简单使用 demo: index.vue, feiMixins,feiExtends,feiClass 四个文件 index.vue <template> <div id="index"> <div>{{foo}}</div> <div>{{bar} ...
分类:
其他好文 时间:
2021-01-06 12:37:37
阅读次数:
0
main.js 全局引入轮播图的js 和 css文件 <template> <div> <h1>轮播图案例</h1> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide" v-for ...
分类:
其他好文 时间:
2021-01-06 12:17:44
阅读次数:
0
之前搭建的是eureka单机版,现在搞个集群版。单机和集群之间要改的部分其实只是配置文件而已,步骤如下: 1.创建新的一个eurekaServer的模块,关于依赖和配置可参考已有的eurekaServer 2.先到本地的host文件配置如下的信息: 127.0.0.1 eureka7001.com ...
分类:
编程语言 时间:
2021-01-06 12:03:41
阅读次数:
0