Python入门速查表
文档下载:Python入门速查表
Python入门速查表
文档下载:Python入门速查表
为什么学习MicroPython?
单片机嵌入式编程经历了汇编、C 语言的发展历程,可以说是一次编程革命,其背后的原因是单片机的速度越来越快,集成度越来越高。而这一趋势并没停止,摩尔定律仍然适用。在未来,单片机上很可能直接跑机器语言。
在2014 年,MicroPython 在英国诞生了,对于电子爱好者来说无疑拉开了新时代的序幕,用Python 这个每年用户量不断增长的编程语言来开发嵌入式,加上无数开源的函数模块,让嵌入式开发变得从未如此的简单。
MicroPython 致力于兼容Python。因此,我们在学习完MicroPython 后除了可以开发有趣的电子产品外,还可以继续深入使用Python 语言去开发后台、人工智能等领域。
文档下载: MicroPython从0到1
基本知识
1、Redis的数据类型:
字符串、列表(lists)、集合(sets)、有序集合(sorts sets)、哈希表(hashs)
2、Redis和memcache相比的独特之处:
(1)redis可以用来做存储(storge)、而memcache是来做缓存(cache)。这个特点主要是因为其有“持久化”功能
(2)存储的数据有“结构”,对于memcache来说,存储的数据,只有一种类型——“字符串”,而redis则可以存储字符串、链表、集合、有序集合、哈序结构
3、持久化的两种方式:
Redis将数据存储于内存中,或被配置为使用虚拟内存。
实现数据持久化的两种方式:(1)使用截图的方式,将内存中的数据不断写入磁盘(性能高,但可能会引起一定程度的数据丢失)
(2)使用类似mysql的方式,记录每次更新的日志
4、Redis的主从同步:对提高读取性能非常有益
5、Redis服务端的默认端口是6379
Download Redis源码包
下载地址:http://redis.io/download,下载最新稳定版本
1 | $ cd ~ |
解压并进入其目录
1 | $ tar xzvf redis-5.0.3.tar.gz |
参考:https://www.cnblogs.com/liyuanhong/articles/11162899.html
yum安装C编译环境:
1 | $ yum -y install gcc-c++ ncurses-devel cmake make perl gcc autoconf automake zlib libxml libgcrypt libtool bison m4 pcre pcre-devel zlib-devel openssl openssl-devel |
另外,如果嫌麻烦的话,那就直接 $ yum groupinstall "Development tools"
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
验证:
清除yum的缓存、头文件、已下载的软件包等等
1 | # yum clean all |
重建yum缓存,看是否有报错。
1 | # yum makecache |
查看已启用的镜像源
1 | # yum repolist all |
NexT主题官网: http://theme-next.iissnan.com/
最新版本NexT的GitHub地址: https://github.com/theme-next/hexo-theme-next
下载新的主题包
1 | cd C:\blog |
修改Hexo的配置文件:_config.yml,更换theme为 next
1 | theme: next |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
NFS 这个咚咚真的是很简单,上面我们提到的 NFS 软件中,配置文件只有一个,执行档也不多, 记录文件也三三两两而已吶!赶紧先来看一看吧! ^_^
在网站 https://www.zabbix.com/cn/download_sources 下载安装包zabbix-4.0.19.tar.gz 到/usr/src/
服务器时间若不准确会导致Zabbix编译安装会失败
1 | # ntpdate ntp1.aliyun.com |
1 | # wget http://nginx.org/download/nginx-1.16.0.tar.gz -P /usr/src |
1 | # yum -y install gcc gcc-c++ autoconf automake make |
1 | # useradd -M -s /sbin/nologin nginx |