centos 7.8 7.9安装python3.9并解决pip install时报错SSL问题

centos 7.8 7.9安装python3.9并解决pip install时报错SSL问题
按网上流程安装使用pip时会报错如下内容 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 正确安装方式如下: 12345678910111213141516171819yum install wget screen -y && screen -S lnmp sudo yum check-update || sudo yum update -y yum groupinstall -y 'Development Tools' yum install -y epel-release yum -y inst...

centos7 安装最新版redis

centos7 安装最新版redis
123456789sudo yum install epel-release yum-utils sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum-config-manager --enable remi sudo yum install redis sudo systemctl start redis sudo systemctl enable redis sudo systemctl status redis

Debian 9 系统LAMP(Apache)服务器配置及控制命令

Debian 9 系统LAMP(Apache)服务器配置及控制命令
注意Ubuntu 及 Debian系统中Apache服务器的服务为apache2,CentOS系统中为httpd Apache服务器控命令 1sudo systemctl start|stop|restart|reload|status apache2 Apache服务器配置文件路径 123456789/etc/apache2/apache2.conf # configurations in this order: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf Include /etc/apache2/httpd.conf Include /etc/apache2...

Debian 9防火墙配置工具UFW使用指南

Debian 9防火墙配置工具UFW使用指南
UFW安装 1sudo apt install ufw 基本控制命令 开机启动 1sudo ufw enable 当前运行状态 1sudo ufw status verbose 关闭/启动/重启命令 1sudo ufw stop|start|restart 开启关闭ipv6支持 1sudo nano /etc/default/ufw 修改IPV6=yes 防火墙规则设置 先禁止所有端口访问/允许服务器对外访问所有端口 12sudo ufw default deny incoming sudo ufw default allow outgoing 打开指定端口in访问权限 123sudo ufw al...

centos7.9升级内核到5.*

centos7.9升级内核到5.*
1234567891011uname -sr rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm yum --disablerepo="*" --enablerepo="elrepo-kernel" list available yum --enablerepo=elrepo-kernel install kernel-ml reboot uname -sr vi /etc/default/grub 修改GRUB_DEFAULT=0 grub2-mkconfig -o /boot/grub2...

centos7 内核优化

centos7 内核优化
编辑内核参数 1vi /etc/sysctl.conf 修改为: 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980#关闭ipv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 ##决定检查过期多久邻居条目 net.ipv4.neigh.default.gc_stale_time=120 ##使用arp_announce / arp_ignore...

Is the docker daemon running? Docker使用总结

Is the docker daemon running? Docker使用总结
/usr/bin/docker-current: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See '/usr/bin/docker-current run --help'. docker 服务启动 systemctl start docker.service systemctl enable docker.service docker语法 1docker run [OPTIONS] IMAGE [COMMAND] [ARG...] docker OPTIONS说明 -a stdin: 指定标准输入输出内容类型,可选 STDIN/STDOUT/S...

GNU Make version is too old

GNU Make version is too old
123456789101112131415161718192021222324252627282930313233make -v <em>GNU Make 3.82 Built for x86_64-redhat-linux-gnu Copyright (C) 2010  Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted...

CentOS系统Python2.7安装最新版pip

CentOS系统Python2.7安装最新版pip
首先查看是否已经安装pip 1python -m pip --version 若提示/usr/local/bin/python: No module named pip 则未安装 自动化方式:使用get-pip.py脚本安装pip 1、获取Python2.7安装pip脚本 1curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py 若Python版本为3.6+ 则使用以下脚本 1curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 2、下一步,执行安装脚本 1python get-pip.py 安装...

centos系统升级yum默认安装的Python2.6至2.7版

centos系统升级yum默认安装的Python2.6至2.7版
首先查看默认 Python 版本 1python -V 若版本低于2.7则继续 1yum groupinstall "Development tools" -y && yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y 1wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz && tar xf Python-2.7.12.tar.xz && cd Python-2.7.12 && ./configure -prefix=/usr/local 1ma...

