摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
推荐(1)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
Never use global variables
阅读全文
posted @ 2023-09-19 12:41
ZhangZhihuiAAA
阅读(21)
推荐(0)