随笔分类 -  Linux

摘要:yum -y install bzip2 rpm2cpio xxx.rpm | cpio -div 阅读全文
posted @ 2022-05-17 22:31 流年中渲染了微笑 阅读(244) 评论(0) 推荐(0) 编辑
摘要:当前gcc版本 [root@localhost ~]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Ta 阅读全文
posted @ 2022-05-17 22:23 流年中渲染了微笑 阅读(534) 评论(2) 推荐(1) 编辑
摘要:今天在升级 gcc 的时候遇见了一个错误 error while loading shared libraries: libmpfr.so.6: cannot open shared object file 解决办法 [root@localhost gcc_bag]# wget https://al 阅读全文
posted @ 2022-05-17 22:16 流年中渲染了微笑 阅读(3585) 评论(0) 推荐(0) 编辑
摘要:其实很简单,是因为你没有m4,安装它就OK了。 centos上用下面的命令 yum install m4 如果是在ubuntu上的话使用下面的命令 sudo apt-get install mp4 此问题就可以解决 阅读全文
posted @ 2022-05-17 17:19 流年中渲染了微笑 阅读(418) 评论(0) 推荐(0) 编辑
摘要:今天在使用wget来下载下载一个不安全的https 域名下的内容时会提示如下内容: cannot verify pkg.jenkins.io's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’ Issued certificate has e 阅读全文
posted @ 2022-05-17 17:17 流年中渲染了微笑 阅读(924) 评论(0) 推荐(0) 编辑
摘要:我们在远程ssh链接ubuntn服务器的时候,会出现一下的一个问题 ssh: connect to host localhost port 22: Connection refused 之所以出现这个问题,是因为我们ubuntn系统默认是没有安装openssh-server的。 解决办法就是安装这个 阅读全文
posted @ 2022-04-12 10:39 流年中渲染了微笑 阅读(2408) 评论(0) 推荐(0) 编辑
摘要:1 基本命令的基本格式 1. 命令提示符说明 [root@localhost~]# * []: 这是提示符的分隔符号,没有特殊含义 * root:显示的是当前的登陆用户 * @:分隔符号,没有特殊含义 * localhost:当前系统的简写主机名(完整主机名localhost.localdomain 阅读全文
posted @ 2022-03-18 19:20 流年中渲染了微笑 阅读(237) 评论(0) 推荐(0) 编辑
摘要:2 文件基本权限的介绍和作用 2.1、基本权限的介绍 (1)权限位的含义 前面说的ls -l xx.txt或者 ll 命令时,就已经知道长格式显示的第一列就是文件权限的描述,例如: ubuntu@ubuntu-HP-Z4-G4-Workstation:~$ ll -rw-r--r--. 1 root 阅读全文
posted @ 2022-03-18 19:20 流年中渲染了微笑 阅读(195) 评论(0) 推荐(0) 编辑
摘要:ls 命令是Linux下最常用的指令之一。ls命令为英文单词 list 的缩写,正如英文单词 list 的意思,其功能是列出指定目录下的内容及其相关属性信息。 默认状态下,ls命令会列出当前目录的内容。而带上参数后,我们可以用ls做更多的事情。作为最基础同时又是使用频率很高的命令,我们很有必要搞清楚 阅读全文
posted @ 2021-05-31 19:10 流年中渲染了微笑 阅读(917) 评论(0) 推荐(0) 编辑
摘要:1下载地址: https://github.com/protocolbuffers/protobuf/releases 最好是下载-all的包,因为里面的依赖文件比较全,不然还需要下载各种依赖,可能会遇到各种报错,我这里下载的是3.11.2版本,自己根据情况下面对应的版本. 2如果下载最新的 git 阅读全文
posted @ 2021-04-22 10:42 流年中渲染了微笑 阅读(499) 评论(0) 推荐(0) 编辑
摘要:在对glog进行make操作时报错如下 解决办法:重新安装gflags和glog,按如下方式进行安装: 1)安装gflags git clone https://github.com/gflags/gflags.git cd gflags mkdir build && cd build cmake 阅读全文
posted @ 2021-04-20 19:44 流年中渲染了微笑 阅读(749) 评论(0) 推荐(0) 编辑
摘要:查看linux上是否通过yum安装了nginx rpm -qi nginx 安装 1. 安装前需要的环境 一. gcc 安装 安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum install gcc-c++ 二. PCRE pcr 阅读全文
posted @ 2020-04-16 18:27 流年中渲染了微笑 阅读(211) 评论(0) 推荐(0) 编辑
摘要:vi /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6IN 阅读全文
posted @ 2020-04-06 22:27 流年中渲染了微笑 阅读(115) 评论(0) 推荐(0) 编辑
摘要:#解决中文乱码 在serveice端 yum -y install wqy-microhei-fonts \cp /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /usr/share/fonts/dejavu/DejaVuSans.ttf 阅读全文
posted @ 2020-04-06 18:51 流年中渲染了微笑 阅读(112) 评论(0) 推荐(0) 编辑
摘要:安装客户端 #安装zabbix源、aliyu nYUM源 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo curl -o /etc/yum.repos.d/epel.repo 阅读全文
posted @ 2020-04-06 17:58 流年中渲染了微笑 阅读(135) 评论(0) 推荐(0) 编辑
摘要:一 安装zabbix 1.1. 环境检查 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@localhost ~]# uname -r 3.10.0-693.el7.x86_ 阅读全文
posted @ 2020-04-06 16:20 流年中渲染了微笑 阅读(171) 评论(0) 推荐(0) 编辑
摘要:一 安装 docker yum install docker -y 二 docker操作 获取docker镜像 [root@localhost ~]# docker pull centos Using default tag: latest Trying to pull repository doc 阅读全文
posted @ 2019-12-29 13:56 流年中渲染了微笑 阅读(281) 评论(0) 推荐(0) 编辑
摘要:import paramiko # private = paramiko.RSAKey.from_private_key() 秘钥 trans = paramiko.Transport(("123.*.*。*",22)) trans.connect(username='root',password= 阅读全文
posted @ 2019-12-28 14:16 流年中渲染了微笑 阅读(158) 评论(0) 推荐(0) 编辑
摘要:Linux基础 一、创建CentOS 7 Linux虚拟机 1、安装虚拟机 桥接网络:相当于这台机器就是物理机,多个电脑在连接在一个交换机上,同一个子网 NAT:这台机器只能通过物理机(相当于网关)转发出去包,可以出,不可进 仅主机模式:只能和本机通信,不能出,不能进 这个时候就建立了一台虚拟机 手 阅读全文
posted @ 2018-05-13 22:37 流年中渲染了微笑 阅读(157) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示