CentOS 6.8 6.9 6.10/RHEL 6系统安装Certbot

CentOS 6.8 6.9 6.10/RHEL 6系统安装Certbot
Let’s Encrypt 的免费SSL证书一般通过服务器使用Certbot来进行自动注册更新和管理,但是centos 6系统却无法通过yum install certbot命令直接安装Certbot,会提示No package certbot available. 返回如下信息 12345678Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * epel: mirrors.tuna.tsinghua.edu.cn * extr...

手把手教你Debian10安装配置Golang环境,并编译hello world程序

手把手教你Debian10安装配置Golang环境,并编译hello world程序
Go,也称为golang,是Google开发的一种现代的开源编程语言。 Go尝试使软件开发安全,快速且易于访问,以帮助您构建可靠,高效的软件。 本教程将指导您在Debian 10系统源码安装Go,编译和执行“ Hello,World!”。 下载及安装 123456sudo apt update sudo apt install curl curl -O https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz tar xvf go1.12.7.linux-amd64.tar.gz sudo chown -R root:root ./go...

dpkg –configure -a命令报错’ldconfig’、’start-stop-daemon’和expected programs not found

dpkg –configure -a命令报错’ldconfig’、’start-stop-daemon’和expected programs  not found
1234dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin 原因:使用非root用户su后进行安装,所以导致参数和环境无法传递的问题 解决方法:给sudo命令加入...

Package debhelper is not configured yet处理方法

Package debhelper is not configured yet处理方法
debian10执行某个安装时,因为dpkg Fail中断,提示: 123456789Unpacking dh-autoreconf (19) ... dpkg: dependency problems prevent configuration of dh-autoreconf:  dh-autoreconf depends on debhelper; however:   Package debhelper is not configured yet. dpkg: error processing package dh-autoreconf (--configure):  dependency problems - leaving unconfigured Errors wer...

通过IPMI远程安装Debian 10系统

通过IPMI远程安装Debian 10系统
不管你通过IPMI远程重装什么系统,第一步准备工作是去你准备安装的系统的官网,下载系统的iso文件,然后通过IPMI Java控制台使用虚拟光驱挂载,安装时,相当于远程服务器从本地电脑读取光盘iso文件内容(上传至远程服务器),所以务必保证本地电脑与远程服务器之间网络良好(一个好办法是去国内云主机商那里开个win系统云服务器-记住,开按量付费型的,不要买包月的),然后按以下步骤进行系统重装,老牛最...

Debian 10 安装docker、docker-compose、Ansible

Debian 10 安装docker、docker-compose、Ansible
安装docker容器 先卸载系统自带的 su 1do apt-get remove docker docker-engine docker.io containerd runc 设置库 1sudo apt-get update 123456sudo apt-get install \     apt-transport-https \     ca-certificates \     curl \     gnupg-agent \     software-properties-common 添加Docker的官方GPG密钥 1curl -fsSL https://download.docker....

centos 8 ssh命令(服务器设置、防火墙配置等)

centos 8 ssh命令(服务器设置、防火墙配置等)
centos 8防火墙配置命令 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283841、安装 yum install iptables-services #安装iptables (如果你习惯centos6及以下版本所用的iptables防火墙的话,安装这个,如果已经安装了firewalld,这需要停用服务) 停用已经安装的firewalld systemctl ...

运维常用Linux命令

运维常用Linux命令
一.Linux文件和目录命令 123456789101112131415161718192021222324252627282930cd命令,用于切换当前目录,它的参数是要切换到的目录的路径,可以是绝对路径,也可以是相对路径。 cd /home    进入 '/ home' 目录 cd ..            返回上一级目录 cd ../..         返回上两级目录 cd               进...
Copyright © 老牛博客 保留所有权利.   Theme  Ality

用户登录