Linux 内存监控 1、按照内存使用方式排序 top 之后使用 shift + m 那么top按照内存使用从大到小进行排列,使用 shift + P 表示按照CPU进行排序。 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 29498 b ...
分类:
系统相关 时间:
2019-12-09 15:25:51
阅读次数:
129
最近抖音上的,上下滑动视频非常火爆,那么这样的视频是如何制作的呢?在做之前我们需要将视频准备好,不管你是下载的视频,还是录制的视频都需要准备好,还有文字内容也准备一下最好,接下来我们就来分享一下图文制作方法。 https://www.macdown.com 先看一下最终的效果,如图 1. 首先打开P ...
分类:
其他好文 时间:
2019-12-08 17:56:01
阅读次数:
677
字符串的创建: 字符串的创建: var str = "hello world"; //常量,基本类型创建 var str2 = new String("hello world"); //构造函数创建 字符串的属性: str.length //字符串的长度 字符串常见API: 1、 String.pr ...
分类:
编程语言 时间:
2019-12-08 15:23:37
阅读次数:
84
一、实验环境 主机:3台,一台ProxySQL(192.168.214.37),两台主从复制,master(192.168.214.17),slave(192.168.214.27) 系统:CentOS7.6 数据库:mariadb-server-5.5.60(光盘yum源) ProxySQL:pr ...
分类:
数据库 时间:
2019-12-08 01:20:55
阅读次数:
85
结果查询 上节课使用query从数据库中查询到了结果,但是query返回的对象是直接可用的吗? 首先导入模块 from connect import session from user_modules import User query返回对象 rs = session.query(User) pr ...
分类:
数据库 时间:
2019-12-06 10:01:46
阅读次数:
83
使用multiprocessing.Process来开启进程 import os import time from multiprocessing import Process def eat(): print('start eating',os.getpid()) time.sleep(1) pr ...
分类:
系统相关 时间:
2019-12-04 14:56:50
阅读次数:
130
Basis Rule for Tuning (ST03N) ? Average CPU time should be < 50 % of the total response time, otherwise the server (ST06/OS07, OS07) or the running pr ...
分类:
数据库 时间:
2019-12-04 13:07:13
阅读次数:
101
背景 最近接的一个项目是基于公司产品Starring做的微服务支付平台,纯后台项目,实现三方支付公司和银行接口来完成用户账户扣款,整合成通用支付接口发布给前端调用。 但是扯蛋了,这边前端什么都不想做,只想我们提供一个链接,用户可以选择支付方式进行支付,这样的话相当于咱们又得起一个WEB版的收银台Pr ...
分类:
编程语言 时间:
2019-12-03 18:00:48
阅读次数:
255
web服务本质 import socket def main(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('localhost',8081)) sock.listen(5) while True: pr ...
分类:
Web程序 时间:
2019-12-02 21:56:49
阅读次数:
151
COMPSCI 143A. Principles of Operating Systems. Principles and concepts of process and resource management, especially as seen in operating systems. Pr ...
分类:
其他好文 时间:
2019-12-01 13:19:53
阅读次数:
78