您的当前位置:TAGS -> CentOS7
  • centos7 vi命令

    服务器2025年07月18日

    保存命令 按ESC键 跳到命令模式,然后: :w 保存文件但不退出vi :w file 将修改另外保存到file中,不退出vi :w! 强制保存,不推出vi :wq 保存文件并退出vi :wq! 强制保存文件,并退出vi q: 不保存文件,退出vi :q! 不保存文件,强制退出vi :e! 放弃所有修改,从上次保存文件开始再编辑 使用hostnamectl...

  • centos7 安装后,意外出现Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]

    服务器2025年07月17日

    安装完成centos7后出现如下提示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License information (no user will be created) (license not accepted) Please make your choice fr...

  • centos7使用yum安装软件提示 cannot find a valid baseurl for repo:base/7/x86_64 的解决方法

    服务器2025年07月17日

    由于是本地yum源安装软件,无法联网,因此使用yum安装软件时报了错,解决方法是: 打开vi /etc/resolv.conf文件 把里面的内容改成: nameserver 8.8.8.8 修改完之后,需要重启网卡 centos6的网卡重启方法:service network restart centos7的网卡重启方法:systemctl restart...

  • centos7 安装mysql5.7(源码安装)

    服务器2025年07月15日

    Centos7将默认数据库mysql替换成了Mariadb 在接下来的mysql安装过程中,请一定保证自己当前所在目录是正确的! e g: [root@localhost ~]# 表示当前目录为~ [root@localhost mysql]# 表示当前目录为mysql 一、安装MySQL 1、下载安装包mysql-5.7.17-linux-glibc2....

  • centos7防火墙安装与操作

    服务器2025年07月14日

    一.前言Centos7以上的发行版都试自带了firewalld防火墙的,firewalld去带了iptables防火墙。其原因是iptables的防火墙策略是交由内核层面的netfilter网络过滤器来处理的,而firewalld则是交由内核层面的nftables包过滤框架来处理。 相较于iptables防火墙而言,firewalld支持动态更新技术并加入...

  • centos7 yum tab 补全

    服务器2025年07月14日

    执行 sudo yum install bash-completion , 然后重启终端, 即可 ...

  • CentOS7安装postgreSQL11

    服务器2025年07月13日

    官网安装方法: https://www.postgresql.org/download/linux/redhat/ 1.添加PostgreSQL Yum存储库 yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-...

  • centos7备份postgres

    服务器2025年07月13日

    1、创建定时任务shell vi /data/db_backup.sh #!/bin/bash cur_time=$(date '+%Y-%m-%d') sevendays_time=$(date -d -3days '+%Y-%m-%d') echo "Starting Backup PostgreSQL ..." rm -rf &q...

  • centos7 samba配置完成后不管怎么登陆都会显示密码错误的解决方案

    服务器2025年07月12日

    添加系统用户 useradd samba 添加samba用户 smbpasswd -a samba 激活samba用户 smbpasswd -e samba 1.win+r运行secpol.msc打开本地安全策略 2.安全策略->本地策略->安全选项 3.右侧找到 网络安全:LAN管理器身份验证级别 打开 ,选择 仅发送NTLM...

  • 腾讯云CENTOS7安装MSSQL2017

    服务器2025年07月09日

    腾讯云CENTOS7安装MSSQL2017 mkdir -p /opt/sqlserver2017cd /opt/sqlserver2017/ 下载离线包:wget https://packages.microsoft.com/rhel/7/mssql-server-2017/mssql-server-14.0.1000.169-2.x86_64.rpm ...