【linux – 未列出的Wifi网络 – CentOS 7】教程文章相关的互联网学习教程文章

(原创)在Linux上安装运行Python3(CentOS7为例)【代码】【图】

在win10上开发好的python项目要部署在Linux上要面对的问题:怎么在Linux上跑py文件呢? 以Lunix CentOS7.x平台为例,CentOS系统上自带的已有python2.x 的版本,使用命令可以查看。但我们需要python3.x 的主流版本,此时建议不要删除原有的python2 ,而是另外安装python3。(网上的教程,都是选择将Python3覆盖原来的Python2,这会导致一些依赖问题,比如:使用yum报错。) Python 的官网地址:https://www.python.org/ Python3 安装...

Linux(centos)使用docker安装pdf2htmlEX【代码】【图】

pdf2htmlEX是一款可以将pdf文档转换成html文件的插件,但是Linux系统安装起来很麻烦,所以我们使用docker进行安装 首先要安装docker 因为国外镜像很慢,所以我们这边修改使用国内的镜像 修改vim /etc/docker/daemon.json默认是有这个文件的,如果没有就创建一个文件夹 在创建文件 然后输入 加入{"registry-mirrors": ["http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn"] } 然后保存退出 重启服务syste...

linux centos7 修改网卡名称【图】

linux centos7 修改网卡名称 centos7 默认网卡名称都是ens33,要想修改 第一步:设置系统的环境变量, vim /etc/default/grub 增加红线部分 :wq 保存退出 第二步:使系统重新加载该环境变量 grub2-mkconfig –o /etc/grub2.cfg 第三步:更改/etc/sysconfig/network-scripts/路径下的 ifcfg文件、 先重命名 mv ifcfg-ens33 ifcfg-eth0 再编辑ifcfg-eth0文件 vim ifcfg-eth0 把NAME 和DEVICE属性改成eth0 然后重启网卡服务systemctl res...

Linux Centos7 ssh免密登陆【图】

ssh免密原理之所以ssh免密登陆,是因为在进行登录验证时,会有两个东西。 一个是公钥,一个是私钥,而私钥只能自己保存,不能泄露出去,但是公钥可以给别人,只要这个公钥给了别人之后,就代表着自己给别人授权了,别人就可以拿着这个公钥来访问自己了ssh免密登陆[root@hadoop1 .ssh]# ssh-keygen -t rsa 进行初始化 分发ssh的公钥,之后就可以进行免密登陆了 [root@hadoop1 .ssh]# ssh-copy -id hostname 这里的这个hadoop2和had...

Linux(CentOS)安装配置FTP(pure-ftpd)【代码】

1、 默认的yum源没有提供pure-ftpd,所以需要先安装epel-release扩展源,然后使用yum命令安装pure-ftpd。 yum install epel-release yum install pure-ftpd2、启动 pure-ftpd服务。 [root@localhost /] service pure-ftpd start Redirecting to /bin/systemctl start pure-ftpd.service3、创建系统用户组及用户。 [root@localhost /] groupadd www [root@localhost /] useradd -g www -s /sbin/nologin www4、创建虚拟用户并设置密码...

linux shell centos 7.6 重置root 密码【图】

https://www.bilibili.com/video/BV1Sv411r7vd?p=26 P026_韩顺平图解Linux全面升级_找回root密码 08:231.首先进入系统,进入开机界面,选中 上面的系统,按e进入编辑界面 (默认5秒内操作好,来回切换系统不耗费时间) 2.进入编辑页面,将光标移动到“Linux16” 开头的行,在最后面输入 init=/bin/sh ,输入完成后按ctrl +x 键 进入单用户模式进入单用户模式后,启动如图, 输入 mount -o remount,rw / 注意单词间空格(mount空格...

linux离线状态下安装Docker Centos7 内网 无外网【代码】【图】

下载离线docker安装包 [root环境下] https://download.docker.com/linux/static/stable/x86_64/ 下载最新的版本即可docker-20.10.5.tgz 解压安装 tar -xvf docker-20.10.5.tgz cp docker-20.10.5/* /usr/bin启动守护程序 程序执行完回车即可 nohup dockerd &测试安装 docker run hello-world返还结果 latest: Pulling from library/hello-world b8dfde127a29: Pull complete Digest: sha256:308866a43596e83578c7dfa15e27a73011bd...

Linux_CentOS8_磁盘管理_磁盘大小调整_`No space left on device` (2)【代码】

