服务器5小时前
查看硬盘使用情况 df -hl [root@localhost ~]# df -hl文件系统 容量 已用 可用 已用%. 挂载点/dev/sda3 49G 52M 49G 1%. /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9G 0 1.9G 0%. /dev/shmtmpfs 1.9G 41M 1.8G 3% /runtmp...
服务器6小时前
最小化安装的 主要查看硬盘使用时间 需要安装 smartmontools 这个 [root@localhost ~]# yum install -y smartmontools 已加载插件:fastestmirror base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 (1/2)...
服务器17小时前
centos 7.0 最小化安装 查看IP ip addr 查看外网IP curl ifconfig.me 重启 shutdown -r now 安装wget yum -y install wget 查看所有文件 ls --all 进入目录 cd 目录名 解压.tar.gz文件 tar zxvf 文件名.tar.gz 强制删除文件 例子 rm -f /et...
服务器前天 09:05
重启后就出现ORA-12514: TNS:listener does not currently know of service requested in connect descriptor: vi /usr/local/oracle/product/10.2.0.1/network/admin/listener.ora SID_LIST_LISTENE...
服务器前天 15:10
Centos查看端口占用情况命令,比如查看80端口占用情况使用如下命令: lsof -i tcp:80 列出所有端口 netstat -ntlp 1、开启端口(以80端口为例) 方法一: /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 写入修改 /etc/init.d/iptables save 保存...
服务器2025年07月05日
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 firewall: systemctl start firewalld.service#启动firewall systemctl stop firewalld.service#停止firewall systemctl disable firewalld.servi...
服务器2025年07月03日
centos 7.0最小化安装 第一行是登录 [root@localhost ~]# [root@localhost ~]# cd ../ [root@localhost /]# ls bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr 跟...
服务器2025年07月02日
VI 命令的使用 直接例子 省的忘记 编辑网卡配置文件 vi /etc/sysconfig/network-scripts/ifcfg-enp2s0 不知道那个网卡 ip addr命令 PS:centos 7.0最小化安装 说默认没开启网络连接的 你都没打开网络连接的开关肯定没有 那个是安装时候配置的 打开后动态分配IP 按I键进入编辑模式 最下面出现IN...
服务器2025年07月02日
系统用的是centos 7.0最小化安装 我现在安装完了 写一下步骤 还没完全搞懂 首先安装GCC [root@localhost ~]# yum install -y gcc gcc-c++ 已加载插件:fastestmirror base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:...
服务器2025年07月01日
0.基础包 确保已安装 yum install mpfr cpp ppl cloog-ppl gcc kernel-devel pcre-devel libpcap-devel yum-plugin-priorities yum-conf libyaml libyaml-devel libnet flex bison gcc-c++ 第三步很坑的一点,官方...