Linux默认是允许Ping响应的,系统是否允许Ping由2个因素决定的:A、内核参数,B、防火墙,需要2个因素同时允许才能允许Ping,2个因素有任意一个禁Ping就无法Ping。 具体的配置方法如下: A、内核参数设置 1、允许PING设置 A.临时允许PING操作的命令为:#echo 0 >/ ...
分类:
其他好文 时间:
2020-06-15 13:55:12
阅读次数:
59
查看centos版本号 [root@VM_0_16_centos ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) ...
分类:
其他好文 时间:
2020-06-15 13:52:50
阅读次数:
51
GO的linux源码包 https://studygolang.com/dl 1.下载 wget https://studygolang.com/dl/golang/go1.14.2.linux-amd64.tar.gz 2.解压到/usr/local/ tar -C /usr/local/ -zx ...
分类:
其他好文 时间:
2020-06-15 12:26:35
阅读次数:
62
一般来说著名的 Linux 系统基本上分两大类: RedHat 系列:Redhat、Centos、Fedora 等 Debian 系列:Debian、Ubuntu 等 对比项rpmyumdpkgapt 系列 RedHat系 RedHat系 Debian系 Debian系 区别 包安装工具 依赖管理工 ...
分类:
其他好文 时间:
2020-06-15 12:23:12
阅读次数:
81
使用命令:sudo update-alternatives --config java举例如下:参考资料================https://askubuntu.com/questions/1119906/how-do-i-uninstall-java-11-to-be-able-to-i... ...
分类:
编程语言 时间:
2020-06-15 12:21:15
阅读次数:
97
谨以此篇记录自己今天犯的低级错误,如果你跟我一样有强迫症,那就留下来备查备用吧。 今天,在使用CentOS 7学习时,突然想重新加个LV,就在VG 里LV create了个新的LV 名为data;随后看到有lvrename命令,就又重命名为centos_data了,紧接着mkfs.ext4,挂载到/ ...
分类:
系统相关 时间:
2020-06-14 23:34:16
阅读次数:
141
本次安装Mysql的CentOS版本是7.7 1.下载Mysql 首先去Mysql官网下载安装包,网址https://dev.mysql.com/downloads/mysql/,下载后将Mysql安装包上传至服务器/usr/local/目录下 2.创建Mysql用户和组 groupadd mysq ...
分类:
数据库 时间:
2020-06-14 23:23:40
阅读次数:
72
sudo yum -y install net-tools ...
分类:
其他好文 时间:
2020-06-14 21:00:47
阅读次数:
64
如果是安装CentOS7的LiveGnome版本的话,其系统内已经预装了 JDK、Python等常见的软件环境。 但若我们要安装指定版本呢?所以,接着近期安装JDK之机,本文小结一下这个过程。 1 卸载、安装JDK过程 1.1 环境准备 CentOS 7 架构: x86 (64bit) 1.1 下载 ...
分类:
系统相关 时间:
2020-06-14 20:22:11
阅读次数:
67
1、拷贝initramfs文件 cp /boot/initramfs-3.10.0-514.26.2.el7.x86_64.img /opt/ 2、开始解压 cd /opt mkdir initramfs cd initramfs /usr/lib/dracut/skipcpio ../initra ...
分类:
其他好文 时间:
2020-06-14 18:27:49
阅读次数:
94