自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 CentOS7安装python3及虚拟环境

1、安装环境 系统版本:CentOS 7.1(自带python2.7) 安装版本:Python3.8 安装插件:virtualenv、virtualenvwrapper 一、安装Python3.8 由于CentOS7原本就安装了Python2,而且这个Python2不能被删除,因为有很多系统命令,比如yum都要用到。所以我们要额外安装Python3,而且系统一般允许多个版本的python同时存在。...

2019-10-24 11:19:51 278

原创 搭建LNMP环境

1.解决LNMP环境依赖 yum -y install make gcc gcc-c++ flex bison file libtool libtool-libs autoconf kernel-devel libjpeg libjpeg-devel libpng libpng-devel gd freetype freetype-devel libxml2 libxml2-devel zlib ...

2019-10-14 14:31:07 218

原创 docker安装使用

docker安装 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) 安装docker环境依赖 [root@localhost ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 配置阿里云docker的yum源...

2019-10-10 16:59:33 235

原创 shell脚本中添加信息说明

[root@ansible ~]# vim .vimrc 1 set ignorecase 2 set cursorline 5 set nu 6 autocmd BufNewFile *.sh exec ":call SetTitle()" 7 func SetTitle() 8 if expand("%:e") == 'sh' 9 call setl...

2019-10-10 16:23:57 510

原创 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again解决方法!

[root@node1 ~]# yum install epel-release -y #安装epel源 [root@node1 ~]# yum clean all [root@node1 ~]# yum makecache Loaded plugins: fastestmirror Repository base is listed more than once in the configur...

2019-10-10 15:49:32 1334

原创 python打印99乘法表

[root@python ~]# cat ./99.py #!/usr/bin/python3 for i in range(1,10): for j in range(1,i+1): print('{0}x{1}={2}'.format(j,i,i*j).ljust(6),end=' ') print() [root@python ~]# ./99.py 1x...

2019-01-01 18:14:21 2443

原创 使用Keepalived构建LVS-DR模式的高可用集群

一、准备四台主机 主机名 IP 网关 作用 client10 DIP: 192.168.10.62/24 192.168.10.2 主LVS VIP: 192.168.10.111/24 client20 DIP: 192.168.10.63/24 192.168.10.2 备LVS VIP: 192.168.10.111/24 client30...

2018-12-14 20:18:14 342

原创 Linux下搭建LAMP部署UCenter!

一.以rpm包的方式安装LAMP。 [root@client30 ~]# yum -y install httpd mariadb-server mariadb php php-mysql 二.启动服务LAMP相关服务: [root@client30 ~]# systemctl start httpd [root@client30 ~]# systemctl enable httpd [root@...

2018-12-04 22:21:12 744

原创 python爬虫入门豆瓣top250的抓取

import requests from bs4 import BeautifulSoup def get_page(): headers = { ‘User-Agent’: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 ’ ‘(KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36...

2018-11-19 07:40:27 205

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除