
Linux学习
文章平均质量分 50
sanra123
这个作者很懒,什么都没留下…
展开
-
mysql相关
1. mysql修改存储路径默认在/var/lib/mysql下,移动目录并修改/etc/my.cnfhttps://blog.51cto.com/u_15328720/3436675(1)移动完之后报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rIHXRgQL原创 2022-05-20 20:13:22 · 293 阅读 · 0 评论 -
diff两个文件的格式
diff --old-group-format="D %<" \--new-group-format="I %>" \--changed-group-format="U %>" \--unchanged-group-format="" file1 file2https://stackoverflow.com/questions/8098045/diff-and-gtype-group-format原创 2022-03-09 21:08:54 · 506 阅读 · 0 评论 -
加--with-x编译vim时报错 configure: error: could not configure X
文章目录1. vim 编译报错1. vim 编译报错configure: error: could not configure X error: Bad exit status from /var/tmp/rpm-tmp.2xwoeZ (%build)`先安装yum install libXt-devel,之后再重新编译./configure --prefix=%{_prefix} --enable-pythoninterp --enable-multibyte --with-x忘了需不需要加这个原创 2022-01-17 17:03:40 · 1965 阅读 · 0 评论 -
简单的搭建一个网站?
文章目录1. nodejs安装2. 安装git (可选)3. 注册github(可选)4. vue-element-admin跑起来怎么跑起来5. 其他相关文档:1. nodejs安装https://www.runoob.com/nodejs/nodejs-install-setup.html2. 安装git (可选)参考: https://www.liaoxuefeng.com/wiki/896043488029600/896067074338496git是一个版本管理工具3. 注册gith原创 2021-09-03 19:55:57 · 150 阅读 · 0 评论 -
rapidjson使用
rapidjson , c/c++中一个操作json的库(1)安装参考官方文档,只要把include/rapidjson目录放到系统库目录就可以了。这里只是简单的使用,编译时加-I参数就好了其中test.cpp代码如下// rapidjson/example/simpledom/simpledom.cpp`#include "rapidjson/document.h"#include "rapidjson/writer.h"#include "rapidjson/stringbuffer.h原创 2021-08-09 16:57:22 · 418 阅读 · 0 评论 -
libtool版本不匹配
编protobuf的时候,突然出现了这个问题。git clean -xfd清理之后重新编还是报错,最后查到问题应该是这个 https://www.thinbug.com/q/3096989libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but thelibtool: definition of this LT_INIT comes from libtool 2.2.6b.libtool: You sho.原创 2021-04-23 11:43:13 · 657 阅读 · 0 评论 -
Centos上使用python生成echarts
文章目录一. Centos上安装chrome,使用headless模式一. Centos上安装chrome,使用headless模式(1) centos上安装google-chrome-stable教程主要参考: CentOS 7.x环境下搭建: Headless chrome + Selenium + ChromeDriver 实现自动化测试完全安装脚本参考:INSTALLING GOOGLE CHROME ON CENTOS, AMAZON LINUX, OR RHEL (之前找了好多,原创 2021-02-26 19:36:21 · 544 阅读 · 0 评论 -
centos上部署nginx
一. 安装:参考:2019 年如何在 CentOS 7 上安装最新版 Nginx二. 部署服务参考:https://linuxize.com/post/how-to-set-up-nginx-server-blocks-on-centos-7/拿Nginx 部署你的静态网页原创 2020-10-29 17:33:46 · 283 阅读 · 0 评论 -
nvidia-smi可以显示显卡信息,但torch.cuda.is_available()一直显示false
根本原因是cudatoolkit版本和pytorch版本和cuda版本不对应?1. 查看cuda版本cat /usr/local/cuda/version.txt参考:Linux 和 Windows 查看 CUDA 和 cuDNN 版本2. 找对应的cudatoolkit版本参考binary-compatibility找到对应的 cudatoolkit对应的版本进行安装 。3. 安装对应的cudatoolkit这里的10.0要换成上文中查找到的对应的cuda版本。conda insta原创 2020-09-08 10:59:35 · 3388 阅读 · 0 评论 -
Flask, rabbitmq
1. ImportError: cannot import name ‘Flask’ from ‘flask’遇到这个问题,是因为我把自己的python 文件命名成了flask.pyorz.参考原创 2020-08-26 16:28:09 · 1432 阅读 · 0 评论 -
rpm打包报错
check-rpathshttps://www.cnblogs.com/p4w9110/p/5103147.html原创 2020-07-09 20:34:21 · 325 阅读 · 0 评论 -
bash: scp: No such file or directory
bash: scp: No such file or directorylost connection遇到这个问题,查了半天,原来目录机器上把PATH置为空了orz.原创 2020-06-30 10:47:08 · 1378 阅读 · 0 评论 -
运维命令总结
free:查看内存占用单位是kb,第一行为title,第二行是内存数据total: 物理内存总量原创 2020-04-28 14:39:26 · 162 阅读 · 0 评论 -
mac和Linux服务器之间使用 rz/sz来传文件
在此之前, 一直使用的scp来上传和下载文件,每次加上-P port需要输入很长的命令。刚刚突然发现,原来可以直接使用sz/rz来上传文件,哇咔咔太方便了。1. 服务器端安装 lrzsz服务器端:yum install yum install lrzszmac客户端:因为客户端已经有安装了iTerm ,所以这些步骤就不操作了惹,如果没有安装看下这里吼~这里。自己搞的时候好像也没有配置i...原创 2020-03-06 18:16:25 · 4288 阅读 · 0 评论 -
ssh 登录报错--The authenticity of host 192.168.0.xxx can't be established. 的问题
参考: https://blog.youkuaiyun.com/KimSoft/article/details/5865418原创 2020-01-13 17:05:18 · 613 阅读 · 0 评论 -
cmake入门教程
转载自 : CMake入门实践吹爆这篇文章啦!原创 2020-01-09 22:03:27 · 128 阅读 · 0 评论 -
如何查找当前使用的vimrc
vim --version 最后一行的输出中。参考: https://blog.easwy.com/archives/where-is-vimrc/原创 2019-12-31 17:25:03 · 635 阅读 · 0 评论 -
secureCrt查看二进制文件后乱码
Ctrl+ V然后Ctrl+Ohttps://blog.youkuaiyun.com/chengxuyuanyonghu/article/details/39478447原创 2019-12-25 10:31:57 · 875 阅读 · 0 评论 -
rapidjson和python画图
rapidjson : https://blog.youkuaiyun.com/qq_27385759/article/details/79277434python 模拟曲线: https://www.jb51.net/article/144481.htm原创 2019-12-22 23:38:57 · 202 阅读 · 0 评论 -
了解clang AST
https://www.stephenw.cc/2018/01/08/clang-ast/https://jonasdevlieghere.com/understanding-the-clang-ast/#navigatingsources原创 2019-12-20 16:19:09 · 499 阅读 · 0 评论 -
C++计算程序代码时间间隔(精确到ms)
#include <iostream>#include <stdio.h>#include <string>#include <sys/time.h>#include <unistd.h>using namespace std;int fa_getSysTime() { struct timeval tv; gett...原创 2019-12-20 11:49:22 · 1413 阅读 · 0 评论 -
Python Pool阻塞的问题
https://ahuigo.github.io/b/py/py-debug-futex#/原创 2019-12-19 11:16:13 · 980 阅读 · 0 评论 -
docker相关
共享文件系统https://coolshell.cn/articles/17061.htmlhttp://dockone.io/article/1511原创 2019-12-17 10:55:13 · 92 阅读 · 0 评论 -
ccls运行报错,clang assert错误
ccls: /home/lenajin/llvm-7.0.0.src/tools/clang/lib/Sema/SemaOverload.cpp:5059: clang::ImplicitConversionSequence TryObjectArgumentInitialization(clang::Sema &, clang::SourceLocation, clang::Qua...原创 2019-12-16 20:25:27 · 756 阅读 · 0 评论 -
gdb设置
gdb参数设置https://blog.youkuaiyun.com/qibaoyuan/article/details/6116265原创 2019-12-12 16:57:18 · 298 阅读 · 0 评论 -
libmemcached 相关
API 使用https://blog.youkuaiyun.com/nyist327/article/details/44491107原创 2019-12-12 16:14:40 · 107 阅读 · 0 评论 -
scons
类似与makefile的编译规则文件,用python写https://www.ibm.com/developerworks/cn/linux/l-cn-scons/index.html原创 2019-12-06 21:59:44 · 165 阅读 · 0 评论 -
secureCRT登录`No compatible key-exchange method. The server supports these methods: diffie-hellman`
SecureCrt登录遇到这个问题No compatible key-exchange method. The server supports these methods: diffie-hellman。解决方法: Options > Session Options,参考: https://forums.vandyke.com/showthread.php?p=48086...原创 2019-11-20 11:01:43 · 43765 阅读 · 0 评论 -
LanguageClient-neovim插件常用命令总结
参考:官方doc: https://github.com/autozimu/LanguageClient-neovim/blob/next/doc/LanguageClient.txtcall LanguageClient_textDocument_formatting()原创 2019-06-18 10:37:48 · 1194 阅读 · 0 评论 -
vim map 映射
参考: http://haoxiang.org/2011/09/vim-modes-and-mappin/原创 2019-06-25 11:25:30 · 208 阅读 · 0 评论 -
Rust换cargo源
参考:https://blog.youkuaiyun.com/weixin_34319999/article/details/87626858原创 2019-06-21 11:59:52 · 1901 阅读 · 0 评论 -
Linux命令总结
删除一天内的文件,注意{}和\之间有空格,\为转义字符find ./ -type f -mtime -1 -exec rm -rf {} \;原创 2019-06-20 15:18:58 · 231 阅读 · 0 评论 -
sublime3使用
1.安装package control使用代码安装了好多次都没有成功,错误是time out,最后换用手动安装,一次成功~https://www.cnblogs.com/luoshupeng/archive/2013/09/09/3310777.html...原创 2019-06-10 10:44:14 · 254 阅读 · 0 评论 -
Pytorch-cuDNN version mismatch: PyTorch was compiled against 7005 but linked against 7103
事情是这样的,从pytorch=3.0.0换了个版本到pytorch=3.0.1的时候,conda update完就报这个运行时错误了。原因是PyTorch用cudnn=7.0.5编译的,但是在这个环境中只找到了版本为7.1.3的cudnn,版本错误改了好久,大部分是说把7.1.3的环境从$PATH变量中删除就好了,可服务器上好几个环境怎么都没找到7.0.5的,不知道删了之后该链接到哪儿。问题截...原创 2019-03-15 19:49:56 · 5160 阅读 · 0 评论 -
Linux下java及JENA环境配置
1.java环境配置:参考:https://blog.youkuaiyun.com/licongcong_0224/article/details/12756959步骤:下载jdk。解压到要放的目录。配置:配置/etc/profile或者当前用户目录下的~/.bashrc,配置内容如下(配置完才发现上面那个是win下的):JAVA_HOME=/usr/java/jdk1.8.0_201CLA...原创 2019-01-21 17:18:41 · 1415 阅读 · 0 评论 -
vim + vundle + YCM+自动格式化
在虚拟机下安装了Pycharm发现好卡啊,就想着直接用vim加个自动补全插件好了,总结下刚刚装YouCompleteMed的过程吧;1. 安装Vundle先安装Vundle,用来管理其他插件。 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim打开vim ~/.vimrc添加配置项(见文末...原创 2018-11-28 15:33:21 · 915 阅读 · 0 评论 -
可执行的python程序
http://www.ttlsa.com/docs/jianming-python/python/ch03s05.htmlhttp://xstarcd.github.io/wiki/Python/python_subprocess_study.html原创 2019-07-02 11:06:13 · 200 阅读 · 0 评论 -
C++基础补习
看代码的时候发现好多熟悉又陌生的面孔,总结一下之后复习一下啊。智能指针:std::unique_str和 std::move等shell脚本:awk等原创 2019-06-27 10:39:35 · 189 阅读 · 0 评论 -
Python str转dict时出错
用eval 链接1用 ast.literal_eval 链接2原创 2019-07-11 15:45:31 · 719 阅读 · 0 评论 -
python解析json文件
https://blog.youkuaiyun.com/dyx404514/article/details/50186413原创 2019-07-11 11:04:39 · 262 阅读 · 0 评论