ZhangZhihui's Blog  
上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 116 下一页

2023年9月25日

摘要: The concept of microservices is simply breaking a single large potential service into many smaller services that work together, hence, the name. One v 阅读全文
posted @ 2023-09-25 19:45 ZhangZhihuiAAA 阅读(40) 评论(0) 推荐(0)
 
摘要: docker-compose.yaml: version: '3.3' services: nginx: image: nginx:latest ports: - 8080:80 With regards to the preceding docker-compose file, we have t 阅读全文
posted @ 2023-09-25 11:35 ZhangZhihuiAAA 阅读(114) 评论(0) 推荐(0)
 
摘要: Install using the repository Set up the repository. Find distro-specific instructions in: Ubuntu | CentOS | Debian | Raspberry Pi OS | Fedora | RHEL | 阅读全文
posted @ 2023-09-25 10:50 ZhangZhihuiAAA 阅读(83) 评论(0) 推荐(0)

2023年9月23日

摘要: Dockerfile: FROM golang:latest WORKDIR /app ADD . . RUN go env -w GOPROXY=https://goproxy.io,direct RUN go get RUN go build -o app . CMD ["/app/app"] 阅读全文
posted @ 2023-09-23 17:41 ZhangZhihuiAAA 阅读(824) 评论(0) 推荐(1)

2023年9月22日

摘要: In order to access the nginx from our workstation, we would need to expose the port 80 from within the nginx container to our workstation. Run the ngi 阅读全文
posted @ 2023-09-22 21:28 ZhangZhihuiAAA 阅读(46) 评论(0) 推荐(0)
 
摘要: The systemd tool fits our simple case of requiring the application to start on server boot-up as well as ensuring that the application is restarted in 阅读全文
posted @ 2023-09-22 10:01 ZhangZhihuiAAA 阅读(39) 评论(0) 推荐(0)

2023年9月21日

摘要: Original implementation: type SingleItem struct { Field string `json:"field"` Hour int `json:"hour"` Minute int `json:"minute"` ItemCode string `json: 阅读全文
posted @ 2023-09-21 11:14 ZhangZhihuiAAA 阅读(19) 评论(0) 推荐(0)
 
摘要: Right click the function name. Select item 'Go: Generate Unit Tests for Function' in the pop-up menu: A test file named <file name>_test.go is generat 阅读全文
posted @ 2023-09-21 09:36 ZhangZhihuiAAA 阅读(59) 评论(0) 推荐(0)

2023年9月19日

摘要: Common protocols that handle exchanging data between client and server applications:• HTTP protocol: This is more of a text-based protocol and is cons 阅读全文
posted @ 2023-09-19 14:01 ZhangZhihuiAAA 阅读(43) 评论(0) 推荐(0)
 
摘要: Never use global variables 阅读全文
posted @ 2023-09-19 12:41 ZhangZhihuiAAA 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 116 下一页