Issue : CentOS8 in the VMware: No space left on device 1. Issue Description : Initially, 20G Hard Disk(SCSI) was portioned to the CentOS8 in the virtual machine. For disk room occupied by the genome index file , genome reference ,rawdata and so on, and larger room would be required in the downstream analysis, so the disk resize would be rather necessary. 2. Solutions : extend the logical volume : ...

linux的centos7防火墙firewalld【代码】

防火墙相关命令\firewalld 注意:服务改变需要重新加载服务 启动关闭 /etc/init.d/iptables status #centos6 查看防火墙状态 /etc/init.d/iptables stop #centos6 关闭防火墙状态 chkconfig iptables off #centos6 开机不自启 改为:on 开机自启systemctl status firewalld #centos7 查看防火墙状态 systemctl stop firewalld #centos7 关闭防火墙状态 systemctl disable firewalld #centos7 开机不自启...

Linux-Centos安装nginx–解压版安装【代码】

#yum 安装nginx 环境yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel pcre pcre-devel 解压文件 tar -zxvf nginx-1.18.0.tar.gz 最简单的安装:# 全部采用默认安装./configuremake && make install 执行完成之后 nginx 运行文件 就会被安装在 /usr/local/nginx 下。也可以编译到指定目录 ./configure --prefix=/usr/data/nginx #默认方式启动:./sbin/nginx #指定配置文件启动 ./sbing/nginx -c /tm...

linux系统(centos)下安装与卸载intel parallel_studio_xe_2019

很早之前在linux系统中安装了intel_parallel_studio_xe_2013,因为种种原因要换个比较新一点的版本,遂将安装与卸载过程记录下来,利人利己。 卸载2013版本的过程 卸载过程很简单,进入/opt/intel/parallel_studio_xe_2013/ ,采用 ./uninstall.sh 命令直接卸载。卸载完成后删除/opt/中的intel目录。 安装2019版本: 安装过程同样也不难 , tar -xzvf intel_parallel_studio_xe_2019 /root ,将安装包解压至root目录下, 进入 /root/i...

Linux-026-Centos Nginx 配置 pid 文件路径解决 service nginx status 提示:Can't open PID file /var/run/nginx【代码】【图】

在使用 service nginx status 命令查看 nginx 的运行状态时,提示:Cant open PID file /var/run/nginx.pid (yet?) after start: No such file or directory 导致 nginx 服务关闭,服务不可用,具体提示信息如下所示 查看 nginx.conf 配置文件,发现未配置 nginx.pid 的文件路径。后经查询官方文档,可知 nginx.pid 默认保存在了 nginx 安装目录下的 logs 目录下。 nginx.pid 的路径是可以通过配置实现,有如下两种方式:通过 ngi...

在linux CentOS7 安装Nginx 部署vue【代码】【图】

在linux CentOS7 安装Nginx 部署vue 一、安装所需环境 1)gcc 安装 gcc安装,安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境yum install gcc-c++2)PCRE pcre-devel 安装 PCRE(Perl Compatible Regular Expressions) 是一个Perl库,包括 perl 兼容的正则表达式库。nginx 的 http 模块使用 pcre 来解析正则表达式,所以需要在 linux 上安装 pcre 库,pcre-devel 是使用 pcre 开发的一个二次开发库。nginx也需要此库...

【Linux】通过Docker部署web项目(CentOS7版本以上)【代码】【图】

【Linux】通过Docker部署web项目(CentOS7版本以上) 今天教大家如何通过Docker部署WEB项目(适合docker小白学习,都是干货!!!) 一、 远程连接 我使用的远程连接工具是Xshell,个人感觉还是很好用的。 1.首先进入自己服务器。 二、安装docker 查看环境 # 系统的内核是3.10+ [root@iZhp3do4qhzu84445osa3sZ ~]# uname -r 3.10.0-1127.19.1.el7.x86_64#系统版本 NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhe...

Centos7下载linux内核源码【代码】【图】

内核源码以rpm包的形式提供 1.查看centos7的版本这里是7.9.2009 2.下载对应版本的rpm包 到官方网站 https://vault.centos.org/ 选择目录 7.9.2009 接着进入目录 os 然后 Source 最后 SPackages 找到名字为 kernel-3.10.0-1160.el7.src.rpm 的rpm包,如果是其他版本网页上搜索kernel,找到带src的就是,然后点击下载下来并上传到服务器 3.安装rpm包 如果直接执行会报很多警告,消除警告的方式是创建mockbuild用户和用户组 groupadd ...