
Linux
文章平均质量分 55
FreyFan
这个作者很懒,什么都没留下…
展开
-
CentOS7查看CPU核数
1. 查看CPU型号 cat /proc/cpuinfo | grep name | sort | uniq2. 查看核数和逻辑CPU数目# CPU 个数cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l# 核数cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l# 线程cat /proc/cpuinfo | grep "processor" | sort原创 2022-01-20 16:33:08 · 10773 阅读 · 0 评论 -
How To Reset Root Password On CentOS 7
How To Reset Root Password On CentOS 7Resetting root password in CentOS/RHEL 7 is slightly different than the older versions. The post describes the procedure to reset the lost root password.Reboot and edit grub2Reboot the system and press any key to st原创 2021-06-04 11:52:58 · 343 阅读 · 0 评论 -
使用root用户登录linux显示access denied解决办法
使用root用户登录linux显示access denied解决办法 原因是**一般linux系统是默认禁止远程登录root用户的** 需要使用以下命令使他允许登录: 首先编辑配置文件 vi /etc/ssh/sshd_config1 在文件中找到 (可...原创 2021-06-04 11:52:20 · 3413 阅读 · 2 评论 -
centos7.2设置静态ip不生效
centos7.2设置静态ip不生效 一、检查/etc/sysconfig/network-scripts目录下配置文件 1、看到了一个陌生的配置文件 ifcfg-Wired_connection_1,度娘查询了一下这个配置文件是系统启动调用的网卡配置文件和Netw原创 2020-11-16 16:21:03 · 1552 阅读 · 1 评论 -
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running
docker search 无法使用异常:[root@tdmarco docker]# docker search mysqlCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?[root@tdmarco docker]# docker imagesCannot connect to the Docker daemon at unix:///var/run原创 2020-07-22 10:52:50 · 371 阅读 · 0 评论 -
Ubuntu18.04/19.10升级至20.04
Ubuntu18.04/19.04升级至20.04 怎样升级为Ubuntu最新的版本,本文为Ubuntu18.04和19.10升级为Ubuntu20.04的教程。当然也适用于其他版本的升级。第一步:Go to Software & Updates: And under the Updates tab, make sure that Notify me of a new Ubuntu version is set toAny new version (if you want to upgr.原创 2020-05-28 15:41:21 · 2223 阅读 · 0 评论 -
GitLab服务器重新设置IP后无法访问
GitLab服务器重新设置IP后无法访问修改IP后,需要重启服务器reboot然后问题解决原创 2020-05-28 11:04:36 · 1930 阅读 · 0 评论 -
Ubuntu18.04必要安装的软件
1.更新源找到Software & Updates,将源更新为阿里云的源 在Other Software里将Canonical Partners勾上。 然后自己手动更新一下:sudo apt updatesudo apt upgrade 2.Sougou Pinyinsudo apt-get install fcitx-bin #安装fcitx-binsudo apt-get update --fix-missing #修复fcitx-bin安装失败的情况su原创 2020-05-27 08:56:52 · 1068 阅读 · 0 评论 -
Ubuntu16.04下联想R720的无线网卡开启问题及信号不稳定
问题一1.1 问题描述笔记本型号:Lenovo r720笔记本(i5-7300hq,gtx1060 maxq 6g),默认装入Win10系统,然而当装入Ubuntu16.04双系统时,会出现无线网卡(型号:RTL8821AE)被hard blocked问题。即:在终端敲入:rfkill list all会出现:Soft blocked: noHard blocked:yes1:ideapad_bluetooth: BluetoothSoft blocked: noHard blocke原创 2020-05-27 08:40:37 · 866 阅读 · 0 评论 -
ubuntu16.04安装node.js、npm
ubuntu16.04安装node.js、npm1.请尽量避免在 Ubuntu 上使用 apt-get 来安装 node.js, 如果你已经这么做了,请手动移除:sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean2.使用以下命令安装 NVM(通过NVM安装node.js):curl -o- https://raw.githubusercontent...原创 2020-05-26 14:43:13 · 221 阅读 · 0 评论 -
Linux查看CPU和内存的配置信息
Linux查看CPU和内存的配置信息 CPU配置信息:frank@ubuntu:~/test/python$ cat /proc/cpuinfo processor : 0 #系统中逻辑处理核的编号 vendor_id : GenuineIntel #CPU制造商 cpu fami...原创 2020-05-26 10:01:49 · 1024 阅读 · 0 评论 -
Centos安装docker
一、安装docker1、Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。通过 uname -r 命令查看你当前的内核版本 $ uname -r2、使用 root 权限登录 Centos。确保 yum 包更新到最新。$ sudo yum update3、卸载旧版本(如果安装过旧版本的话)$ sudo yum remove docker docker-c.原创 2020-05-26 09:55:20 · 141 阅读 · 0 评论 -
CentOS 安装 docker-compose
CentOS 安装 docker-compose sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose如有需要,修改上面 1.24.1 为指定版本号即可安装完后执行:sudo chmod +x /usr/local/bin/docker-co原创 2020-05-26 09:51:40 · 156 阅读 · 0 评论 -
CentOS系统更换国内软件安装源
CentOS系统更换软件安装源 第一步:备份你的原镜像文件,以免出错后可以恢复。mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/rep...原创 2020-05-26 09:49:27 · 672 阅读 · 0 评论 -
Centos关闭防火墙
方法/步骤1使用命令:systemctl status firewalld.service查看防火墙状态步骤阅读2执行后可以看到绿色字样标注的“active(running)”,说明防火墙是开启状态步骤阅读3使用命令:systemctl stop firewalld.service 关闭运行的防火墙步骤阅读4关闭后,使用命令systemctl status firewalld.service查看防火墙状态可以看到,disavtive(dead)的字样,说明防火墙已经关闭步骤阅读步骤原创 2020-05-26 09:47:15 · 196 阅读 · 0 评论 -
Centos镜像地址
centos镜像地址太难找了,给大家分享一下http://mirror.nsc.liu.se/centos-store/原创 2020-05-26 09:44:12 · 386 阅读 · 0 评论 -
Centos 无法启动 Failed to load SELinux policy. Freezing
配置关闭SELinux,错误操作导致:应修改配置文件/etc/selinux/config中的“SELINUX”参数的值,SELINUX=enforcing 原始配置SELINUX=disabled 正确但是误将“SELINUXTYPE”看成“SELINUX”,设置了SELINUXTYPE参数:#SELINUXTYPE=targeted 原始配置 这个不必修改。SELINUXTYPE=disabled 错误重启服务后,报错按F2显示错误Failed to load SELin原创 2020-05-15 16:51:25 · 1058 阅读 · 1 评论 -
关闭centos防火墙及selinux
check firewall statefirewall-cmd --state> running shutdown centos firewallsystemctl stop firewalld.servicedisable centos firewallsystemctl disable firewalld.serviceclose selinuxvi /etc/selinux/config将SELINUX=enforcing改为SELINUX=disabled重启电脑原创 2020-05-15 15:41:09 · 161 阅读 · 0 评论 -
GitLab Docker版本配置邮箱
GitLab Docker版本配置邮箱以QQ邮箱为例1.登录QQ邮箱获取授权码找到对应的“账户位置”找到生成授权码的位置,点击生成授权码需要注意的是如果Chrome浏览器点击无法显示,请切换至IE进行尝试。根据提示编辑短信验证身份信息后,方可获取授权码。2.配置GitLab相关文件1)进入容器 docker exec -ti 容器ID bash2)修改邮箱配置信息vim...原创 2020-04-20 16:10:20 · 1093 阅读 · 0 评论 -
GitLab使用说明
GitLab使用说明1.版本管理服务器2.查看项目的相关信息3.创建项目4.Window 安装 Git 客户端软件5.设置客户端SSH-Client6.生成SSH密钥验证身份7.初始化GitLab上的项目存储库8.克隆Git服务器上的项目到本地9.提交与推送项目文件10.管理员账号使用说明10.1.新增用户10.2.项目分配成员10.3.新增群组10.4.群组添加成员10.5.群组创建项目1.版...原创 2020-04-14 15:45:21 · 769 阅读 · 0 评论 -
Centos7.3版本Docker部署Gitlab
Centos7.3版本Docker部署Gitlab1.Centos7.3版本部署1.1网络设置静态IP的设置。DNS的设置,保证服务器可以访问外网。1.2.设置Centos7.3的yum源为国内的阿里云源yum install -y wget1)备份原镜像文件,以免出错后可以恢复mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repo...原创 2020-04-14 15:51:43 · 349 阅读 · 0 评论 -
Linux grep 或者 多条件筛选
# Linux grep 或者 多条件筛选cat /media/xxx/xxx.csv | grep -E 'condition1|condition2|condition3' | more注意单引号的使用原创 2020-01-09 09:49:18 · 1386 阅读 · 0 评论