一、云服务器&域名购买 目前市面上有多种云服务器厂商:阿里、腾讯、华为...,这里采用较为熟悉的阿里云。 1、ECS购买 2、域名购买 3、域名备案 二、源码包下载 1、有很多开源的个人博客源码,可至b站/github选择自己喜欢风格的博客项目进行部署。这里选择的是bolo博客,有看板娘功能、多种皮肤可以进行选择;相对来说可扩展性较差,无法按照自己喜好进行前端页面的调整。 2、菠萝博客源码包可至bolo的gitee/github官网下载 3、其他类型的博客项目 三、Tomcat安装 1、官方提供了docker/tomcat/宝塔面板三种安装方式 这里采用传统的tomcat方式进行部署,需要手动额外安装mysql以及nginx组件。 2、 四、Mysql数据库安装(二进制方式) 五、Nginx代理 六、使用Nginx搭建一个文件下载服务器 参考:Tomcat部署Bolo动态博客

各类软件命令记录
软件默认端口号 prometheus 9090 node_exporter 9100 process_exporter grafana 3000 jenkins 8080(尽量不要将tomcat和它装在一台服务器下/修改端口号) nginx 80 mysqld_exporter process_exporter 9256 zk 2181 kafka 9092 docker 2375 80harbor容器 5000 10000带 redis 6739 一、prometheus nohup ./prometheus --config.file=prometheus.yml > nohup.log 2>&1 & [将prometheus加入到系统服务] nohup ./node_exporter --web.listen-address 192.168.16.77:9100 >nohup.log 2>&1 & nohup ./mysqld_exporter --config.my-cnf=/opt/module/mysqld_ex10/....

k8s基础命令
K8S组件介绍 journalctl -f -u kubelet.service systemctl status kubelet.service 一、pod 1、pod配置 kubectl explain pod.spec #查看k8s各资源清单 (1)使用yaml文件去创建pod,一级属性如下 apiVersion、kind、metadata、spec (2)spec的常用子属性为containers、restartPolicy、nodeName和nodeSelector (3)containers的常用子属性为 name、image、imagePullPolicy、command 2、pod生命周期 3、pod调度 (1)配置文件中声明nodeName或者nodeSelector——>定向调度 #重点掌握 (2)配置文件中声明affinity.nodeAffinity——>node亲和性调度 affinity.podAffinity——>pod亲和性调度 affinity.PodAntiAffinity——>pod反亲和性调度 #这3个还有多个难搞的子属性....

有趣的shell图形
1、佛祖保佑 永无bug 永不修改 _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ / _||||| -:- |||||- \ | | \\\ - /// | | | \_| ''\---/'' | | \ .-\__ `-` ___/-. / ___`. .' /--.--\ `. . __ ."" '< `.___\_<|>_/___.' >'"". | | : `- \`.;`\ _ /`;.`/ - ` : | | \ \ `-. \_ __\ /__ _/ .-` / / ======`-.____`-.___\_____/___.-`____.-'====== `=---=' 2、书本 .-~~~~~~~~~-._ _.-~~~~~~~~~-. __.' ~. .~ `.__ .'// 行天之道 \./ 总司一切 \\`. .'// | \\`. .'// .-~"""""""~~~~-._ | _,-~~~~....

linux基础命令
#sed * 替换字符串 sed -i 's/old_string/new_string/g' filename #prometheus热加载 curl -X POST http://ip:19102/-/reload #telnet不通分析 *telnet connect to address 10.138.xxx.xxx: Connection refused 服务没起 *Trying 10.138.xxx.xxx... (防火墙等原因导致)端口没通 telnet时无法退出 ctrl+} quit #ssh -p10022 -uroot-pxxxx SSH连接另一台主机 #TMOUT=0 关闭会话超时时间 #linux文件句柄数open files查看 ulimit -n (默认1024) #跨服务器传输文件 scp components.yaml root@192.168.26.25:/opt/module/k8s/pod-controller #磁盘相关 df -Th du -sh *|sort -hr #磁盘扩缩容 #系统服务 systemctl start/restart/....

jvm相关
1、jvm指标说明 2、jstat、jmap、jstack等命令介绍