Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litongjava/go-agent-request
go-agent-request
https://github.com/litongjava/go-agent-request
Last synced: about 1 month ago
JSON representation
go-agent-request
- Host: GitHub
- URL: https://github.com/litongjava/go-agent-request
- Owner: litongjava
- Created: 2024-05-12T10:35:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T10:49:17.000Z (8 months ago)
- Last Synced: 2024-05-13T11:35:32.840Z (8 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# go-agent-request
```shell
vi /etc/systemd/system/go-agent-request.service
``````
[Unit]
Description=go-agent-request
After=network.target[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
WorkingDirectory = /opt/go-agent-request
ExecStart=/opt/go-agent-request/go-agent-request[Install]
WantedBy=multi-user.target
```
启动
```
sudo systemctl daemon-reload
sudo systemctl enable go-agent-request
sudo systemctl start go-agent-request
sudo systemctl status go-agent-request
sudo systemctl stop go-agent-request
sudo systemctl restart go-agent-request
```