![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Centos
文章平均质量分 61
yylの博客
这个作者很懒,什么都没留下…
展开
-
ubuntu 普通用户免密码使用sudo
ubuntu 普通用户免密码使用sudo修改配置文件# 切换到超级用户sudo suvim /etc/sudoers原创 2021-07-23 18:00:44 · 598 阅读 · 0 评论 -
Centos7 openssl过期问题,升级openssl
Centos7 openssl过期问题1-官网下载安装包https://www.openssl.org/source/# 通过wget下载稳定版cd /usr/local/wget https://www.openssl.org/source/openssl-1.1.1h.tar.gztar zxvf openssl-1.1.1h.tar.gzcd openssl-1.1.1h./config --prefix=/usr/local/openssl #检查环境./config –tma原创 2020-12-02 14:57:27 · 497 阅读 · 0 评论 -
Centos7安装jdk1.8
Centos7安装jdk1.81-下载安装包jdk1.8安装包 密码: 4vos2-解压配置并移动位置tar -zxvf jdk-8u161-linux-x64.tar.gzmv jdk1.8.0_161 /usr/local/jdk3-修改环境变量vim /etc/profileexport JAVA_HOME=/usr/local/jdkexport JAVA_OPTS="-Xms1024m-Xmx1024m"export CLASSPATH=.:$JAVA_HOME/lib/t原创 2020-11-26 16:01:44 · 92 阅读 · 0 评论 -
Centos7 安装nginx
Centos7 安装nginx1-安装包nginx-1.12.0.tar.gz2-安装依赖yum -y install gcc-c++ zlib zlib-devel pcre pcre-devel zlib zlib-devel openssl openssl-devel wget tar3-下载解压cd /usr/local# 在线下载wget http://nginx.org/download/nginx-1.12.0.tar.gztar -zxvf nginx-1.12.0.ta原创 2020-11-10 08:21:27 · 163 阅读 · 0 评论 -
Centos7 Docker搭建gitlab(持久化)
Centos7 Docker搭建gitlib(持久化)1-安装docker并配置加速,不然速度会很慢安装Docker2-下载gitlib镜像docker pull beginor/gitlab-ce:11.0.1-ce.03-创建持久化存储和配置挂载的目录mkdir -p /mnt/gitlab/etcmkdir -p /mnt/gitlab/logmkdir -p /mnt/gitlab/data4-初次运行容器,生成配置文件docker run -d -p 8443:443 -p原创 2020-10-30 15:46:22 · 694 阅读 · 0 评论 -
Centos 7 安装Docker并配置阿里云加速
CentOS7 安装Docker1-配置源yum install -y yum-utils device-mapper-persistent-data lvm2 libsemanage-python libselinux-utilsyum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoyum makecache fast2-选择版本yum list docker-原创 2020-10-30 14:34:34 · 126 阅读 · 0 评论 -
Python 新建虚拟环境(Centos)
Python 新建虚拟环境1-下载包pip install virtualenv2-创建虚拟环境cd ~virtualenv -p python3 venv3-进入虚拟环境source ~/venv/bin/activate3-退出虚拟环境deactivate原创 2020-10-26 16:06:20 · 82 阅读 · 0 评论 -
VMware 扩充硬盘空间
VMware Centos7 扩充硬盘空间首先在VMvare中将虚拟机文件的硬盘扩展到指定数,然后进去Centos系统中配置1.查看磁盘情况并创建新分区fdisk -l /dev/sdafdisk /dev/sda# 依次输入:np3回车回车t3L8ewreboot # 重启一下2.查看卷组名vgdisplay3.新建物理卷pvcreate /dev/sda34.使用新的物理卷来扩展 LVM 的 VolGroupvgextend centos /dev原创 2020-09-07 12:21:04 · 99 阅读 · 0 评论 -
Kubernetes18.3之kubeadm多master安装(Centos7)
Kubernetes18.3之kubeadm多master安装(Centos7)1-修改hosts文件# 修改名hostnamectl set-hostname k8s-master1/k8s-master2/k8s-master3bash# 主master修改hostscat <<EOF > /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1原创 2020-07-01 15:08:57 · 273 阅读 · 0 评论 -
Centos7 安装Python3.6(其他版本也一样)
Centos7 安装Python3.61.下载依赖yum -y install wget zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel gcc make2.下载3.6.6安装包(速度比较慢)链接: 官网直接下载链接: 百度网盘 提取码:k687# wget下载wget https://www.python.org/ftp/python/原创 2020-06-19 11:03:02 · 374 阅读 · 0 评论 -
Centos7 rpm安装MySQL5.7
Centos7 rpm安装MySQL5.71.下载rpm包链接: 官网链接: 百度网盘 验证码2.卸载mariadb# 查看是否安装rpm -qa|grep mariadb# 卸载rpm -e --nodeps mariadb-libs-5.5.65-1.el7.x86_64 3.安装依赖yum install libaio perl net-tools -y4.解压安装# 解压mkdir mysql_rpmstar -xvf mysql-5.7.25-1.el7.原创 2020-06-18 17:24:59 · 189 阅读 · 0 评论 -
Centos7 rpm安装oracle客户端
centos7 rpm安装oracle客户端1.获取oracle客户端文件2.安装rpm客户端rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm rpm -ivh oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm3.查询oracle安装位置(默认在/usr/lib)find / -name oracle4.修改环境变量vim .bash_pro原创 2020-06-18 15:10:53 · 870 阅读 · 0 评论 -
Centos7 Elasticsearch安装部署
Centos7 Elasticsearch安装部署1.导入密匙rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch 2.在线下载rpm安装包,并安装(离线自行下载)# 使用wget下载wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.rpm # 安装rpm -ivh elasticsearch-6.2.4.rp原创 2020-06-12 16:27:58 · 141 阅读 · 0 评论 -
Centos7 修改硬盘分区大小
Centos7 修改硬盘分区大小扩充root分区大小1.查看磁盘空间大小df -h此处可以看到home分区还要66G,我们需要分配50G到root分区2.备份home目录文件cp -r /home/ homebak/3.卸载home分区,并查看是否成功umount /homedf -hx...原创 2020-04-10 08:39:17 · 4902 阅读 · 0 评论 -
supervisor安装与使用详解
supervisor安装与使用详解supervisor是使用Python编写的一个开源管理框架,可以通过简单的配置来控制管理程序1-安装supervisor(需要有python环境)pip install supervisor2-创建配置目录,获取配置文件mkdir /etc/supervisorecho_supervisord_conf > /etc/supervisor/s...原创 2019-10-29 09:14:52 · 740 阅读 · 0 评论 -
Centos7安装libreoffice
Centos7安装libreofficeyum install -y libreoffice原创 2019-10-25 15:51:53 · 1115 阅读 · 0 评论 -
centos7利用libreoffice将doc文件转换为pdf
centos7使用libreoffice将doc格式转换为pdf格式利用Centos7自带的libreoffice可将doc文件直接转换为pdf文件libreoffice安装方式# demo.docx表示doc文件# --outdir表示转换后放到指定文件夹soffice --headless --invisible --convert-to pdf ./demo.docx --out...原创 2019-10-25 15:50:20 · 1189 阅读 · 0 评论 -
Liunx Centos 远程连接key错误问题
Liunx Centos 远程连接key错误问题ssh远程连接key错误,原因可能是之前连接成功过,后来多次修改过IP导致本地保存key和服务器key对应不上1-删除服务器key文件rm -f /etc/ssh/ssh_host_rsa_key2-找到本地key记录并删除(macOS)vim ~/.ssh/known_hosts3-Windows中key所在位置# 88686:...原创 2019-10-25 15:44:28 · 200 阅读 · 0 评论 -
Centos离线安装rpm包
Centos离线安装rpm包1-安装单个rpm包# 以wget为例rpm -Uvh --nodeps wget-1.14-18.el7_6.1.x86_64.rpm2-批量安装rpm包# 切换到指定rpm包目录下cd packsrpm -Uvh --nodeps *.rpm...原创 2019-10-25 15:29:26 · 443 阅读 · 0 评论 -
Centos在线下载rpm包(不安装)
Centos在线下载rpm包(不安装)1-下载指定安装包(不安装依赖)# wget:包名# --destdir参数表示下载到指定目录(默认在执行命令目录下)yumdownloader wget --destdir=./test/2-下载指定安装包(并一同下载相关依赖包)# wget:包名# --destdir参数表示下载到指定目录(默认在执行命令目录下)yumdownloader...原创 2019-10-25 15:25:14 · 555 阅读 · 0 评论 -
Centos7 安装wget
Centos7 安装wget使用yum命令安装wgetyum install wget原创 2019-10-25 15:08:00 · 336 阅读 · 0 评论 -
Centos7-修改yum源和epel源为阿里云
Centos7-修改yum源为阿里云1-切换到yum源所在目录cd /etc/yum.repos.d2-将旧yum原备份mv CentOS-Base.repo CentOS-Base.repo.bak3-使用wget获取阿里云源(wget安装)wget http://mirrors.aliyun.com/repo/Centos-7.repo4-把阿里云源改名为原文件名mv C...原创 2019-10-25 15:04:58 · 378 阅读 · 0 评论