??xml version="1.0" encoding="utf-8" standalone="yes"?>ʫ:C++博客 - ڲͼ//www.owiwv.icu/default.html?id=-3专注于C++技?/description>zh-cnMon, 14 Oct 2019 03:34:46 GMTMon, 14 Oct 2019 03:34:46 GMT60新装计算机安装环?/title><link>//www.owiwv.icu/alantop/archive/2019/09/17/216833.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 17 Sep 2019 04:06:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/09/17/216833.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216833.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/09/17/216833.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216833.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216833.html</trackback:ping><description><![CDATA[win10 64企业?br /> win10菜单 <br />alantoptool <br />office 2016 <br />7zip <br />h览? <br />360极速浏览器 <br />360安全卫士 <br />360杀? <br />360文护士 <br />vs2019 <br />qt5.12<br />python?nbsp;<br />pycharm<br />github<br />vs2017<br />nmap<br />notepad++ <br />winscp<img src ="//www.owiwv.icu/alantop/aggbug/216833.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-09-17 12:06 <a href="//www.owiwv.icu/alantop/archive/2019/09/17/216833.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>windows下断掉samba׃n - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/13/216819.htmlAlanTopAlanTopFri, 13 Sep 2019 15:30:00 GMT//www.owiwv.icu/alantop/archive/2019/09/13/216819.html//www.owiwv.icu/alantop/comments/216819.html//www.owiwv.icu/alantop/archive/2019/09/13/216819.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216819.html//www.owiwv.icu/alantop/services/trackbacks/216819.htmlwindow下当成功d到samba服务器上的共享的目录的时候,若要是再pLd此服务器上另外一个共享目录时Q会弹出dH口?/strong>
但是不管输入的用户名和密码对错都会提C?/strong>
“不允怸个用户用一个以上用户名与一个服务器或共享资源的多重q接。中断与此服务器或共享资源的所有连接,然后再试一?#8221;
解决Q?/div>
 
可用以下命令断掉已有连接(开?-> cmdQ?/div>
net use * /del /y   #回R后显CZ下内?br />
net stop workstation
net start workstation
control keymgr.dll
net use * /del /y


AlanTop 2019-09-13 23:30 发表评论
]]>centos分区 - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/10/216809.htmlAlanTopAlanTopTue, 10 Sep 2019 11:50:00 GMT//www.owiwv.icu/alantop/archive/2019/09/10/216809.html//www.owiwv.icu/alantop/comments/216809.html//www.owiwv.icu/alantop/archive/2019/09/10/216809.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216809.html//www.owiwv.icu/alantop/services/trackbacks/216809.html2. 
bios boot 2M d?br />/boot 1G d?br />/ 10G LVM方式
/home LVM方式
/var 10G LVM方式
/usr 10G LVM方式
swap 2G LVM方式

AlanTop 2019-09-10 19:50 发表评论
]]>
华ؓ交换机配|snmp - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/10/216807.htmlAlanTopAlanTopTue, 10 Sep 2019 03:08:00 GMT//www.owiwv.icu/alantop/archive/2019/09/10/216807.html//www.owiwv.icu/alantop/comments/216807.html//www.owiwv.icu/alantop/archive/2019/09/10/216807.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216807.html//www.owiwv.icu/alantop/services/trackbacks/216807.htmldisplay snmp-agent sys-info version


snmp-agent
配置版本 
snmp-agent sys-info version v2c
snmp-agent sys-info version v3


  1. snmp-agent

    snmp-agent community read  public                    /讄d体名:public/

    snmp-agent community write  private                  /讄写团体名:private/

  2. 配置SNMP版本 Qall是所有版本)

    snmp-agent sys-info version all      



AlanTop 2019-09-10 11:08 发表评论
]]>
centos 7.6 配置zabbix 支持华ؓ交换机snmp功能 - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/09/216805.htmlAlanTopAlanTopMon, 09 Sep 2019 05:01:00 GMT//www.owiwv.icu/alantop/archive/2019/09/09/216805.html//www.owiwv.icu/alantop/comments/216805.html//www.owiwv.icu/alantop/archive/2019/09/09/216805.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216805.html//www.owiwv.icu/alantop/services/trackbacks/216805.htmlsnmpwalk -v 2c -c test@123 10.192.192.1

AlanTop 2019-09-09 13:01 发表评论
]]>
q行pip 出现Fatal error in launcherQUnable to create process using 错误的解x?/title><link>//www.owiwv.icu/alantop/archive/2019/09/08/216802.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 08 Sep 2019 10:02:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/09/08/216802.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216802.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/09/08/216802.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216802.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216802.html</trackback:ping><description><![CDATA[造成此原因是安装了多个版本,冲突?br />python3?br /><br /><strong style="margin: 0px; padding: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: #fefef2;"><span style="margin: 0px; padding: 0px; line-height: 1.5; font-size: 16px;">python -m pip install --upgrade pip</span></strong><img src ="//www.owiwv.icu/alantop/aggbug/216802.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-09-08 18:02 <a href="//www.owiwv.icu/alantop/archive/2019/09/08/216802.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>pycharm 2019.2.1 注册Ҏ - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/08/216799.htmlAlanTopAlanTopSun, 08 Sep 2019 01:44:00 GMT//www.owiwv.icu/alantop/archive/2019/09/08/216799.html//www.owiwv.icu/alantop/comments/216799.html//www.owiwv.icu/alantop/archive/2019/09/08/216799.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216799.html//www.owiwv.icu/alantop/services/trackbacks/216799.html菜单中编?br />-javaagent:C:\Program Files\JetBrains\PyCharm 2019.2.1\bin\jetbrains-agent.jar

