Linux 软件包管理 RPM包 GNU:GNU IS NOT UNIX RPM:RPM Packages Manager RPM包的长相 | 分类 | 安装 | 版本 | | | | | | rpm包 | 预先编译打包,安装简单 | 软件版本偏低 | | 源码包 | 手动编译打包,安装繁琐 | 软 ...
分类:
系统相关 时间:
2020-05-19 00:32:49
阅读次数:
103
命令 >> 文件 2>&1或命令 &>> 文件 将标准输出与错误输出共同写入到文件中(追加到原有内容的后面) # ll >>aaa 2>&1root@test-W330-C30:~# cat aaa总用量 3248drwx 18 root root 4096 5月 18 19:35 ./drwxr- ...
分类:
系统相关 时间:
2020-05-18 20:53:29
阅读次数:
188
第一步:查看当前的内核 root@linux:~# uname -a Linux linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 第二步:查看当前系统中 ...
分类:
系统相关 时间:
2020-05-18 18:55:28
阅读次数:
88
让普通用户用管理员权限运行程序 原理: Linux 和 FreeBSD 中有一个用来修改密码的命令“passwd”。 密码一般保存在 /etc/master.passwd、 /etc/passwd 和 /etc/shadow 等中, 没有 root 权限的用户是无法修改这些文件的。 然而, 如果只有 ...
分类:
其他好文 时间:
2020-05-18 00:39:41
阅读次数:
87
对应java代码:packagecom.yoooya.ytp.utils.doc;importcom.aspose.words.Document;importcom.aspose.words.License;importcom.aspose.words.SaveFormat;importcom.yoooya.ytp.utils.DateUtils;importcom.yoooya.ytp.util
分类:
编程语言 时间:
2020-05-16 10:46:26
阅读次数:
66
旋转圆形图片: .pic:hover{ transform: rotate(360deg); transition: all 1.5s ease ; } .pic{ border-radius: 500px; border: solid #dddfdc; } 鼠标放置完全显示: .ganying:h ...
分类:
Web程序 时间:
2020-05-15 21:50:42
阅读次数:
214
一,查看redhat系操作系统的版本: 适用于centos/fedora/rhel等 [root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 说明:刘宏缔的架构森林是一个专注架构的博客,地址:htt ...
分类:
系统相关 时间:
2020-05-15 13:13:35
阅读次数:
890
1. 使用make的命令行参数-n或--just-print,make会只显示要执行的命令,不执行,这样方便调试makefile。 2.执行命令 每写一行命令,make会fork出一个shell进程来执行该命令,如果要让shell连续执行多条语句,使用 ; 链接命令。 SHELL环境变量指定make ...
分类:
其他好文 时间:
2020-05-15 00:25:25
阅读次数:
63
首先介绍一下PriorityQueue优先队列,普通队列是先进先出的,但是优先队列刚好不是这样的,优先队列存在着一个优先级,换句话说也就是排序问题,队列里的对象,某个值越大,或越小,排的就越靠前。这里就用到了Comparable接口。pic-1589438395307.png这里的Student对象... ...
分类:
其他好文 时间:
2020-05-14 15:53:20
阅读次数:
65
(和网上的有点不一样,记录一下) 1)重启系统,同时长时间按住shift键进入grub菜单:GNU GRUB version 1.99-12ubuntu5(如图一) 2)选择Ubuntu, with Linux 4.2.0-27generic (recovery mode),按enter进入Reco ...
分类:
系统相关 时间:
2020-05-14 10:58:34
阅读次数:
105