摘要:https://blog.csdn.net/yockie/article/details/51207016 如果还有乱码就如下设置:
阅读全文
随笔分类 - linux
摘要:https://blog.csdn.net/yockie/article/details/51207016 如果还有乱码就如下设置:
阅读全文
摘要:安装部署配置Grafana WHAT:美观、强大的可视化监控指标展示工具 WHY:用来代替prometheus原生UI界面 # 200机器,准备镜像、资源配置清单: ~]# docker pull grafana/grafana:5.4.2 ~]# docker images|grep grafan
阅读全文
摘要:[root@VM_0_5_centos ~]# rm -rf !(\..*) 删除所有非.开头的文件 !是非,\是转义,所面的.*是所有
阅读全文
摘要:1、打开 /etc/yum.repos.d/epel.repo; /etc/yum.repos.d/epel.repo 2、注释掉mirrorlist,取消注释baseurl; 将 [epel] name=Extra Packages for Enterprise Linux 7 - $basear
阅读全文
摘要:第一步:先查看是不是ctr的问题: SecureCRT的修改,选项→会话选项,将外观中的字符编码集修改为UTF-8即可,其他终端程序同理 如果不是则再参照如下文档操作:https://www.cnblogs.com/lywJ/p/10710460.html
阅读全文
摘要:ssh免密登录的方法: 查看当前用户id, whoami su - lizhihua切换用户 1.ssh-keygen 创建密钥对 .ssh/.id_rsa 私钥 .ssh/.id_rsa.pub 公钥 2. 把公钥copy到要登录的目标机器上centos机 >ubuntu机 scp -rp id_
阅读全文
摘要:sudo是linux系统中,用来执行需要权限命令,但是一些朋友使用sudo时,出现下面的错误“ziheng is not in the sudoers file. This incident will be reported.”其中ziheng是登录的用户名。 中文意思是:用户不在sudoers文件
阅读全文
摘要:1 使用SecureCRT远程连接后,Options > Session Options > Terminal(终端) > 勾选 “Send protocol NO-OP”
阅读全文
摘要:[root@test_environment src]# netstat -tnllup 能显示对应端口和进程 Active Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address St
阅读全文
摘要:(1)[root@tf ~]# alias rm='echo do not use rm command'[root@tf ~]# vim /etc/profile alias rm='echo do not use rm command'[root@tf ~]# source /etc/profi
阅读全文
摘要:1.netstat 命令可以帮助检查本机的网络状况实战应用1:公司内部的一个老服务运行在192.168.1.1:50060上,服务将于一周之后停用,再在要查一下本机上有没有进行在调用该服务。[root@zbxelk ~]# netstat -pt可以输出PID及程序名:Active Internet
阅读全文
摘要:终端输入命令:tzselect 根据提示选择:5 --> 9-->1-->1-->okrm /etc/localtimeln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime [root@node01 ]#date
阅读全文
摘要:[root@controller ~]# ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00
阅读全文
摘要:https://blog.csdn.net/s573626822/article/details/80680456
阅读全文
摘要:获取mca地址#ifconfig eth0 |egrep "ether" |awk '{print $2}' 前提请确认网络连接方式为:桥接 [root@node01 ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE="Ethernet"
阅读全文
摘要:[root@node01 ~]# yum list |grep bash bash-completion.noarch 1:2.1-6.el7 base bash-completion-extras.noarch 1:2.1-11.el7 epel
阅读全文
摘要:https://blog.csdn.net/wei349914638/article/details/80692805 http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm ht
阅读全文
摘要:用ntpdate从时间服务器更新时间 1.如果你的linux系统根本没有ntpdate这个命令 1 yum install -y ntp 2.安装完了之后,你不要做什么配置,也不需要,直接测试一下 1 2 [root@git conf.d]# ntpdate asia.pool.ntp.org 21
阅读全文
摘要:VMware下CentOS7最小化安装及配置 1、VMware创建虚拟机 2、安装CentOS7 选择系统语言 磁盘分区规划,选择默认自动分区,也可手动分区: 设置网络和主机名: 这里设置主机名为:centos7,打开网络连接,其他网络参数等待系统安装完成后再设置; 设置日期和时间: 开始系统安装:
阅读全文
摘要:1.yum无法安装工具 failure: repodata/repomd.xml from dag: [Errno 256] No more mirrors to try.http://apt.sw.be/redhat/el7/en/x86_64/dag/repodata/repomd.xml: [
阅读全文
|