首页
关于
留言板
友情链接
Search
1
提取并下载谷歌应用商店软件(Google Play APK download)教程
4,811 阅读
2
常用VPS测试脚本代码:综合性能/硬件/IO Speed/CPU跑分/回程路由/硬盘读写/测速ping延迟测试一键脚本
362 阅读
3
不知道自己的VPS速度有多快?VPS测速脚本分享
348 阅读
4
一次在CentOS系统单用户模式下使用passwd命令破密失败的案例
305 阅读
5
宝塔面板首次登录,提示填入绑定手机号,强制提示且不能关闭
273 阅读
Windows
Linux
Kvm
程序源码
主机教程
NAS
登录
Search
标签搜索
命令
文件
服务器
etc
root
服务
server
重启
yum
程序
start
install
界面
windows
安装
update
宝塔
权限
chmod
默认
Typecho
累计撰写
160
篇文章
累计收到
11
条评论
首页
栏目
Windows
Linux
Kvm
程序源码
主机教程
NAS
页面
关于
留言板
友情链接
搜索到
4
篇与
的结果
2023-08-20
MegaCli 安装和基本使用
下载RPM包wget http://mirror.cogentco.com/pub/misc/MegaCli-8.07.14-1.noarch.rpmMegaCli-8.07.14-1.noarch.rpm安装rpm -ivh MegaCli-8.07.14-1.noarch.rpm安装完,就会在/opt/下创建个MegaRAID目录,文件都在里面添加软连接ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/MegaCli查看帮助手册MegaCli -h查看raid 状态MegaCli -LdInfo -lAll -aALLState : Degraded(降级) State : Offline(离线) State : Optimal(正常) Number Of Drives : 2 RAID组包含2块磁盘。 查看硬盘数量以及有无损坏,有几行就是有几个硬盘MegaCli -PDList -aALL |grep "Firmware state"硬盘状态:Firmware state: Online, Spun Up 磁盘正常 Firmware state: Unconfigured(good), Spun Up 磁盘已安装,但未启用 Firmware state: Unconfigured(bad) 故障 Firmware state: Failed 故障 Firmware state: Rebuild 重建,一般在更换磁盘时显示查看硬盘所有信息MegaCli -PDList -aALL部分参数解释:Slot Number: ---硬盘槽号PD Type: -----磁盘接口类型InquiryData: -----硬盘的序列号、型号、固件版本Raw Size: -----磁盘原始大小NonCoerced Size: -----磁盘标准大小CoercedSize: ------磁盘最大可用大小Medai Error Count: ------表示磁盘可能错误,可能是磁盘有坏道,这个值不为0值得注意,数值越大,危险系数越高。Other Error Count: ------表示磁盘可能存在松动,可能需要重新再插入。Predictive Failure Count: -----预测故障计数查看raid级别第一种:MegaCli -LdPdInfo -aALL|grep "RAID Level"raid级别:RAIDLevel : Primary-0, Secondary-0, RAID Level Qualifier-0 这就是raid00 0 0 是raid01 0 0 是raid15 0 3 是raid51 3 0 是raid10raid1 还需要结合Span Depth的值来判断Span Depth : 2 表示共2个RAID1盘组做成了RAID10,1表示1个RAID1盘组还有一种情况:Primary-1, Secondary-3, RAID LevelQualifier-0 也是表示 RAID-10;也可以这么显示raid级别,输入就会返回,这种的基本准确第二种:MegaCli -ShowSummary -aALL|grep "RAID Level"如报一下错误[root@localhost MegaCli]# ./MegaCli64 -PDList -aALL ./MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory解决办法 :安装libncurses.so.5yum install libncurses.so.5安装 libncurses.so.5 之后,如果还是报错,就安装 libncurses 相关软件包yum install libncurses*
2023年08月20日
131 阅读
0 评论
0 点赞
2023-06-24
centos7 安装donet
1. centos7-安装dotnet工具安装epel源[root@sonarqube config]# yum install epel-release -y 导入dotnet源 [root@sonarqube config]# rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm 查找dotnet安装包 [root@sonarqube config]# yum search dotnet-sdk安装最新dotnet[root@sonarqube config]# yum -y install dotnet-sdk-6.0验证安装是否成功[root@sonarqube config]# dotnet --version 6.0.1022. dotnet build报错问题描述: linux下dotnet build 时候出现 .1.201/NuGet.targets(124,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.解决方案解决: /etc/pki/tls/certs/ 下面少了证书 ca-certificates.crt 拷贝下面内容到证书里面-----BEGIN CERTIFICATE----- MIIGKjCCBRKgAwIBAgIQAqQdLHDmymcvfOktofoYODANBgkqhkiG9w0BAQsFADBE MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcn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Zzn -----END CERTIFICATE-----
2023年06月24日
63 阅读
0 评论
0 点赞
2021-10-15
CentOS/RHEL Linux安装EPEL第三方软件源
EPEL(Extra Packages for Enterprise Linux) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS等提供高质量软件包的项目。装上了 EPEL,就像在 Fedora 上一样,可以通过 yum install 软件包名,即可安装很多以前需要编译安装的软件、常用的软件或一些比较流行的软件,比如现在流行的nginx、htop、ncdu、vnstat、axel、cmake3、libsodium-devel等等软件包/依赖包,都可以使用EPEL很方便的安装更新。安装EPEL源目前可以直接通过执行命令: yum install epel-release 直接进行安装如果服务器或VPS是在国内,可以设置为国内的源,执行命令:sed -i "s@^#baseurl=http://download.fedoraproject.org/pub@baseurl=http://mirrors.aliyun.com@g" /etc/yum.repos.d/epel*.repo sed -i "s@^metalink@#metalink@g" /etc/yum.repos.d/epel*.repo{alert type="warning"}如果是CentOS 8,请务必将前面两条命令里面的http都改成https。{/alert}如果前面命令无法安装 epel-release 可以尝试以下方法CentOS/RHEL 5 :rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpmCentOS/RHEL 6 :rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmCentOS/RHEL 7 :rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm###CentOS/RHEL 8 : rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm Ok,如果不报错的话,epel源就安装完毕。使用EPEL源安装软件现在就可以执行:yum install 软件包名进行安装了,nginx、htop、ncdu、vnstat等等一些常用的软件都灰常简单的装上了。心动了吧赶快试试吧。
2021年10月15日
27 阅读
0 评论
0 点赞
2021-09-07
使用yum提示Error: rpmdb open failed的解决方案
当我们使用yum提示:Error: rpmdb open failed的解决方案(一般是磁盘空间满了)[root@www~]# cd /var/lib/rpm # rpmdb所在目录 [root@www rpm]# rm -f __db.* # 清除原rpmdb文件 [root@www rpm]# rpm --rebuilddb # 重建rpm数据库 [root@www rpm]# yum clean all # 清除所有yum的缓存
2021年09月07日
15 阅读
0 评论
0 点赞