sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.21" CMS_ARCH="linux64" CMS_PROXY="szcmsproxy.aliyun.com:3128"; \
if [ -f $CMS_HOME/wrapper/bin/cloudmonitor.sh ] ; then $CMS_HOME/wrapper/bin/cloudmonitor.sh remove; rm -rf $CMS_HOME; fi ; \
mkdir -p $CMS_HOME && \
wget -e "http_proxy=$CMS_PROXY" -O "$CMS_HOME/cloudmonitor.tar.gz" "http://cms-download.aliyun.com/release/$CMS_VERSION/$CMS_ARCH/agent-$CMS_ARCH-$CMS_VERSION-package.tar.gz" && \
tar -xf $CMS_HOME/cloudmonitor.tar.gz -C $CMS_HOME && \
chown -R root:root $CMS_HOME && \
$CMS_HOME/wrapper/bin/cloudmonitor.sh install && \
$CMS_HOME/wrapper/bin/cloudmonitor.sh start'
docker system prune
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo apt-get -y install python-pip | |
pip install shadowsocks | |
echo '{ "server":"0.0.0.0", "server_port":13388, "local_address": "127.0.0.1","local_port":1080, "password":"Daoyuan123", "timeout":300, "method":"aes-256-cfb", "fast_open": false }' >> /etc/shadowsocks.json | |
sudo ssserver -c /etc/shadowsocks.json -d start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x72414f03DAEF77e19cFaeC8D5B3c913B22d3e403 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"math/rand" | |
"strconv" | |
"crypto/sha256" | |
"time" | |
"fmt" | |
) |
重启后不能登陆的话,
进入docker修改/etc/nginx/sites-enabled/gitlab
修改其中一行使其变为,
proxy_set_header X-Forwarded-Proto https;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo cat <<EOT >> /etc/sysctl.conf | |
# max open files | |
fs.file-max = 1024000 | |
# max read buffer | |
net.core.rmem_max = 67108864 | |
# max write buffer | |
net.core.wmem_max = 67108864 | |
# default read buffer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="zh-cmn-Hans"> | |
<head> | |
<title>Quantum Cloud</title> | |
<style> | |
header { | |
text-align: center; | |
} | |
.canvas-container { | |
display: block; |
NewerOlder