/tmp/resolv.conf rm -f /var/lock/opkg.lock opkg update opkg install python opkg install python-pip…">
当前位置:首页 > 电子

快niao

admin7年前 (2020-05-18)电子7157

路由器

echo "nameserver 114.114.114.114">/tmp/resolv.conf
rm -f /var/lock/opkg.lock
opkg update
opkg install python
opkg install python-pip
pip install requests -i http://pypi.douban.com/simple/


src/gz chaos_calmer_base http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/base
src/gz chaos_calmer_packages http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/packages 
src/gz chaos_calmer_luci http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/luci              
src/gz chaos_calmer_routing http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/routing    
src/gz chaos_calmer_telephony http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/telephony
src/gz chaos_calmer_management http://mirrors.tuna.tsinghua.edu.cn/openwrt/chaos_calmer/15.05.1/ramips/mt7620/packages/management

*/5 * * * * PYTHONIOENCODING=utf-8 python2.7 main-V2.1.py
ntpd -n -d -p 0.asia.pool.ntp.org


centos

#yum -y install epel-release 安装源
#yum -y install python-pip  安装pip
#pip  install requests (python2的话)

下载

wget http://shell.feelsight.cn/main-V2.1.py

#配置cron,命令为:

crontab -e  (回车)
#*/5 * * * * PYTHONIOENCODING=utf-8 python2.7 /home/user/main-V2.1.py


扫描二维码推送至手机访问。

版权声明:本文由视觉博客发布,如需转载请注明出处。

本文链接:https://feelsight.cn/post/115.html

“快niao” 的相关文章

labVIEW调用C# dll 步骤

labVIEW调用C# dll 步骤

labVIEW选用的版本是2010,C#选用的是VS20101.打开VS 2010,选择 ˂span style="f…

SmartLink原理

SmartLink原理

智能家居/家电现阶段还处于普及阶段,由于家庭wifi网络的普及,目前普遍采用wifi与路由器完成连接,与手机/云端进行数据交互. 智能硬件,如智能插座,智能空调,智能空气净化器由于不具备人机交互界面,不能像电脑一样的搜索/选择指定路由器,输入连接密码的界面,所以必须先解决正确连接路由问题…

锂电池充电的原理

锂电池充电的原理

    锂离子电池的充电过程可以分为四个阶段:涓流充电(低压预充)、恒流充电、恒压充电以及充电终止。     锂电池充电器的基本要求是特定的充电电流和充电电压,从而保证电池安全充电。增加其它充电辅助功能…

FAT32文件格式详解

FAT32文件格式详解

说明: MBR :Master Boot Record ( 主引导记录)  DBR :DOS Boot Record ( 引导扇区)  FA…

stc-isp烧录 下载 协议 过程分析

一、数据封装格式 包头 标示 数据包长度 命令字…

如何看懂电路图(二)-电源电路

如何看懂电路图(二)-电源电路

前 面介绍了电路图中的元器件的作用和符号。一张电路图通常有几十乃至几百个,它们的连线纵横交叉,形式变化多端,初学者往往不知道该从什么地方开始, 怎样才能读懂它。其实电子电路本身有很强的规律性,不管多复杂的电路,经过分析可以发现,它是由少数几个单元电路组成的。好象孩子们玩的积木,虽然只有十 来种或二…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。