转自:https://www.cnblogs.com/zhangyangdev/articles/9097725.html 1、检查当前机器是否有自带的JDK rpm -qa |grep java rpm -qa |grep jdk rpm -qa |grep gcj 2、如果没有 则跳至安装步骤, ...
分类:
其他好文 时间:
2020-07-07 11:39:13
阅读次数:
66
CentOS7安装JDK 一、CentOS7安装JDK 1.检查系统中是否存在JDK rpm -qa | grep java rpm -e --nodeps 要卸载的包 (包通过上面的指令可以获取到)] 如: rpm -e --nodeps java-1.7.0-openjdk-1.7.0.99-2 ...
分类:
其他好文 时间:
2020-07-07 00:06:29
阅读次数:
120
查看docker支持的网络驱动 [root@localhost ~]# docker info |grep "Network" WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disa ...
分类:
其他好文 时间:
2020-07-06 20:23:49
阅读次数:
81
CentOS 查询系统配置 # 查看 CPU grep "model name" /proc/cpuinfo | cut -f2 -d: # 查看内存 grep MemTotal /proc/meminfo | cut -f2 -d: 查询系统内核 uname -a 系统升级 使用 yum-cron ...
分类:
其他好文 时间:
2020-07-06 11:09:33
阅读次数:
90
标题 #!/bin/bash #uninstall system installed mysql(rpm version) rpm -qa |grep mysql rpm -e --nodeps *mysql* rpm -qa |grep mariadb rpm -e --nodeps mariad ...
分类:
数据库 时间:
2020-07-06 10:25:57
阅读次数:
66
1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来[root@centos7~]#grep-v"/sbin/nologin"/etc/passwd|cut-d:-f1rootsyncshutdownhaltzjwmageiaslackware2、查出用户UID最大值的用户名、UID及shell类型[root@centos7~]#get
分类:
其他好文 时间:
2020-07-06 01:02:16
阅读次数:
69
1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来[root@centos7scripts]#grep-v‘/sbin/nologin$‘/etc/passwd|cut-d:-f1rootsyncshutdownhaltkyletest[root@centos7~]#awk-F:‘{if($NF!="/sbin/nologin"){p
分类:
其他好文 时间:
2020-07-06 00:42:07
阅读次数:
89
命令[root@spider1 bin]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联 [root@spider1 bin]# whereis python |xargs rm -frv ##删除所有 ...
分类:
其他好文 时间:
2020-07-05 21:18:06
阅读次数:
45
1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来。 ~]# grep -v "/sbin/nologin" /etc/passwd | cut -d: -f1 root sync shutdown halt mageia slackw ...
分类:
系统相关 时间:
2020-07-05 17:28:20
阅读次数:
83
1.卸载系统自带的MySQL rpm -qa|grep mysql rpm -e --nodeps *mysql* rpm -qa|grep mariadb rpm -e --nodeps mariadb 2.安装MySQL8.0 wget https://cdn.mysql.com/archive ...
分类:
数据库 时间:
2020-07-05 13:32:08
阅读次数:
88