- 博客(18)
- 收藏
- 关注
原创 解决启动postgresql问题var/run/postgresql/.s.PGSQL.5432
解决启动postgresql问题var/run/postgresql/.s.PGSQL.5432
2022-12-05 16:04:44
10518
3
原创 ubuntu pip安装报错 which is not on PATH
首先看一下warnning信息 WARNING: The script normalizer is installed in '/home/llxy/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.配置环境变量gedit ~/.bashrc# 在文件
2022-03-21 14:21:21
8192
原创 简易上手的绘图工具--gnuplot--安装+应用
简易上手的绘图工具–gnuplot首先声明,ubuntu20.04的环境,linux版本5.4.0安装就两行,很简单sudo apt-get updatesudo apt-get install gnuplot应用gnuplotset output "test.png"test利用文件绘制把数据存放在 data.dat文件中,如下:#seg freen usedn0 0 8192 1 511 7681 2 189 8003 3 850 7342 4 842 7350
2022-03-11 18:01:54
1428
原创 如何在shell命令实现输入文件到main()函数+输出文件
在shell命令行 传文件到c语言中的main函数,函数的运行结果传输到文件中,excel也可以哦~方便画图
2022-03-11 17:31:29
1638
原创 use some functions from e2fsprogs
use argmentsWhen we want to use some argments from source program to our program, if the argment define to simple, like “int arg;” you just find and copy them from source program,custom data typeand if the argment have a custom data type such as “ext2_f
2022-03-11 16:16:59
1431
原创 2.16 待整理
DAX技术AOFRDB预写式日志写时复制COW内存分配回收管理-------细粒度slab分配器伙伴系统buddy systemMMUDMA刷新CPU指令内存的基本单位–页
2022-02-16 10:40:09
196
原创 linux中用c实现find命令
实现find shellstruct statstruct direntint res = stat(file_path,&st_buf)res == 0;successres != 0;faild,errno为错误信息S_ISDIR(struct stat st_buf)S_ISREG()map<string,int>mymapmymap.countDIR *d_info = opendir()struct dirent pdirent = readdir()
2022-02-10 09:48:03
1271
原创 Ubuntu环境下关于git速度慢的问题
github连接很慢的解决方法其实也是网上学来的方法访问https://www.ipaddress.com/ip-lookup查询github.com和github.global.ssl.fastly.netsudo vim /etc/hosts打开文件,把查询到的两个地址添加到后面gitclone很慢经常显示“无法访问”等问题比如git clone https://github.com/google/leveldb.git可以更换为git clone git://github.com/
2021-10-22 09:33:04
1488
1
原创 ubuntu挂载磁盘
首先查看一下磁盘信息lsblkllxy@llxy-GS65-Stealth-9SD:~$ lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT...(省略sda 8:0 0 7.3T 0 disk ├─sda1 8:1 0 3.8G 0 part /media/llxy/32594cb4-2fba-402f-93ca-910eb2a8cc42├─sda2 8:.
2021-10-20 14:38:01
647
原创 安装bcc-tools并简单运用biosnoop
安装bcc-tools1. g++、git和cmake等基础工具包2. 安装llvm和clang两种方式:第一种方式,直接apt安装sudo apt-get install llvmsudo apt-get install clang第二种方式,源码编译(本人编译到一半由于报错等问题放弃了这种方法)wget http://releases.llvm.org/4.0.0/llvm-4.0.0.src.tar.xztar -xf llvm-4.0.0.src.tar.xzwget ht
2021-10-20 11:01:34
1978
原创 ubuntu命令搜集
ubuntu命令搜集记录一些我最近用到的命令行安装.deb文件命令$sudo dpkg -i xxx.deb创建并执行cpp文件$touch test.cpp$gedit test.cpp //编写test.cpp文件$g++ test.cpp //查看当前目录下有没有执行后的文件,一般默认为a.out //如果想要制定输出文件的格式和名字,可以使用 //$g++ -o test.o test.cpp //最后执行 //$./test.o$./a.out编译 benchma
2021-10-19 11:37:00
800
原创 解决ubuntu软件中心无法安装软件的方法
解决ubuntu软件中心无法安装软件的方法当用ubuntu软件下载中心安装某个软件的时比如我安装typora的时候报错“unable to install typora: status-code=409 kind=snap-change-conflict message=snap"typora"has "install-snap"change in progress不用担心,打开终端,查看当前的状态:~$ snap changesID Status Spawn
2021-09-24 15:02:58
14032
2
原创 解决gitclone报错 无法访问‘https://github.com/xxx.git/‘:GnuTLS recv error
由于电脑被我搞坏了,重新安装了ubuntu20.04所以需要重新下载安装benchmark第一次gitclone成功了llxy@llxy-GS65-Stealth-9SD:~/tools$ git clone https://github.com/google/benchmark.git正克隆到 'benchmark'...remote: Enumerating objects: 6549, done.remote: Counting objects: 100% (805/805), done.
2021-09-24 10:34:14
5665
1
原创 google benchmark安装编译测试一条龙服务
google benchmark首先还是建议大家认真阅读github上的描述,我也是除了很多差错,最后发现还是官网真香环境:Ubuntu20.04.1安装编译benchmark安装git和cmake$ git clone https://github.com/google/benchmark.git$ cd benchmark$ cmake -E make_directory "build"$ cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOA
2021-09-16 14:12:43
2426
2
原创 如何更改jupyter notebook上的默认路径
如何更改jupyter notebook上的默认路径前提工作开始设置前提工作首先需要安装anaconda,这里不做过多叙述示例为win10系统先建立一个新的工作区,比如我这里:一会我们就要把jupyter的路径修改到这个文件夹OK现在我们正式开始设置!开始设置在开始菜单中打开Anaconda Prompt接着在命令行中输入jupyter notebook --generate-config看红色框出的区域就是现在默认的路径,根据这个路径打开对应文件打开config文件,更改如下
2020-11-26 11:00:20
125
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人