输入注册?br />
3AGXEJXFK9-eyJsaWNlbnNlSWQiOiIzQUdYRUpYRks5IiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly96aGlsZS5pbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJQUyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJHTyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJETSIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJDTCIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJSUzAiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUkMiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUkQiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUEMiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUk0iLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiV1MiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiREIiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiREMiLCJmYWxsYmFja0RhdGUiOiIyMDg5LTA3LTA3IiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUlNVIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9XSwiaGFzaCI6IjEyNzk2ODc3LzAiLCJncmFjZVBlcmlvZERheXMiOjcsImF1dG9Qcm9sb25nYXRlZCI6ZmFsc2UsImlzQXV0b1Byb2xvbmdhdGVkIjpmYWxzZX0=-WGTHs6XpDhr+uumvbwQPOdlxWnQwgnGaL4eRnlpGKApEEkJyYvNEuPWBSrQkPmVpim/8Sab6HV04Dw3IzkJT0yTc29sPEXBf69+7y6Jv718FaJu4MWfsAk/ZGtNIUOczUQ0iGKKnSSsfQ/3UoMv0q/yJcfvj+me5Zd/gfaisCCMUaGjB/lWIPpEPzblDtVJbRexB1MALrLCEoDv3ujcPAZ7xWb54DiZwjYhQvQ+CvpNNF2jeTku7lbm5v+BoDsdeRq7YBt9ANLUKPr2DahcaZ4gctpHZXhG96IyKx232jYq9jQrFDbQMtVr3E+GsCekMEWSD//dLT+HuZdc1sAIYrw==-MIIElTCCAn2gAwIBAgIBCTANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBMB4XDTE4MTEwMTEyMjk0NloXDTIwMTEwMjEyMjk0NlowaDELMAkGA1UEBhMCQ1oxDjAMBgNVBAgMBU51c2xlMQ8wDQYDVQQHDAZQcmFndWUxGTAXBgNVBAoMEEpldEJyYWlucyBzLnIuby4xHTAbBgNVBAMMFHByb2QzeS1mcm9tLTIwMTgxMTAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5ndaik1GD0nyTdqkZgURQZGW+RGxCdBITPXIwpjhhaD0SXGa4XSZBEBoiPdY6XV6pOfUJeyfi9dXsY4MmT0D+sKoST3rSw96xaf9FXPvOjn4prMTdj3Ji3CyQrGWeQU2nzYqFrp1QYNLAbaViHRKuJrYHI6GCvqCbJe0LQ8qqUiVMA9wG/PQwScpNmTF9Kp2Iej+Z5OUxF33zzm+vg/nYV31HLF7fJUAplI/1nM+ZG8K+AXWgYKChtknl3sW9PCQa3a3imPL9GVToUNxc0wcuTil8mqveWcSQCHYxsIaUajWLpFzoO2AhK4mfYBSStAqEjoXRTuj17mo8Q6M2SHOcwIDAQABo4GZMIGWMAkGA1UdEwQCMAAwHQYDVR0OBBYEFGEpG9oZGcfLMGNBkY7SgHiMGgTcMEgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQBonMu8oa3vmNAa4RQP8gPGlX3SQaA3WCRUAj6Zrlk8AesKV1YSkh5D2l+yUk6njysgzfr1bIR5xF8eup5xXc4/G7NtVYRSMvrd6rfQcHOyK5UFJLm+8utmyMIDrZOzLQuTsT8NxFpbCVCfV5wNRu4rChrCuArYVGaKbmp9ymkw1PU6+HoO5i2wU3ikTmRv8IRjrlSStyNzXpnPTwt7bja19ousk56r40SmlmC04GdDHErr0ei2UbjUua5kw71Qn9g02tL9fERI2sSRjQrvPbn9INwRWl5+k05mlKekbtbu2ev2woJFZK4WEXAd/GaAdeZZdumv8T2idDFL7cAirJwcrbfpawPeXr52oKTPnXfi0l5+g9Gnt/wfiXCrPElX6ycTR6iL3GC2VR4jTz6YatT4Ntz59/THOT7NJQhr6AyLkhhJCdkzE2cob/KouVp4ivV7Q3Fc6HX7eepHAAF/DpxwgOrg9smX6coXLgfp0b1RU2u/tUNID04rpNxTMueTtrT8WSskqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxDTRvv+krbwMr26SB/40BjpMUrDRCeKuiBahC0DCoU/4+ze1l94wVUhdkCfL0GpJrMSCDEK+XEurU18Hb7WT+ThXbkdl6VpFdHsRvqAnhR2g4b+Qzgidmuky5NUZVfEaZqV/g==


AlanTop 2019-09-08 09:44 发表评论
]]>zabbix 4.0 lts 修改语言Z文后Q图像显C字体ؕ码的解决Ҏ - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/08/216796.htmlAlanTopAlanTopSat, 07 Sep 2019 21:26:00 GMT//www.owiwv.icu/alantop/archive/2019/09/08/216796.html//www.owiwv.icu/alantop/comments/216796.html//www.owiwv.icu/alantop/archive/2019/09/08/216796.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216796.html//www.owiwv.icu/alantop/services/trackbacks/216796.html
chmod 777 simkai.ttf
vim /usr/share/zabbix/include/defines.inc.php
修改
define('ZBX_GRAPH_FONT_NAME',           'simkai'); 


AlanTop 2019-09-08 05:26 发表评论
]]>
centos 7 单网卡多ip - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/08/216795.htmlAlanTopAlanTopSat, 07 Sep 2019 20:38:00 GMT//www.owiwv.icu/alantop/archive/2019/09/08/216795.html//www.owiwv.icu/alantop/comments/216795.html//www.owiwv.icu/alantop/archive/2019/09/08/216795.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216795.html//www.owiwv.icu/alantop/services/trackbacks/216795.html
增加2?br />
IPADDR2=10.2.3.105
NETMASK2=255.255.255.0


