1.查看ifconfig命令是否存在 查看 /sbin/ifconfig是否存在 2.如果ifconfig命令存在,查看环境变量设置 [root@localhost ~]# echo $PATH 如果环境变量中没有包含ifconfig命令的路径,修改PATH变量使之包含/sbin路径: 打开/etc/profile文件,在文件最好一行加上 export PATH=$PATH:/sbin 保存并重启即可。 3.如果ifconfig命令不存在 [root@localhost ~]# yum upgrade [root@localhost ~]# yum install net-too...
不多说,直接上干货! 直接yum install mysql的话会报错,原因在于yum安装库里没有直接可以用的安装包,此时需要用到MariaDB了,MariaDB是MySQL社区开发的分支,也是一个增强型的替代品。 安装ossec时需要使用到mysql-server,直接安装报错:[root@ossec-server ~]# yum install mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package mysql-server available.
Error:...
本地编译Open vSwitch时报错Traceback (most recent call last):
File "./ovsdb/ovsdb-idlc.in", line 8, in <module>
import ovs.json
File "/root/rpmbuild/BUILD/openvswitch-2.6.0/python/ovs/json.py", line 21, in <module>
import six
ImportError: No module named six
Traceback (most recent call last):
File "./ovsdb/ovsdb-idlc.in", line 8, in <module>
import ovs.json
File "/root/rpmbuild/...
zabbix 4.0.8 centos rpm 安装 出现图表注释丢失,坐标轴没有单位的解决办法[root@Francis ~]# mkdir /usr/share/zabbix/fonts
[root@Francis ~]# ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /etc/alternatives/zabbix-web-font
[root@Francis ~]# ln -s /etc/alternatives/zabbix-web-font /usr/share/zabbix/graphfont.ttf
[root@Francis ~]# cp /usr/share/zabbix/fonts/graphfont.ttf /usr/share/zabbix/assets/fonts/
#完...
我在编译安装完Nginx、MySQL和PHP(见之前一篇博客:LNMP环境搭建详细教程)之后,进行apache的编译安装:cd /usr/local/src
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.34.tar.gz
tar zxvf httpd-2.4.34.tar.gz
cd httpd-2.4.34 ./configure --prefix=/usr/local/httpd 就在这个时候提示:configure: error: APR not found. Please read the documentation.这说明缺少APR依赖,那么安装即可,可以用yum安装但是不...
docker-compose是 docker 容器的一种单机编排服务,docker-compose 是一个管理多个容器的工具,比如可以解决容器之间的依赖关系,当在宿主机启动较多的容器时候,如果都是手动操作会觉得比较麻烦而且容器出错,这个时候推荐使用 dockerd的单机编排工具 docker-compose。centos7安装docker-compose:首先需要安装python-pip包[root@harbor-node1 ~]# yuminstall epel-release
[root@harbor-node1 ~]# yuminstall -y python-pip
[root@...
CentOS 7忘记root密码解决办法1.重启开机按esc2.选择第二个菜单,按e3.编辑修改两处:ro改为rw,在LANG=en_US.UFT-8后面添加init=/bin/sh4.按Ctrl+X重启,并修改密码5.由于selinux开启着的需要执行以下命令更新系统信息,否则重启之后密码未生效touch /.autorelabel6.重启系统exec /sbin/init
原文:https://blog.51cto.com/1191997818/2424570
CentOS 7忘记root密码解决办法1.重启开机按esc2.选择第二个菜单,按e3.编辑修改两处:ro改为rw,在LANG=en_US.UFT-8后面添加init=/bin/sh4.按Ctrl+X重启,并修改密码5.由于selinux开启着的需要执行以下命令更新系统信息,否则重启之后密码未生效touch /.autorelabel6.重启系统exec /sbin/init原文:https://blog.51cto.com/1191997818/2470636
1. 安装完成Nginx后无法站外访问? 刚安装好nginx一个常见的问题是无法站外访问,本机wget、telnet都正常。而服务器之外,不管是局域网的其它主机还是互联网的主机都无法访问站点。如果用telnet的话,提示: 正在连接到192.168.0.xxx...不能打开到主机的连接, 在端口 80: 连接失败 如果用wget命令的话,提示: Connecting to 192.168.0.100:80... failed: No route to host. 如果是以上的故障现象,很可能是被CentOS的防火墙把8...
问题:Terminal主机名显示bogon解决方案:一、使用hostname命令[root@bogon ~]# hostname localhost[root@bogon ~]# su这样只是临时更改主机名为localhost,重启后还是会恢复为bogon。二、修改linux主机的配置文件/etc/hostname 和 /etc/hosts,这种方式修改后系统重启依旧有效。(推荐)1.修改/etc/hostname里面的主机名字。(该步骤可省略)# vim /etc/hostname#localhost.localdomain//屏蔽这一行localhost//新增这行或者采用命...
configure: error: xml2-config not found. Please check your libxml2 installation.yum install libxml2-develconfigure: error: Cannot find OpenSSL’syum install openssl-develconfigure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/yum install curl-develconfigure: error: libjpeg.(a|so) not foundyum install libjpeg-develconfigure: error: libpng.(a|so) not found.yum ...
特别注意:vm10自带虚拟机共享工具,自动识别utf-8格式的中文文件内容下面步骤摘自网络:两种方案其实差不多,这里提供两个文件的下载地址,免得去网上搜这两个文件了;fonts-chinese-3.02-12.el5.noarch.rpm :http://download.csdn.net/detail/tianyazaiheruan/6908943fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm:http://download.csdn.net/detail/tianyazaiheruan/6908965方案一:在使用CentOS系统时,出现的各种中文乱码,我们...
1、关闭selinuxsetenforce 0vim /etc/selinux/configSELINUX=disabled保存退出2、开启自动获取ipvim /etc/sysconfig/network-scripts/ifcfg-ens32ONBOOT=yes保存退出systemctl restart network3、ifconfig命令不能使用解决办法yum install net-tools -y原文:https://www.cnblogs.com/fyiyy/p/15018107.html
Ubuntu,centos默认未安装ssh远程加密连接服务。使用命令,安装即可。 0.sudo apt-get install openssh-server openssh-client 1.rpm -qa | grep ssh查看SSH是否安装 若没有执行第0步 2.service sshd status 查看是否开启 如果没有继续下面 3.启动SSH服务 service sshd restart 停止服务service sshd stop 4.netstat -antp | grep sshd 查看是否启动22端口或者ps -aux|grep sshd 看是否有sshd服务 5.chkconfig sshd on 设置...
在CentOS 最小化mini安装后,没有ifconfig命令,此时网卡也没有启动,所以无法yum安装net-tools。下面三步解决此问题:1 查看网卡名称ip addr2 启动网卡ifup 网卡名称3 安装net-toolsyum install net-tools原文:http://www.cnblogs.com/kuillldan/p/7506297.html