cd到/etc/rc.d/init.d/目录,并列出该目录下的所有文件,看看是否有httpd 使用httpd -v查看已经安装的httpd的版本 使用rpm -qa | grep httpd查看是否已经安装了httpd 使用ps -ef | grep httpd查看httpd的进程 使用servic ...
分类:
Web程序 时间:
2020-06-25 11:54:16
阅读次数:
89
服务器 1. 检查ntp是否安装 rpm -qa|grep ntp 2. 修改ntp配置 /etc/ntp.conf 设置网段 设置集群只使用本服务器时间同步 服务器没联网时依然可以提供时间同步服务 修改如下内容 //添加restrict 192.168.1.0 mask 255.255.255.0 ...
分类:
其他好文 时间:
2020-06-24 20:12:53
阅读次数:
68
今天在 Linux 上安装 mysql-server 的时候,出现了以下这个问题。(环境是 Centos 7) 没有可用软件包 mysql-server。 错误:无须任何处理 解决方法: 1.下载相应 rpm 包: wget http://repo.mysql.com/mysql-community ...
分类:
数据库 时间:
2020-06-24 18:07:57
阅读次数:
59
sudo yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm sudo yum --enablerepo=remi install redis -y ...
分类:
其他好文 时间:
2020-06-24 15:47:00
阅读次数:
84
更新yum源 CentOS/RHEL 7.x: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/w ...
分类:
Web程序 时间:
2020-06-24 14:03:39
阅读次数:
79
均为 root 账户操作 检查系统中的jdk版本 java -version 没有的话直接下一步 有就卸载 查询自带的openjdk rpm -qa | grep -i java 没有的话直接跳过下一步 有就卸载 检查系统环境 uname -a //i686表示32位 x86_64表示是64位 下载 ...
分类:
其他好文 时间:
2020-06-23 22:56:17
阅读次数:
236
以前安装过几十次的mysql。今天还是遇到问题(虽然是因为是局域网ip不通无法远程连接),记录一个完整的安装过程。 1.yum卸载 yum安装之后如果需要卸载 1.命令 rpm -qa | grep -i mysql 或者 yum list installed | grep mysql 查看安装的m ...
分类:
数据库 时间:
2020-06-23 19:23:48
阅读次数:
98
(1)非惠普的机器sudo /opt/MegaRAID/MegaCli/MegaCli64 -LdInfo -LALL -aAll(2)惠普的机器 hpacucli如果你的机器上没有hpacucli命令则先安装,下面提供rpm的安装方式:安装 rpm -ivh hpssacli-2.30-6.0.x ...
分类:
其他好文 时间:
2020-06-23 13:50:18
阅读次数:
245
脚本使用说明:因为网络问题,请先下载harbor安装包,然后上传到/root目录下,再运行脚本harbor下载地址:https://github.com/goharbor/harbor/tags脚本支持任意版本harbor安装脚本如下:#!/bin/bashcheck_packet(){a=`rpm-qa$1|wc-l`[a==0]&&yuminstall-y$i}#thefunt
分类:
其他好文 时间:
2020-06-22 10:56:20
阅读次数:
78
一键安装nginx脚本#!/bin/bash#定义函数,检查软件包是否安装check_packet(){rpm-qa$1|wc-l}#安装依赖包packet_install(){foriin"pcre-develzlibzlib-developensslopenssl-deve"doa=`check_packet$i`if[$a==0]thenyum-yinstall$ifidone}#安装ngi
分类:
其他好文 时间:
2020-06-22 09:28:56
阅读次数:
52