AlanTop 2019-09-08 04:38 发表评论
]]>
windows 获取pȝ和cpu信息 - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/07/216794.htmlAlanTopAlanTopSat, 07 Sep 2019 11:51:00 GMT//www.owiwv.icu/alantop/archive/2019/09/07/216794.html//www.owiwv.icu/alantop/comments/216794.html//www.owiwv.icu/alantop/archive/2019/09/07/216794.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216794.html//www.owiwv.icu/alantop/services/trackbacks/216794.html
wmic
cpu get name 
获取cpu物理?br />
cpu get numberofcores
获取cpu核心?br />
cpu get numberoflogicalprocessors
获取cpuU程?br />


AlanTop 2019-09-07 19:51 发表评论
]]>
试cpu性能和显卡性能的工?/title><link>//www.owiwv.icu/alantop/archive/2019/09/07/216793.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 07 Sep 2019 11:42:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/09/07/216793.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216793.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/09/07/216793.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216793.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216793.html</trackback:ping><description><![CDATA[软g名称 CINEBENCH<br />官方下蝲Qhttps://www.maxon.net/en/support/downloads/<br /><img src ="//www.owiwv.icu/alantop/aggbug/216793.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-09-07 19:42 <a href="//www.owiwv.icu/alantop/archive/2019/09/07/216793.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>centos 6 安装zabbix 4.0 lts agent - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/06/216789.htmlAlanTopAlanTopFri, 06 Sep 2019 15:58:00 GMT//www.owiwv.icu/alantop/archive/2019/09/06/216789.html//www.owiwv.icu/alantop/comments/216789.html//www.owiwv.icu/alantop/archive/2019/09/06/216789.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216789.html//www.owiwv.icu/alantop/services/trackbacks/216789.htmlhttps://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/
2
. wget .rpm
3.yum localinstall zabbix-agent-x86_64.rpm
4.

vim /etc/zabbix/zabbix_agentd.conf

EnableRemoteCommands=1 #允许zabbix服务器远Ezabbix_agentd执行命o LogRemoteCommands=1 #开启远E执行命令日? Server=10.8.9.155 #填写zabbix服务器IP地址 ServerActive=10.8.9.155 #填写zabbix服务器IP地址 Hostname=cloucentos6.0 #填写zabbix_agentd客户端计机?br />
service zabbix-agent start 
或?systemctl start zabbix-agent


AlanTop 2019-09-06 23:58 发表评论
]]>
zabbix 4.0 lts 安装后的使用配置 - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/06/216788.htmlAlanTopAlanTopFri, 06 Sep 2019 14:58:00 GMT//www.owiwv.icu/alantop/archive/2019/09/06/216788.html//www.owiwv.icu/alantop/comments/216788.html//www.owiwv.icu/alantop/archive/2019/09/06/216788.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216788.html//www.owiwv.icu/alantop/services/trackbacks/216788.html无需加密
讄L名和服务器ipQ主?被动都设|ؓ服务器ipQ?br />2.服务器配|里面增加主?br />d L?ip 和模?加操作系l模板即?br />
L里面有每个主机每个项目的囑Ş?br />
人的头像里面讄中文Q当界面颜色讄不回来的时候,先切换成英文版,再设|中文就ok
未配|模板的话,agent客户端上来的图标不是l色的?img src ="//www.owiwv.icu/alantop/aggbug/216788.html" width = "1" height = "1" />

AlanTop 2019-09-06 22:58 发表评论
]]>
zabbix 4.0 lts 在centos 7.6上安装php - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/06/216786.htmlAlanTopAlanTopFri, 06 Sep 2019 09:34:00 GMT//www.owiwv.icu/alantop/archive/2019/09/06/216786.html//www.owiwv.icu/alantop/comments/216786.html//www.owiwv.icu/alantop/archive/2019/09/06/216786.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216786.html//www.owiwv.icu/alantop/services/trackbacks/216786.htmlyum install -y httpd mariadb-server mariadb php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash

zabbix ?安装目录 
/usr/share/zabbix


AlanTop 2019-09-06 17:34 发表评论
]]>
zabbix 4.0 lts logo 目录 - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/06/216785.htmlAlanTopAlanTopFri, 06 Sep 2019 09:31:00 GMT//www.owiwv.icu/alantop/archive/2019/09/06/216785.html//www.owiwv.icu/alantop/comments/216785.html//www.owiwv.icu/alantop/archive/2019/09/06/216785.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216785.html//www.owiwv.icu/alantop/services/trackbacks/216785.html/usr/share/zabbix/assets/img


