markdown DevOps提示

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown DevOps提示相关的知识,希望对你有一定的参考价值。

> Git 使用技巧

## 更新项目仓库内容至自己仓库内容

来自[blockchain_guide](https://link.juejin.im/?target=https%3A%2F%2Fyeasy.gitbooks.io%2Fblockchain_guide%2Fcontent%2Fcontribute.html)

示例:

```bash
$ git remote add upstream https://github.com/yeasy/blockchain_guide
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master
$ git push -f origin master
```
> 问题处理方案

## CloudFlare 重定向问题

> 修改 SSL 配置至 Full 或 Full(Strict) 模式
通过`cat`创建文件

```bash
cat <<EOT >> /etc/default/test
# Local export path.

EOT
```
# https://link.juejin.im/?target=https%3A%2F%2Fgithub.com%2Fjpillora%2Fcloud-torrent%2Fwiki%2FAuto-Run-on-Reboot
# https://link.juejin.im/?target=https%3A%2F%2Fgithub.com%2Fminio%2Fminio-service

# Ubuntu

# 1. Move the binary to /usr/local/bin/cloud-torrent
# systemd
# 2. Create a new service file: `/usr/lib/systemd/system/cloud-torrent.service`
# ```
# [Unit]
# Description=cloud-torrent
# 
# [Service]
# WorkingDirectory=/root/
# ExecStart=/usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password"
# Restart=always
# RestartSec=3
# 
# [Install]
# WantedBy=multi-user.target
# ```

# 3. Enable the service
systemctl enable cloud-torrent

# 4. Start the service
systemctl start cloud-torrent

# 5. Confirm the service is running
systemctl status cloud-torrent

# CentOS/Debian

# 1. Run on Reboot
chmod +x /etc/rc.d/rc.local
echo /usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password" >>chmod +x /etc/rc.d/rc.local

# 2. shutdown cloud-torrent(clout-torrent need running)
eval $(ps -ef | grep cloud-torrent | grep -v grep | awk '{print "kill "$2}')

# 3. check cloud-torrent status, if have result ,service is running
ps -ef | grep 'cloud-torrent' | grep -v 'grep' | awk '{print $2}'
一键安装的命令及其内容。

```bash
curl https://i.jpillora.com/cloud-torrent! | bash sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
```

以上是关于markdown DevOps提示的主要内容,如果未能解决你的问题,请参考以下文章

markdown devops圣经

markdown DevOps的

markdown 其他Devops

markdown Devops最佳实践

markdown DevOps开发设计原则和实践

markdown Docker,Kubernetes,AWS,DevOps链接