摘要: 1.确定是否github.com网址映射正确,通过ssh -vT git@github.com或者nslookup github.com查看,有时候,github.com会被映射到127.0.0.1 2.确认ssh公钥是否配置正确,通过ssh -vT git@github.com,可以查看使用的ss 阅读全文
posted @ 2023-07-08 18:01 suwenyuan 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 一、什么是SSH? 简单说,SSH是一种网络协议,用于计算机之间的加密登录。 如果一个用户从本地计算机,使用SSH协议登录另一台远程计算机,我们就可以认为,这种登录是安全的,即使被中途截获,密码也不会泄露。 最早的时候,互联网通信都是明文通信,一旦被截获,内容就暴露无疑。1995年,芬兰学者Tatu 阅读全文
posted @ 2023-07-08 15:45 suwenyuan 阅读(14) 评论(0) 推荐(0) 编辑
摘要: tmux new -s mysession 创建名为mysession的会话 tmux ls 显示会话列表 tmux a 连接上一个会话(最后创建的那个会话) tmux a -t session_name 连接指定会话,session_name 会话名 tmux rename -t s1 s2 重命 阅读全文
posted @ 2022-11-11 10:45 suwenyuan 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 我之前就是每一次操作都要输入用户名和密码,繁琐得很。现在给各位分享下git永久保存账户名和密码。 方法一: 安装好git之后一般会在C盘的C:\Users\Administator目录下生成 .gitconfig配置文件。用文档编辑工具打开该文件 添加: [user] name = wb-ly409 阅读全文
posted @ 2022-11-11 10:24 suwenyuan 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 今天 git pull 突然报错连不上了。 Connection reset by 20.205.243.166 port 22 fatal: Could not read from remote repository. Please make sure you have the correct a 阅读全文
posted @ 2022-10-25 22:26 suwenyuan 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 一、服务启动 1. 启动 ps -ef | grep elastic # 查找进程 kill -9 2382(进程号)# 杀死进程 elasticsearch -d # 加d后台启动, 2.检测是否成功启动 在浏览器中输入:http://localhost:9200/ 如果打印如下内容,则成功。 二 阅读全文
posted @ 2022-08-10 18:08 suwenyuan 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 一、重启和关闭 切记不要kill -9 关闭,不然可能导致数据丢失 方式一:使用MongoDB命令,强烈建议使用如下方式 mongod --config /usr/local/etc/mongod.conf #启动 mongod --fork --logpath /usr/local/var/log 阅读全文
posted @ 2022-08-10 00:10 suwenyuan 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 在mac 终端下使用用pip进行安装 1 打开终端输入一下命令,jupyter就安装好了 pip3 install jupyter 2.在终端输入以下命令 python3 -m IPython notebook 成功运行会输出以下内容,会在本地起一个服务,监听端口号微微8888 自动会打开浏览器,当 阅读全文
posted @ 2022-07-20 16:07 suwenyuan 阅读(2553) 评论(0) 推荐(0) 编辑
摘要: mac端安装此软件,方便访问 https://formulae.brew.sh/cask/nosqlbooster-for-mongodb 本地安装使用MongoDB 安装 brew tap mongodb/brew brew install mongodb-community 启动和暂停mongo 阅读全文
posted @ 2022-07-05 17:50 suwenyuan 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 方式一 如果存在多个python解释器,可以选择指定一个Python解释器(比如python3.6) virtualenv -p /usr/bin/python3.6 /home/user/py36 要开始使用虚拟环境,其需要被激活: source py36/bin/activate 停用虚拟环境: 阅读全文
posted @ 2022-06-22 14:03 suwenyuan 阅读(1011) 评论(0) 推荐(0) 编辑