AlanTop 2019-09-06 17:31 发表评论
]]>
Winpȝ - 该死QWebGL 遇到了问?(chrome览? - ڲͼ//www.owiwv.icu/alantop/archive/2019/09/05/216773.htmlAlanTopAlanTopThu, 05 Sep 2019 07:18:00 GMT//www.owiwv.icu/alantop/archive/2019/09/05/216773.html//www.owiwv.icu/alantop/comments/216773.html//www.owiwv.icu/alantop/archive/2019/09/05/216773.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216773.html//www.owiwv.icu/alantop/services/trackbacks/216773.htmlchrome://flags/

在这个页面里扑ֈ Override software rendering listQ将其启用?br />
造成
原因Q?/span>在同一个时间突然发出大量的jshq渲染界面?/span>

AlanTop 2019-09-05 15:18 发表评论
]]>
M变现课(如何读书的爱好转变为年?0万的自由职业Q?/title><link>//www.owiwv.icu/alantop/archive/2019/08/31/216756.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 31 Aug 2019 09:27:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/08/31/216756.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216756.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/08/31/216756.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216756.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216756.html</trackback:ping><description><![CDATA[     摘要: M变现课(如何读书的爱好转变为年?0万的自由职业Q?nbsp; <a href='//www.owiwv.icu/alantop/archive/2019/08/31/216756.html'>阅读全文</a><img src ="//www.owiwv.icu/alantop/aggbug/216756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-08-31 17:27 <a href="//www.owiwv.icu/alantop/archive/2019/08/31/216756.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mongodb模糊查询 - ڲͼ//www.owiwv.icu/alantop/archive/2019/08/23/216734.htmlAlanTopAlanTopFri, 23 Aug 2019 15:10:00 GMT//www.owiwv.icu/alantop/archive/2019/08/23/216734.html//www.owiwv.icu/alantop/comments/216734.html//www.owiwv.icu/alantop/archive/2019/08/23/216734.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216734.html//www.owiwv.icu/alantop/services/trackbacks/216734.html
db.sites.find(
{ "name": {$regex:/电信/}
    }
)


AlanTop 2019-08-23 23:10 发表评论
]]>
tb 重画开单记?/title><link>//www.owiwv.icu/alantop/archive/2019/08/20/216715.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 20 Aug 2019 04:32:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/08/20/216715.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216715.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/08/20/216715.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216715.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216715.html</trackback:ping><description><![CDATA[     摘要:   <a href='//www.owiwv.icu/alantop/archive/2019/08/20/216715.html'>阅读全文</a><img src ="//www.owiwv.icu/alantop/aggbug/216715.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-08-20 12:32 <a href="//www.owiwv.icu/alantop/archive/2019/08/20/216715.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>centos 7.6 监控|卡量 - ڲͼ//www.owiwv.icu/alantop/archive/2019/08/13/216675.htmlAlanTopAlanTopTue, 13 Aug 2019 13:49:00 GMT//www.owiwv.icu/alantop/archive/2019/08/13/216675.html//www.owiwv.icu/alantop/comments/216675.html//www.owiwv.icu/alantop/archive/2019/08/13/216675.html#Feedback0//www.owiwv.icu/alantop/comments/commentRss/216675.html//www.owiwv.icu/alantop/services/trackbacks/216675.html1.安装
yum install iftop -y
2.查看|卡量
iftop -i eth1
3.监控特定ip的流?/div>
监控某个特定IP的带宽访问情况:
iftop -i eth1 -B -F 182.92.***.20
昄182.92.***.20q个IP与服务器的网卡eth1交互的数据量Q单位是Byte?/div>
4.退?/div>
q
5.昄界面说明Q?/div>
"<="?=>"Q表C的是流量的方向
"TX"Q从|卡发出的流?/div>
"RX"Q网卡接收流?/div>
"TOTAL"Q网卡发送接收L?/div>
"cum"Qiftop开始运行到当前旉点的L?/div>
"peak"Q网卡流量峰?/div>
"rates"Q分别表C最q?s?0s?0s 的^均流?/div>

