hopeless-dream

导航

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页

2020年7月19日 #

Python内置数据结构

摘要: 分类 数值型 int、float、complex、bool 序列对象 list、string、tuple 键值对 set集合 dict字典 数值型 int:python3中的int都是长整型,没有大小限制,但受限于内存区域的大小 float:浮点型,由整数部分和小数部分组成。 complex:复数, 阅读全文

posted @ 2020-07-19 22:48 hopeless-dream 阅读(175) 评论(0) 推荐(0) 编辑

python基础语法练习

摘要: 给n个数字,打印其平均数 n=0 sum=0 while 1: num=input('>>>') if num == 'quit': break n+=1 sum+=int(num) avg=sum//n print('avg is {}'.format(avg)) 结果 >>>1 avg is 1 阅读全文

posted @ 2020-07-19 21:08 hopeless-dream 阅读(200) 评论(0) 推荐(0) 编辑

pip通用配置--安装jupyter和ipython

摘要: pip是Python的包管理工具,和yum相似 配置pip源 [python@localhost web]$ cd [python@localhost ~]$ mkdir .pip [python@localhost ~]$ cd .pip [python@localhost .pip]$ vim 阅读全文

posted @ 2020-07-19 00:06 hopeless-dream 阅读(230) 评论(0) 推荐(0) 编辑

2020年7月18日 #

pyenv虚拟环境安装

摘要: 安装过程 配置yum源 # curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # yum -y install yum-utils # yum install wget -y 阅读全文

posted @ 2020-07-18 23:48 hopeless-dream 阅读(302) 评论(0) 推荐(0) 编辑

2020年7月15日 #

linux 查看某进程或程序的网卡流量

摘要: 一、nethogs介绍 分享一个linux 下检测系统进程占用带宽情况的检查。来自github上的开源工具。 它不依赖内核中的模块。当我们的服务器网络异常时,可以通过运行nethogs程序来检测是那个程序占用了大量带宽。节省了查找时间。 二、安装方法 1.在epel 源中可以直接yum 安装 yum 阅读全文

posted @ 2020-07-15 12:11 hopeless-dream 阅读(665) 评论(0) 推荐(0) 编辑

从客户端(:)中检测到有潜在危险的 Request.Path 值

摘要: 网页运行错误,Debug后在Preview中获得如下错误信息 从客户端(:)中检测到有潜在危险的 Request.Path 值。 解决方案: 出这个问题基本上是在转址字符串中有非法字符。如果不用考虑安全性,取消对非法字符的拦截,可以在Web.config中进行如下配置: <configuration 阅读全文

posted @ 2020-07-15 12:00 hopeless-dream 阅读(3547) 评论(0) 推荐(0) 编辑

2020年7月14日 #

cpu使用率高的处理

摘要: 今天发现服务器的cpu使用率过高 阅读全文

posted @ 2020-07-14 03:15 hopeless-dream 阅读(114) 评论(0) 推荐(0) 编辑

2020年7月13日 #

由于信号量apache启动问题

摘要: 现象 客户反馈执行apachectl start后无报错信息,但是网站无法访问。 第一反应是防火墙屏蔽了httpd的端口或者SELinux问题。登录服务器查看: [root@db ~]# iptables -L -n Chain INPUT (policy ACCEPT) target prot o 阅读全文

posted @ 2020-07-13 22:21 hopeless-dream 阅读(261) 评论(0) 推荐(0) 编辑

argument list too long

摘要: 在执行rm、mv、cp等命令的时候,如果要操作的文件过多(例如:使用通配符或正则表达式处理),就会报错 “argument list too long” 现象 生产上的一台跑批服务器有很多定时任务,在某一天通过crontab命令添加定时任务后,出现报错: crontab : installing n 阅读全文

posted @ 2020-07-13 20:25 hopeless-dream 阅读(633) 评论(0) 推荐(0) 编辑

Read-only file system处理

摘要: 现象 或者日志中有 Cannot make directory:file:xxxxxxxx的信息 当单独创建文件的时候报错 mkdir:cannot make directory xxx:read-only file system 问题原因 一般是由于一下两类问题导致: 文件系统数据块出现不一致导致 阅读全文

posted @ 2020-07-13 19:31 hopeless-dream 阅读(2472) 评论(0) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页