From 36a9f7986d1c20fd391f0e1aa56f15707151fef9 Mon Sep 17 00:00:00 2001 From: light <1870499383@qq.com> Date: Fri, 31 May 2019 00:28:41 +0800 Subject: [PATCH] update --- nodejs/install.md | 17 ++++++++++++++++- ubuntu/Prometheus.md | 21 +++++++++++++++++++++ vim/templates/=template=.go | 0 vim/templates/=template=.vue | 29 +++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 ubuntu/Prometheus.md create mode 100644 vim/templates/=template=.go create mode 100644 vim/templates/=template=.vue diff --git a/nodejs/install.md b/nodejs/install.md index 7f66870..9e36593 100644 --- a/nodejs/install.md +++ b/nodejs/install.md @@ -26,4 +26,19 @@ npm config get registry - if old nodejs still exist - > sudo apt-get purge nodejs \ No newline at end of file + > sudo apt-get purge nodejs + + +### node && yarn + +```bash +# yarn + +curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - +echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +sudo apt-get update && sudo apt-get install yarn + +sudo yarn global add n +sudo n stable + +``` diff --git a/ubuntu/Prometheus.md b/ubuntu/Prometheus.md new file mode 100644 index 0000000..d9d2c81 --- /dev/null +++ b/ubuntu/Prometheus.md @@ -0,0 +1,21 @@ +# Prometheus + +## Prometheus + +> https://prometheus.io/docs/prometheus/latest/getting_started/ + +```bash +tar xvfz prometheus-*.tar.gz +cd prometheus-* + +``` + +## grafana + +> https://grafana.com/docs/installation/debian/ + +```bash +wget https://dl.grafana.com/oss/release/grafana_5.4.2_amd64.deb +sudo apt-get install -y adduser libfontconfig1 +sudo dpkg -i grafana_5.4.2_amd64.deb +``` diff --git a/vim/templates/=template=.go b/vim/templates/=template=.go new file mode 100644 index 0000000..e69de29 diff --git a/vim/templates/=template=.vue b/vim/templates/=template=.vue new file mode 100644 index 0000000..a1a862d --- /dev/null +++ b/vim/templates/=template=.vue @@ -0,0 +1,29 @@ + + + +