AlanTop 2019-08-13 21:49 发表评论
]]>tb开拓者画U?/title><link>//www.owiwv.icu/alantop/archive/2019/07/30/216613.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 30 Jul 2019 11:34:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/07/30/216613.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216613.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/07/30/216613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216613.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216613.html</trackback:ping><description><![CDATA[<div class="oese">PlotString ("demo","▽▽▲▼",high*1.2,Red);</div><img src ="//www.owiwv.icu/alantop/aggbug/216613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-07-30 19:34 <a href="//www.owiwv.icu/alantop/archive/2019/07/30/216613.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tb 开拓?跨周期应?/title><link>//www.owiwv.icu/alantop/archive/2019/07/25/216604.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 25 Jul 2019 09:23:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/07/25/216604.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216604.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/07/25/216604.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216604.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216604.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->Params<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">此处d参数</span><span style="color: #008000; "><br /></span><br />Vars<br />Numeric ma1;<br />Numeric ma2;<br /><span style="color: #0000FF; ">bool</span>    boollong;<br /><span style="color: #0000FF; ">bool</span>    boolshort;<br /><span style="color: #0000FF; ">bool</span>    condition1;<br />Bool    condition2;<br />Begin<br />data0.ma1 =data0.Average(data0.close,5);<br />data0.ma2 =data0.Average(data0.close,20);<br /><br /><br />data0.PlotNumeric("data0.ma1",data0.ma1);<br />data0.PlotNumeric("data0.ma2",data0.ma2);<br />data1.PlotNumeric("data1.ma1",data0.ma1);<br />data1.PlotNumeric("data1.ma2",data0.ma2);<br /><br />data0.boollong =data0.CrossOver(data0.ma1,data0.ma2);<br />data0.boolshort =data0.Crossunder(data0.ma1,data0.ma2);<span style="color: #008000; ">//</span><span style="color: #008000; ">大周期开仓条?/span><span style="color: #008000; "><br /></span><br />data1.condition1;<span style="color: #008000; ">//</span><span style="color: #008000; "> =</span><span style="color: #008000; "><br /></span>data1.condition2;<span style="color: #008000; ">//</span><span style="color: #008000; "> =周期开仓条?/span><span style="color: #008000; "><br /></span>If(data0.boollong anddata1.condition1 anddata1.MarketPosition<>1)<br />{<br />data1.buy(1,data1.open);<br />}<br /><span style="color: #0000FF; ">if</span>(data[0].boolshort anddata1.condition2 anddata1.MarketPosition<>-1)<br />{<br />data1.sell(1,data1.open);<br />}<br />End</div><img src ="//www.owiwv.icu/alantop/aggbug/216604.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-07-25 17:23 <a href="//www.owiwv.icu/alantop/archive/2019/07/25/216604.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tb跨周期函?/title><link>//www.owiwv.icu/alantop/archive/2019/07/19/216571.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 19 Jul 2019 14:26:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/07/19/216571.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216571.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/07/19/216571.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216571.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216571.html</trackback:ping><description><![CDATA[<div class="oese"><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; ">//</span><span style="color: #008000; ">------------------------------------------------------------------------<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> U? k_Bar<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> 名称: 跨周期函?-基础BAR数据<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> cd: 用户函数<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> cd: 用户函数<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> 输出: 数值型<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">------------------------------------------------------------------------</span><span style="color: #008000; "><br /></span><span style="color: #000000; "><br /><br />Params <br />    Numeric TimeFrame(</span><span style="color: #000000; ">1440</span><span style="color: #000000; ">);    <br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期Q按月线=4周(40320)Q周U?7?10080)Q日U?24时Q?440Q?br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 其他日内的周期等于相应的分钟敎ͼ如:1时=60Q?nbsp;30分钟=30。。?br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 1分钟图表Q支持不规则分钟敎ͼ?分钟?分钟?4分钟{?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        <br />    Numeric BarsBack(</span><span style="color: #000000; ">0</span><span style="color: #000000; ">); <br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期BAR偏移Q?br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 1--表示当前周期下的当前BAR对应目标周期的前一根BAR<br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 0--表示当前周期下的当前BAR对应目标周期的当前BAR截止到目前ؓ止的BAR数据?/span><span style="color: #008000; "><br /></span><span style="color: #000000; "><br />Vars<br />    Numeric TradeDate;                </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前KU实际交易日期(主要解决夜盘问题Q?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Numeric TradeHour;                </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前KU实际交易时_时Q?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Numeric TradeMinute;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前KU实际交易时_分钟Q?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Index;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前BAR在TimeFrame旉周期下的索引?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Numeric SessionStartHour;        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前KU实际的交易日的W一节交易的起始旉Q小Ӟ</span><span style="color: #008000; "><br /></span><span style="color: #000000; "><br /><br />    NumericSeries barCnt;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> d目标周期上一根BAR的数据在当前周期下需要回溯的BAR?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_CurBar;        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 当前BAR在目标周期下对应的CurrentBar</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Numeric barCntSum;                 </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 临时变量Q返回目标周期数据需要回溯的BAR?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_Open;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的开盘h</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_High;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的最高h</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_Low;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的最低h</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_Close;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的收盘h</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_Vol;            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的成交量</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    NumericSeries Ht_OpenInt;        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标旉周期的持仓量</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    </span><span style="color: #0000FF; ">bool</span><span style="color: #000000; "> condition(</span><span style="color: #0000FF; ">false</span><span style="color: #000000; ">);            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 判断在目标时间是否属于不同根BAR</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Numeric i;<br />    <br />Begin<br /><br />     TradeDate </span><span style="color: #000000; ">=</span><span style="color: #000000; "> TrueDate(</span><span style="color: #000000; ">0</span><span style="color: #000000; ">);         </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 取实际交易日?br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> ҎTimeFrame分别处理</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    If(TimeFrame </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">40320</span><span style="color: #000000; ">)            </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 月线</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    {<br />        Index </span><span style="color: #000000; ">=</span><span style="color: #000000; "> (YearFromDateTime(TradeDate) </span><span style="color: #000000; ">-</span><span style="color: #000000; "> </span><span style="color: #000000; ">1970</span><span style="color: #000000; ">) </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">12</span><span style="color: #000000; "> </span><span style="color: #000000; ">+</span><span style="color: #000000; "> MonthFromDateTime(TradeDate);<br />    }<br />    Else If(TimeFrame </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">10080</span><span style="color: #000000; ">)        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 周线</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    {<br />        Index </span><span style="color: #000000; ">=</span><span style="color: #000000; "> IntPart(DateDiff(</span><span style="color: #000000; ">19700105</span><span style="color: #000000; ">,TradeDate)</span><span style="color: #000000; ">/</span><span style="color: #000000; ">7</span><span style="color: #000000; ">);<br />    }<br />    Else If(TimeFrame </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">1440</span><span style="color: #000000; ">)        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 日线</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    {<br />        Index </span><span style="color: #000000; ">=</span><span style="color: #000000; "> DateDiff(</span><span style="color: #000000; ">19700105</span><span style="color: #000000; ">,TradeDate);<br />    }<br />    Else<br />    {<br />        TradeHour </span><span style="color: #000000; ">=</span><span style="color: #000000; "> HourFromDateTime(Time);<br />        TradeMinute </span><span style="color: #000000; ">=</span><span style="color: #000000; "> MinuteFromDateTime(Time);<br /><br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 取当前品U,W一节交易的开始小时数</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        SessionStartHour </span><span style="color: #000000; ">=</span><span style="color: #000000; "> IntPart(GetSessionStartTime(</span><span style="color: #000000; ">0</span><span style="color: #000000; ">)</span><span style="color: #000000; ">*</span><span style="color: #000000; ">100</span><span style="color: #000000; ">);<br /><br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 解决4时囄旉划分比较Ҏ问题</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        If(TimeFrame </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">240</span><span style="color: #000000; ">) SessionStartHour </span><span style="color: #000000; ">=</span><span style="color: #000000; "> IIF(SessionStartHour </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">21</span><span style="color: #000000; ">,</span><span style="color: #000000; ">20</span><span style="color: #000000; ">,</span><span style="color: #000000; ">8</span><span style="color: #000000; ">);<br />        <br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 按当前BAR对应旉Q除以TimeFrame的分钟数Q得到的商ؓ索引|索引值相同的在大周期上属于同一根BAR</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        Index </span><span style="color: #000000; ">=</span><span style="color: #000000; "> DateDiff(</span><span style="color: #000000; ">19700105</span><span style="color: #000000; ">,TradeDate) </span><span style="color: #000000; ">*</span><span style="color: #000000; "> (IntPart(</span><span style="color: #000000; ">1439</span><span style="color: #000000; ">/</span><span style="color: #000000; ">TimeFrame)</span><span style="color: #000000; ">+</span><span style="color: #000000; ">1</span><span style="color: #000000; ">) </span><span style="color: #000000; ">+</span><span style="color: #000000; "> IntPart((IIF(TradeHour </span><span style="color: #000000; ">>=</span><span style="color: #000000; "> SessionStartHour, TradeHour </span><span style="color: #000000; ">-</span><span style="color: #000000; "> SessionStartHour,<br />        TradeHour </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">24</span><span style="color: #000000; "> </span><span style="color: #000000; ">-</span><span style="color: #000000; "> SessionStartHour) </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">60</span><span style="color: #000000; "> </span><span style="color: #000000; ">+</span><span style="color: #000000; "> TradeMinute)</span><span style="color: #000000; ">/</span><span style="color: #000000; ">TimeFrame);<br />    }<br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 索引g同的Q则说明属于不同BAR</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    condition </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Index </span><span style="color: #000000; "><></span><span style="color: #000000; "> Index[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">];<br /><br />    If(CurrentBar</span><span style="color: #000000; ">==</span><span style="color: #000000; ">0</span><span style="color: #000000; ">)                </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 如果是第一根Bar, Ht_CurBar=0</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    {<br />        barCnt </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">;<br />        Ht_CurBar </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">;<br />        Ht_Open </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Open;<br />        Ht_High </span><span style="color: #000000; ">=</span><span style="color: #000000; "> High;<br />        Ht_Low </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Low;<br />        Ht_Close </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Close;<br />        Ht_Vol </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Vol;<br />        Ht_OpenInt </span><span style="color: #000000; ">=</span><span style="color: #000000; "> OpenInt;<br />    }<br />    Else<br />    {<br />        If(Condition)              <br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 如果在目标周期下Q属于另一根KU,则Ht_CurBar?</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        {<br />            barCnt </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">1</span><span style="color: #000000; ">;<br />            Ht_CurBar </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Ht_CurBar[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">] </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">1</span><span style="color: #000000; ">;<br />            Ht_Open </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Open;<br />            Ht_High </span><span style="color: #000000; ">=</span><span style="color: #000000; "> High;<br />            Ht_Low </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Low;<br />            Ht_Vol </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Vol;<br />        }<br />        Else<br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 如果在目标周期下Q属于同一根KU,则Ht_CurBar不变Q但最高h和最低h要记录h格的变化Q成交量要篏?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        {<br />            barCnt </span><span style="color: #000000; ">=</span><span style="color: #000000; "> barCnt[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">] </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">1</span><span style="color: #000000; ">;<br />            Ht_High </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Max(Ht_High[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">],High);<br />            Ht_Low </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Min(Ht_Low[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">],Low);<br />            Ht_Vol </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Ht_Vol[</span><span style="color: #000000; ">1</span><span style="color: #000000; ">] </span><span style="color: #000000; ">+</span><span style="color: #000000; "> Vol;<br />        }<br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 收盘价和持仓量L取最新?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">        Ht_Close </span><span style="color: #000000; ">=</span><span style="color: #000000; "> Close;<br />        Ht_OpenInt </span><span style="color: #000000; ">=</span><span style="color: #000000; "> OpenInt;<br />    }<br /><br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">    FileAppend("c:\\qqqq.txt","DT="+Text(Date+Time)+" Index="+Text(Index)+" CurrentBar="+Text(CurrentBar)+" barCnt="+text(barCnt)+" Ht_CurBar="+text(Ht_CurBar)+" Ht_Open="+text(Ht_Open)+" Ht_High="+text(Ht_High)<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">    +" Ht_Low="+Text(Ht_Low)+" Ht_Close="+Text(Ht_Close)+" Ht_Vol="+Text(Ht_Vol)+" Ht_OpenInt="+Text(Ht_OpenInt));<br />    <br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 前面在当前周期的每根BARQ记录了它对应的目标旉周期的开高低收等数据?br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 接下来把每根BAR对应的数据返回给调用本函数的公式Q通过全局变量Q?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    barCntSum </span><span style="color: #000000; ">=</span><span style="color: #000000; "> barCnt ;<br />    If(BarsBack </span><span style="color: #000000; ">==</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">)<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 如果BarsBack?Q则当前BAR记录的是当前BAR所对应目标周期的当前BAR截止到目前ؓ止的BAR数据?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    {<br />        barCntSum </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; "> ;<br />    }<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 如果BarsBack?Q则当前BAR记录的是当前BAR所对应目标周期的前一根BAR的数据?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Else<br />    {<br />        barCntSum </span><span style="color: #000000; ">=</span><span style="color: #000000; "> barCnt ;<br />    }<br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 目标时间周期下的BAR数据写入全局变量q回调用公式</span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_curbar</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_CurBar);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_open</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_Open[barCntSum]);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_high</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_High[barCntSum]);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_low</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_Low[barCntSum]);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_close</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_Close[barCntSum]);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_vol</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_Vol[barCntSum]);<br />    SetGlobalVar2(</span><span style="color: #000000; ">"</span><span style="color: #000000; ">Ht_openInt</span><span style="color: #000000; ">"</span><span style="color: #000000; ">,Ht_OpenInt[barCntSum]);<br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 读取大周期数据的回溯BARC为函数的q回D?/span><span style="color: #008000; "><br /></span><span style="color: #000000; ">    Return barCnt;<br />    <br />End<br /><br /><br /> <br /></span><span style="color: #008000; ">/*</span><span style="color: #008000; "> <br />Params <br />    Numeric TimeFrame(1440);    <br />        // 目标旉周期Q按月线=4周(40320)Q周U?7?10080)Q日U?24时Q?440Q?br />        // 其他日内的周期等于相应的分钟敎ͼ如:1时=60Q?nbsp;30分钟=30。。?br />        // 1分钟图表Q支持不规则分钟敎ͼ?分钟?分钟?4分钟{?br />        <br />    Numeric BarsBack(0); <br />        // 目标旉周期BAR偏移Q?br />        // 1--表示当前周期下的当前BAR对应目标周期的前一根BAR<br />        // 0--表示当前周期下的当前BAR对应目标周期的当前BAR截止到目前ؓ止的BAR数据?br /><br />Vars<br />    Numeric TradeDate;                // 当前KU实际交易日期(主要解决夜盘问题Q?br />    Numeric TradeHour;                // 当前KU实际交易时_时Q?br />    Numeric TradeMinute;            // 当前KU实际交易时_分钟Q?br />    NumericSeries Index;            // 当前BAR在TimeFrame旉周期下的索引?br />    Numeric SessionStartHour;        // 当前KU实际的交易日的W一节交易的起始旉Q小Ӟ<br /><br /><br />    NumericSeries barCnt;            // d目标周期上一根BAR的数据在当前周期下需要回溯的BAR?br />    NumericSeries Ht_CurBar;        // 当前BAR在目标周期下对应的CurrentBar<br />    Numeric barCntSum;                 // 临时变量Q返回目标周期数据需要回溯的BAR?br />    NumericSeries Ht_Open;            // 目标旉周期的开盘h<br />    NumericSeries Ht_High;            // 目标旉周期的最高h<br />    NumericSeries Ht_Low;            // 目标旉周期的最低h<br />    NumericSeries Ht_Close;            // 目标旉周期的收盘h<br />    NumericSeries Ht_Vol;            // 目标旉周期的成交量<br />    NumericSeries Ht_OpenInt;        // 目标旉周期的持仓量<br />    bool condition(false);            // 判断在目标时间是否属于不同根BAR<br />    Numeric i;<br />    <br />Begin<br /><br />     TradeDate = TrueDate(0);         // 取实际交易日?br /><br />    // ҎTimeFrame分别处理<br />    If(TimeFrame == 40320)            // 月线<br />    {<br />        Index = (YearFromDateTime(TradeDate) - 1970) * 12 + MonthFromDateTime(TradeDate);<br />    }<br />    Else If(TimeFrame == 10080)        // 周线<br />    {<br />        Index = IntPart(DateDiff(19700105,TradeDate)/7);<br />    }<br />    Else If(TimeFrame == 1440)        // 日线<br />    {<br />        Index = DateDiff(19700105,TradeDate);<br />    }<br />    Else<br />    {<br />        TradeHour = HourFromDateTime(Time);<br />        TradeMinute = MinuteFromDateTime(Time);<br /><br />        // 取当前品U,W一节交易的开始小时数<br />        SessionStartHour = IntPart(GetSessionStartTime(0)*100);<br />        <br />        // 按当前BAR对应旉Q除以TimeFrame的分钟数Q得到的商ؓ索引|索引值相同的在大周期上属于同一根BAR<br />        Index = DateDiff(19700105,TradeDate) * (IntPart(1440/TimeFrame)+1) + IntPart((IIF(TradeHour >= SessionStartHour, TradeHour - SessionStartHour,TradeHour + 24 - SessionStartHour) * 60 + TradeMinute)/TimeFrame);<br />    }<br /><br />    // 索引g同的Q则说明属于不同BAR<br />    condition = Index <> Index[1];<br /><br />    If(CurrentBar==0)                // 如果是第一根Bar, Ht_CurBar=0<br />    {<br />        barCnt = InvalidNumeric;<br />        Ht_CurBar = InvalidNumeric;<br />        Ht_Open = InvalidNumeric;<br />        Ht_High = InvalidNumeric;<br />        Ht_Low = InvalidNumeric;<br />        Ht_Close = InvalidNumeric;<br />        Ht_Vol = InvalidNumeric;<br />        Ht_OpenInt = InvalidNumeric;<br />    }<br />    Else<br />    {<br />        If(Condition)              <br />        // 如果在目标周期下Q属于另一根KU,则Ht_CurBar?<br />        {<br />            If(Ht_CurBar[1] == InvalidNumeric)<br />            {<br />                Ht_CurBar = 0;<br />            }<br />            Else<br />            {<br />                Ht_CurBar = Ht_CurBar[1] + 1;<br />            }<br />            barCnt = 1;<br />            Ht_Open = Open;<br />            Ht_High = High;<br />            Ht_Low = Low;<br />            Ht_Vol = Vol;<br />        }<br />        Else<br />        // 如果在目标周期下Q属于同一根KU,则Ht_CurBar不变Q但最高h和最低h要记录h格的变化Q成交量要篏?br />        {<br />            If(Ht_CurBar[1] <> InvalidNumeric)<br />            {<br />                barCnt = barCnt[1] + 1;<br />                Ht_High = Max(Ht_High[1],High);<br />                Ht_Low = Min(Ht_Low[1],Low);<br />                Ht_Vol = Ht_Vol[1] + Vol;<br />            }<br />        }<br />        // 收盘价和持仓量L取最新?br />        If(Ht_CurBar <> InvalidNumeric)<br />        {<br />            Ht_Close = Close;<br />            Ht_OpenInt = OpenInt;<br />        }<br />    }<br />    <br />    //Commentary("barCnt = "+Text(barCnt));<br />    //Commentary("Ht_CurBar="+text(Ht_CurBar));<br />    <br />    //FileAppend("c:\\qqqq.txt","DT="+Text(Date+Time)+" Index="+Text(Index)+" CurrentBar="+Text(CurrentBar)+" barCnt="+text(barCnt)+" Ht_CurBar="+text(Ht_CurBar)+" Ht_Open="+text(Ht_Open)+" Ht_High="+text(Ht_High)<br />    //+" Ht_Low="+Text(Ht_Low)+" Ht_Close="+Text(Ht_Close)+" Ht_Vol="+Text(Ht_Vol)+" Ht_OpenInt="+Text(Ht_OpenInt));<br />    <br />    // 前面在当前周期的每根BARQ记录了它对应的目标旉周期的开高低收等数据?br />    // 接下来把每根BAR对应的数据返回给调用本函数的公式Q通过全局变量Q?br />    barCntSum = barCnt ;<br />    If(BarsBack == 0)<br />    // 如果BarsBack?Q则当前BAR记录的是当前BAR所对应目标周期的当前BAR截止到目前ؓ止的BAR数据?br />    {<br />        barCntSum = 0 ;<br />    }<br />    // 如果BarsBack?Q则当前BAR记录的是当前BAR所对应目标周期的前一根BAR的数据?br />    Else<br />    {<br />        barCntSum = barCnt ;<br />    }<br /><br />    // 目标时间周期下的BAR数据写入全局变量q回调用公式<br />    SetGlobalVar2("Ht_curbar",Ht_CurBar);<br />    SetGlobalVar2("Ht_open",Ht_Open[barCntSum]);<br />    SetGlobalVar2("Ht_high",Ht_High[barCntSum]);<br />    SetGlobalVar2("Ht_low",Ht_Low[barCntSum]);<br />    SetGlobalVar2("Ht_close",Ht_Close[barCntSum]);<br />    SetGlobalVar2("Ht_vol",Ht_Vol[barCntSum]);<br />    SetGlobalVar2("Ht_openInt",Ht_OpenInt[barCntSum]);<br /><br />    // 读取大周期数据的回溯BARC为函数的q回D?br />    Return barCnt;<br />    <br />End <br /></span><span style="color: #008000; ">*/</span><span style="color: #000000; "><br /><br /><br /></span></div></div><img src ="//www.owiwv.icu/alantop/aggbug/216571.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.owiwv.icu/alantop/" target="_blank">AlanTop</a> 2019-07-19 22:26 <a href="//www.owiwv.icu/alantop/archive/2019/07/19/216571.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>frp内网IK远E连?/title><link>//www.owiwv.icu/alantop/archive/2019/07/17/216561.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 17 Jul 2019 03:07:00 GMT</pubDate><guid>//www.owiwv.icu/alantop/archive/2019/07/17/216561.html</guid><wfw:comment>//www.owiwv.icu/alantop/comments/216561.html</wfw:comment><comments>//www.owiwv.icu/alantop/archive/2019/07/17/216561.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.owiwv.icu/alantop/comments/commentRss/216561.html</wfw:commentRss><trackback:ping>//www.owiwv.icu/alantop/services/trackbacks/216561.html</trackback:ping><description><![CDATA[软g下蝲地址Qhttps://github.com/fatedier/frp/releases<br />服务?centos 7.6<br />客户?windows 10<br /><br />服务器端配置文g frps.ini<br /><br /><div class="oese"># ~辑配置文g </div><div class="oese"># frps.ini</div><div class="oese">#通用讄</div><div class="oese">[common]</div><div class="oese"># frp 监听地址</div><div class="oese">bind_port = 7000</div><div class="oese">#讉K客户端web服务自定义的端口?nbsp;</div><div class="oese">vhost_http_port = 8110</div><div class="oese">#链接口o</div><div class="oese">token = 12345678</div><div class="oese"></div><div class="oese">#frp 控制面板</div><div class="oese">dashboard_port = 7500</div><div class="oese"># dashboard 用户名密码可选,默认都ؓ admin</div><div class="oese">dashboard_user = admin</div><div class="oese">dashboard_pwd = admin<br /><br /><div class="oese"><div class="oese">服务器端q行 ./frps -c frps.ini</div><div class="oese">q程理面 //ip:7500/</div><div class="oese"></div><div class="oese">客户端配|文?/div><div class="oese"></div><div class="oese"> # 通用配置</div><div class="oese">    [common]</div><div class="oese">    # 服务器端地址 也可以填写域?/div><div class="oese">    server_addr = 47.103.128.154</div><div class="oese">    # 服务器端?/div><div class="oese">    server_port = 7000 </div><div class="oese">    # 授权token 要与服务器端一?/div><div class="oese">    token = 12345678</div><div class="oese">    </div><div class="oese"></div><div class="oese">    </div><div class="oese">    #内网IK提供本地数据库l别?/div><div class="oese">   [tcp3389]</div><div class="oese">   type = tcp</div><div class="oese">   local_ip = 10.2.3.110</div><div class="oese">   #本地端口</div><div class="oese">   local_port = 3389</div><div class="oese">   #q程端口</div><div class="oese">   remote_port =3389</div><div class="oese">   </div><div class="oese">客户端运?nbsp;<span style="color: #4d4d4d; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: 16px; font-variant-ligatures: common-ligatures; background-color: #ffffff;">frpc.exe -c frpc.ini</span></div></div><span style="background-color: #282c34; color: #abb2bf; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; font-variant-ligatures: common-ligatures; white-space: pre;"><br /><br /></span></div><div class="oese"></div><img src ="//www.owiwv.icu/alantop/aggbug/216561.html" width = "1" height = "1" /><br><br><div align=right><a href="//www.owiwv.icu/" title="ڲͼ">ڲͼ</a> 2019-07-17 11:07 <a href="//www.owiwv.icu/alantop/archive/2019/07/17/216561.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <script>(function(){ var src = (document.location.protocol == "") ? "//js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script>