摘要: 将本地文件打包 tar zcvf graphite_api.tar.gz graphite_api/ 启动本地8822端口 python -m SimpleHTTPServer 8822 在服务器上wget文件(ip为你的本地ip) wget ip:8822/graphite_api.tar.gz 阅读全文
posted @ 2019-08-06 18:02 yuzhen0228 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1、git init把它变成Git仓库; 2、git add .把项目添加到仓库; 3、git commit -m "first commit"把项目提交到仓库; 4、git remote add origin https://github.com/xxxxxx.git将本地仓库和远程仓库进行关联; 阅读全文
posted @ 2019-08-06 16:50 yuzhen0228 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 在~/.bashrc后加上 export PATH=$PATH:/home/test/.npm-global/bin 绿色部分是我的路径,你可以替换成你的 参考链接:https://blog.csdn.net/m0_37263637/article/details/81942435 阅读全文
posted @ 2019-06-12 17:40 yuzhen0228 阅读(2692) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-06-05 17:29 yuzhen0228 阅读(4525) 评论(0) 推荐(0) 编辑
摘要: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo apt-get install apt-transport-https echo "deb https://download 阅读全文
posted @ 2019-05-30 19:39 yuzhen0228 阅读(921) 评论(0) 推荐(0) 编辑
摘要: django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the e 阅读全文
posted @ 2019-05-08 11:23 yuzhen0228 阅读(208) 评论(0) 推荐(0) 编辑
摘要: pip install pymysql _init_.py添加代码: import pymysql pymysql.install_as_MySQLdb() 如果还不好,就 sudo apt-get install python3-dev libmysqlclient-dev pip install 阅读全文
posted @ 2019-03-15 10:46 yuzhen0228 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 环境信息: OS:Ubuntu18.04 MySQL: 5.7.22 在 Ubuntu 18.04 中,默认情况下,只有最新版本的 MySQL 包含在 APT 软件包存储库中,要安装它,只需更新服务器上的包索引并安装默认包 apt-get。 sudo apt-get update sudo apt- 阅读全文
posted @ 2019-03-12 11:14 yuzhen0228 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 首先在终端中查看MySQL的依赖项:dpkg --list|grep mysql 卸载: sudo apt-get remove mysql-common 卸载:sudo apt-get autoremove --purge mysql-server-5.7 清除残留数据:dpkg -l|grep 阅读全文
posted @ 2019-03-12 10:48 yuzhen0228 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.全局图 HAproxy 来做 RabbitMQ 负载均衡和高可用,用 Keepalived 来保证 HAproxy 的高可用 客户端通过VIP建立通信链路;通信链路通过Keeaplived的Master节点路由到对应的HAProxy之上;HAProxy通过负载均衡算法将负载分发到集群中的各个节点 阅读全文
posted @ 2019-03-07 13:42 yuzhen0228 阅读(972) 评论(0) 推荐(0) 编辑