随笔分类 -  linux

摘要:Centos systemctl 介绍 在 Centos 中 systemctl 是设置系统服务(service)的命令,它融合之前service和chkconfig的功能于一体。 可以使用它永久性或只在当前会话中启用/禁用服务。 添加服务 CentOS7的服务systemctl脚本存放在:/usr 阅读全文
posted @ 2021-05-20 04:07 宁川 阅读(289) 评论(0) 推荐(0)
摘要:编译 安装 MySQL Centos7.6 + MySQL5.7.34 下载地址:https://dev.mysql.com/downloads/mysql/ 下载源码包 wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-boos 阅读全文
posted @ 2021-05-07 22:27 宁川 阅读(104) 评论(0) 推荐(0)
摘要:RPM安装MySQL Centos7.6 + MySQL5.7.34 下载地址:https://dev.mysql.com/downloads/mysql/ # 清理环境 rpm -qa |grep -i mysql rpm -qa |grep -i mariadb # 普通删除模式 rpm -e 阅读全文
posted @ 2021-05-07 17:30 宁川 阅读(91) 评论(0) 推荐(0)
摘要:二进制 安装 MySQL Centos7.6 + MySQL5.7.32 下载地址:https://dev.mysql.com/downloads/mysql/ 清理环境 rpm -qa |grep -i mariadb rpm -e --nodeps mariadb-libs-5.5.68-1.e 阅读全文
posted @ 2021-05-07 17:29 宁川 阅读(98) 评论(0) 推荐(0)
摘要:centos7 修改yum源为阿里源 # 备份旧配置信息 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak # 下载阿里云源 wget -O /etc/yum.repos.d/CentOS-Base. 阅读全文
posted @ 2021-05-07 00:33 宁川 阅读(116) 评论(0) 推荐(0)
摘要:# 使用ssh-keygen生成SSH钥匙,可添加参数设置密码,密钥类型等 # 会询问是否自定义文件,设置密码等,一路回车即可。 root@DESKTOP-FVOICCT:~# ssh-keygen Generating public/private rsa key pair. Enter file 阅读全文
posted @ 2020-09-17 13:04 宁川 阅读(206) 评论(0) 推荐(0)
摘要:CentOS 7.0默认使用的是firewall作为防火墙 当前Linux版本信息: [root@VM-0-12-centos bin]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 基础命令: # 启动 systemct 阅读全文
posted @ 2020-09-15 23:47 宁川 阅读(156) 评论(0) 推荐(0)
摘要:Linux版本信息: [root@VM-0-12-centos bin]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 下载Redis:Redis下载地址 wget http://download.redis.io/rel 阅读全文
posted @ 2020-09-14 03:33 宁川 阅读(235) 评论(0) 推荐(0)
摘要:Centos7默认gcc版本: [root@VM-0-12-centos /]# gcc -v gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) Centos7升级到gcc9: yum install centos-release-scl -y 阅读全文
posted @ 2020-09-14 03:18 宁川 阅读(2093) 评论(0) 推荐(0)