Fork me on GitHub

2017年6月7日

初识python notes

摘要: python数据类型 数字 字符串 列表 元祖 字典 1.为什么要编程 编程的目的是解放人力,这就需要人通过编写程序的方式计算机代替人去自动干活 2.什么是编程语言 编程语言就是人与计算机之间沟通的介质 3.编程语言的分类: 机器语言--》汇编语言--》高级语言 1.学习的复杂度是从难到易 2.执行效率从高到底 3.开发效率从低到高 高级语言开发的程序----》最终必须转换成二进制 转换... 阅读全文

posted @ 2017-06-07 09:18 vmaze 阅读(354) 评论(0) 推荐(0) 编辑

2017年6月5日

vimrc

摘要: autocmd BufNewFile *.py,*.sh, exec ":call SetTitle()" let $author_name = "xxxx" let $author_email = "xxxx@xxx.xx" func SetTitle() if &filetype == 'sh' call setline(1,"\##############################... 阅读全文

posted @ 2017-06-05 09:58 vmaze 阅读(91) 评论(0) 推荐(0) 编辑

2017年6月3日

kindedit编辑器和xxs攻击防护(BeautifulSoup)的简单使用

摘要: 一、kindedit编辑器 就是上面这样的编辑输入文本的一个编辑器 这也是一个插件。那么怎么用呢? 1、下载:百度kindedit 2、引入: <script src="/static/kindeditor/kindeditor-all.js"></script> 3、看官方提供的文档 在addar 阅读全文

posted @ 2017-06-03 13:46 vmaze 阅读(221) 评论(0) 推荐(0) 编辑

2017年6月2日

正则表达式 notes

摘要: nfs 网络文件系统 存储类型:块存储,对象存储,文件存储 nfs属于文件存储 crond 分钟小时日月周 命令:绝对路径 命令是由crond解释 /bin/bash a.sh */2 * * * * 1,2 * * * * 1-5/2 * * * * shell命令 alisa -->if --->function-->cd ->hash--- ls --->PATH---->/bin/... 阅读全文

posted @ 2017-06-02 17:21 vmaze 阅读(185) 评论(0) 推荐(0) 编辑

2017年6月1日

nfs cron shell 作业

摘要: 作业一: nginx反向代理三台web服务器,实现负载均衡 所有的web服务共享一台nfs的存储 2台服务器 nginx 【lb】 :101.200.206.6 nginx 【web】:101.200.169.119 准备环境: 分别在所有服务器执行 =======>part1: iptables -F #systemctl disable firewalld #开机默认关闭 #sys... 阅读全文

posted @ 2017-06-01 19:34 vmaze 阅读(208) 评论(0) 推荐(0) 编辑

nfs cron shell 笔记

摘要: 1.nfs 2.crond 3.shell 1.准备环境: 防火墙 selinux 配置ip 2.安装软件 二进制 源码安装 3.改改配置文件 二进制:/etc/nginx/nginx.conf 源码:/usr/local/nginx/conf/nginx.conf 4.启动服务 二进制:systemctl start nginx 源码:/usr/local/nginx/sbin/ng... 阅读全文

posted @ 2017-06-01 19:32 vmaze 阅读(158) 评论(0) 推荐(0) 编辑

samba Nginx

摘要: 1.samba 2.nfs 3.crond 4.nginx ifconfig yum install net-tools -y ifconfig #查看所有已激活的网卡信息 ifconfig eth0 #查看单独一块网卡的信息 ip mtu网卡的最大传输单元 临时配置 ifconfig eth0 ip/24 ifconfig eth0:0 ip/24 回环网卡 为了测试用的 永久配置 /etc... 阅读全文

posted @ 2017-06-01 09:13 vmaze 阅读(185) 评论(0) 推荐(0) 编辑

2017年5月26日

系统监控 磁盘分区

摘要: 系统启动流程 加电--->bios--->启动介质--->读启动介质的内容-->先读第一个扇区(512bytes,MBR)---->grub-->找到kernel加载到内存---》执行第一个程序的init while:;do free;sleep 1:clear;done 清除内存cache echo 3 >/proc/sys/vm/drop_caches uname -r 查看内核版本 u... 阅读全文

posted @ 2017-05-26 17:31 vmaze 阅读(388) 评论(0) 推荐(0) 编辑

系统监控磁盘分区 homework

摘要: 作业一: 1) 开启Linux系统前添加一块大小为15G的SCSI硬盘 2) 开启系统,右击桌面,打开终端 3) 为新加的硬盘分区,一个主分区大小为5G,剩余空间给扩展分区,在扩展分区上划分1个逻辑分区,大小为5G 运行 fdisk -l 命令查看数据盘 运行 fdisk /dev/xvdb,对数据盘进行分区。根据提示,依次输入 n,e,1,两次回车,wq,分区就开始了 4) 格式化主分区为ex... 阅读全文

posted @ 2017-05-26 16:47 vmaze 阅读(218) 评论(0) 推荐(0) 编辑

2017年5月25日

Linux 正文处理命令及tar vi 编辑器 homework

摘要: 作业一: 1) 将用户信息数据库文件和组信息数据库文件纵向合并为一个文件/1.txt(覆盖) cat /etc/passwd /etc/group >/1.txt 2) 将用户信息数据库文件和用户密码数据库文件纵向合并为一个文件/2.txt(追加) cat /etc/passwd /etc/shadow >>/2.txt 3) 将/1.txt、/2.txt两个文件打包为/1.tar tar cv... 阅读全文

posted @ 2017-05-25 17:33 vmaze 阅读(198) 评论(0) 推荐(0) 编辑

导航