我们在mysql备份 LNMP环境中的数据库迁移为独立的服务器的基础上搭建BBS论坛: 

  1. [root@bqh-117 ~]# mysql -uroot -p123456
  2. Welcome to the MySQL monitor. Commands end with ; or \g.
  3. Your MySQL connection id is 2
  4. Server version: 5.5.32 MySQL Community Server (GPL)
  5.  
  6. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
  7.  
  8. Oracle is a registered trademark of Oracle Corporation and/or its
  9. affiliates. Other names may be trademarks of their respective
  10. owners.
  11.  
  12. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  13.  
  14. mysql> show databases;
  15. +--------------------+
  16. | Database |
  17. +--------------------+
  18. | information_schema |
  19. | mysql |
  20. | performance_schema |
  21. | test |
  22. | wordpress |
  23. +--------------------+
  24. 5 rows in set (0.00 sec)
  25.  
  26. mysql> create database bbs; #创建库
  27. Query OK, 1 row affected (0.00 sec)
  28.  
  29. mysql> show databases;
  30. +--------------------+
  31. | Database |
  32. +--------------------+
  33. | information_schema |
  34. | bbs |
  35. | mysql |
  36. | performance_schema |
  37. | test |
  38. | wordpress |
  39. +--------------------+
  40. 6 rows in set (0.00 sec)
  41.  
  42. mysql> grant all on bbs.* to bbs@'192.168.0.%' identified by '123456'; #授权
  43. Query OK, 0 rows affected (0.00 sec)
  44. mysql> flush privileges; #刷新授权生效
  45. Query OK, 0 rows affected (0.00 sec)
  46.  
  47. mysql> select user,host from mysql.user;
  48. +-----------+-------------+
  49. | user | host |
  50. +-----------+-------------+
  51. | root | 127.0.0.1 |
  52. | bbs | 192.168.0.% |
  53. | wordpress | 192.168.0.% |
  54. | root | ::1 |
  55. | | bqh-117 |
  56. | root | bqh-117 |
  57. | | localhost |
  58. | root | localhost |
  59. +-----------+-------------+
  60. 8 rows in set (0.00 sec)
  61.  
  62. mysql>

此时我们可以通过118机器用已授权的用户远程登录一下数据库:

  1. [root@bqh-118 ~]# mysql -ubbs -p123456 -h 192.168.0.117 #-h 指定远程IP地址
  2. Welcome to the MySQL monitor. Commands end with ; or \g.
  3. Your MySQL connection id is 3
  4. Server version: 5.5.32 MySQL Community Server (GPL)
  5. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
  6. Oracle is a registered trademark of Oracle Corporation and/or its
  7. affiliates. Other names may be trademarks of their respective
  8. owners.
  9. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  10. mysql> show databases;
  11. +--------------------+
  12. | Database |
  13. +--------------------+
  14. | information_schema |
  15. | bbs |
  16. | test |
  17. +--------------------+
  18. 3 rows in set (0.00 sec)

 nginx环境配置:

  1. [root@bqh-118 conf]# vim nginx.conf
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include mime.types;
  8. default_type application/octet-stream;
  9. sendfile on;
  10. keepalive_timeout 65;
  11. server {
  12. listen 80;
  13. server_name www.jywbbs.com;
  14. root html/bbs;
  15. location / {
  16. index index.php index.html index.htm;
        }
    location ~ .*\.(php|php5)?$ {
         root html/bbs;
  17. fastcgi_pass 127.0.0.1:9000;
  18. fastcgi_index index.php;
  19. include fastcgi.conf;
  20. }
  21. error_page 500 502 503 504 /50x.html;
  22. }
  23. }

[root@bqh-118 conf]# /application/nginx/sbin/nginx -t
nginx: the configuration file /application/nginx-1.6.3/conf/nginx.conf syntax is ok
nginx: configuration file /application/nginx-1.6.3/conf/nginx.conf test is successful
[root@bqh-118 conf]# /application/nginx/sbin/nginx -s reload

 下面我们下载bbs程序:

  1. [root@bqh-118 bbs]# wget -q http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
  2. [root@bqh-118 bbs]# ll
  3. 总用量 12196
  4. -rw-r--r-- 1 root root 12486773 9 13 2017 Discuz_X3.2_SC_UTF8.zip
  5. [root@bqh-118 bbs]# unzip -o Discuz_X3.2_SC_UTF8.zip #-o 覆盖当前同名文件或目录,工作中慎用。
  6. [root@bqh-118 bbs]# ll
  7. 总用量 12208
  8. -rw-r--r-- 1 root root 12486773 9 13 2017 Discuz_X3.2_SC_UTF8.zip
  9. drwxr-xr-x 2 root root 4096 5 31 2016 readme
  10. drwxr-xr-x 12 root root 4096 5 31 2016 upload
  11. drwxr-xr-x 4 root root 4096 5 31 2016 utility

授权:

  1. [root@bqh-118 html]# chown -R nginx.nginx config/ data/ uc_*

然后我们做hosts地址解析:

同样在windows系统,配置一下host在“C:\Windows\System32\drivers\etc”下的hosts中配置一下域名解析

此时我们打开浏览器输入:www.jywbbs.com或192.168.0.118

 此时我们可以管控一下权限:下面是删除后,从新授权。

  1. [root@bqh-117 ~]# mysql -uroot -p123456
  2. Welcome to the MySQL monitor. Commands end with ; or \g.
  3. Your MySQL connection id is 9
  4. Server version: 5.5.32 MySQL Community Server (GPL)
  5.  
  6. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
  7.  
  8. Oracle is a registered trademark of Oracle Corporation and/or its
  9. affiliates. Other names may be trademarks of their respective
  10. owners.
  11.  
  12. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  13.  
  14. mysql> drop user bbs@'192.168.0.%';
  15. Query OK, 0 rows affected (0.00 sec)
  16.  
  17. mysql> grant insert,delete,update,select,drop on bbs.* to bbs@'192.168.0.%' identified by '123456';
  18. Query OK, 0 rows affected (0.00 sec)
  19.  
  20. mysql> flush privileges;
  21. Query OK, 0 rows affected (0.00 sec)

登录论坛后台,发布一篇稿子,上传一个图片,获取图片路径:

  1. [root@bqh- bbs]# find ./ -type f -name "*.jpg" -mmin - #查看最近5分钟内上传带.jpg的图片路径

用户上传的数据:

将来挂载到NFS上的:

图片路径:data/attachment/forum

头像目录:uc_server/data/avatar

把安装文件删除掉,防止其他用户通过web从新安装bbs。

  1. [root@bqh- bbs]# rm -rf install/

配置BBS论坛实现列表、内容页等伪静态:

查看当前的 Rewrite 规则:

  1. Nginx Web Server
  2. rewrite ^([^\.]*)/topic-(.+)\.html$ $/portal.php?mod=topic&topic=$ last;
  3. rewrite ^([^\.]*)/article-([-]+)-([-]+)\.html$ $/portal.php?mod=view&aid=$&page=$ last;
  4. rewrite ^([^\.]*)/forum-(\w+)-([-]+)\.html$ $/forum.php?mod=forumdisplay&fid=$&page=$ last;
  5. rewrite ^([^\.]*)/thread-([-]+)-([-]+)-([-]+)\.html$ $/forum.php?mod=viewthread&tid=$&extra=page%3D$&page=$ last;
  6. rewrite ^([^\.]*)/group-([-]+)-([-]+)\.html$ $/forum.php?mod=group&fid=$&page=$ last;
  7. rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $/home.php?mod=space&$=$ last;
  8. rewrite ^([^\.]*)/blog-([-]+)-([-]+)\.html$ $/home.php?mod=space&uid=$&do=blog&id=$ last;
  9. rewrite ^([^\.]*)/(fid|tid)-([-]+)\.html$ $/index.php?action=$&value=$ last;
  10. rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $/plugin.php?id=$:$ last;
  11. if (!-e $request_filename) {
  12. return ;
  13. }
  14. Apache Web Server(独立主机用户)
  15. <IfModule mod_rewrite.c>
  16. RewriteEngine On
  17. RewriteCond %{QUERY_STRING} ^(.*)$
  18. RewriteRule ^(.*)/topic-(.+)\.html$ $/portal.php?mod=topic&topic=$&%
  19. RewriteCond %{QUERY_STRING} ^(.*)$
  20. RewriteRule ^(.*)/article-([-]+)-([-]+)\.html$ $/portal.php?mod=view&aid=$&page=$&%
  21. RewriteCond %{QUERY_STRING} ^(.*)$
  22. RewriteRule ^(.*)/forum-(\w+)-([-]+)\.html$ $/forum.php?mod=forumdisplay&fid=$&page=$&%
  23. RewriteCond %{QUERY_STRING} ^(.*)$
  24. RewriteRule ^(.*)/thread-([-]+)-([-]+)-([-]+)\.html$ $/forum.php?mod=viewthread&tid=$&extra=page\%3D$&page=$&%
  25. RewriteCond %{QUERY_STRING} ^(.*)$
  26. RewriteRule ^(.*)/group-([-]+)-([-]+)\.html$ $/forum.php?mod=group&fid=$&page=$&%
  27. RewriteCond %{QUERY_STRING} ^(.*)$
  28. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $/home.php?mod=space&$=$&%
  29. RewriteCond %{QUERY_STRING} ^(.*)$
  30. RewriteRule ^(.*)/blog-([-]+)-([-]+)\.html$ $/home.php?mod=space&uid=$&do=blog&id=$&%
  31. RewriteCond %{QUERY_STRING} ^(.*)$
  32. RewriteRule ^(.*)/(fid|tid)-([-]+)\.html$ $/index.php?action=$&value=$&%
  33. RewriteCond %{QUERY_STRING} ^(.*)$
  34. RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $/plugin.php?id=$:$&%
  35. </IfModule>

  36. Apache Web Server(虚拟主机用户)
  37. # 将 RewriteEngine 模式打开
  38. RewriteEngine On
  39.  
  40. # 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
  41. RewriteBase /discuz
  42.  
  43. # Rewrite 系统规则请勿修改
  44. RewriteCond %{QUERY_STRING} ^(.*)$
  45. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$&%
  46. RewriteCond %{QUERY_STRING} ^(.*)$
  47. RewriteRule ^article-([-]+)-([-]+)\.html$ portal.php?mod=view&aid=$&page=$&%
  48. RewriteCond %{QUERY_STRING} ^(.*)$
  49. RewriteRule ^forum-(\w+)-([-]+)\.html$ forum.php?mod=forumdisplay&fid=$&page=$&%
  50. RewriteCond %{QUERY_STRING} ^(.*)$
  51. RewriteRule ^thread-([-]+)-([-]+)-([-]+)\.html$ forum.php?mod=viewthread&tid=$&extra=page\%3D$&page=$&%
  52. RewriteCond %{QUERY_STRING} ^(.*)$
  53. RewriteRule ^group-([-]+)-([-]+)\.html$ forum.php?mod=group&fid=$&page=$&%
  54. RewriteCond %{QUERY_STRING} ^(.*)$
  55. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$=$&%
  56. RewriteCond %{QUERY_STRING} ^(.*)$
  57. RewriteRule ^blog-([-]+)-([-]+)\.html$ home.php?mod=space&uid=$&do=blog&id=$&%
  58. RewriteCond %{QUERY_STRING} ^(.*)$
  59. RewriteRule ^archiver/(fid|tid)-([-]+)\.html$ archiver/index.php?action=$&value=$&%
  60. RewriteCond %{QUERY_STRING} ^(.*)$
  61. RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$:$&%
  62. IIS Web Server(独立主机用户)
  63. [ISAPI_Rewrite]
  64.  
  65. # = hour
  66. CacheClockRate
  67.  
  68. RepeatLimit
  69.  
  70. # Protect httpd.ini and httpd.parse.errors files
  71. # from accessing through HTTP
  72. RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $/portal\.php\?mod=topic&topic=$&$
  73. RewriteRule ^(.*)/article-([-]+)-([-]+)\.html(\?(.*))*$ $/portal\.php\?mod=view&aid=$&page=$&$
  74. RewriteRule ^(.*)/forum-(\w+)-([-]+)\.html(\?(.*))*$ $/forum\.php\?mod=forumdisplay&fid=$&page=$&$
  75. RewriteRule ^(.*)/thread-([-]+)-([-]+)-([-]+)\.html(\?(.*))*$ $/forum\.php\?mod=viewthread&tid=$&extra=page\%3D$&page=$&$
  76. RewriteRule ^(.*)/group-([-]+)-([-]+)\.html(\?(.*))*$ $/forum\.php\?mod=group&fid=$&page=$&$
  77. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $/home\.php\?mod=space&$=$&$
  78. RewriteRule ^(.*)/blog-([-]+)-([-]+)\.html(\?(.*))*$ $/home\.php\?mod=space&uid=$&do=blog&id=$&$
  79. RewriteRule ^(.*)/(fid|tid)-([-]+)\.html(\?(.*))*$ $/index\.php\?action=$&value=$&$
  80. RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $/plugin\.php\?id=$:$&$
  81. IIS7 Web Server(独立主机用户)
  82. <rewrite>
  83. <rules>
  84. <rule name="portal_topic">
  85. <match url="^(.*/)*topic-(.+).html\?*(.*)$" />
  86. <action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />
  87. </rule>
  88. <rule name="portal_article">
  89. <match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" />
  90. <action type="Rewrite" url="{R:1}/portal.php\?mod=view&amp;aid={R:2}&amp;page={R:3}&amp;{R:4}" />
  91. </rule>
  92. <rule name="forum_forumdisplay">
  93. <match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />
  94. <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
  95. </rule>
  96. <rule name="forum_viewthread">
  97. <match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
  98. <action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />
  99. </rule>
  100. <rule name="group_group">
  101. <match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
  102. <action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
  103. </rule>
  104. <rule name="home_space">
  105. <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
  106. <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />
  107. </rule>
  108. <rule name="home_blog">
  109. <match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" />
  110. <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;uid={R:2}&amp;do=blog&amp;id={R:3}&amp;{R:4}" />
  111. </rule>
  112. <rule name="forum_archiver">
  113. <match url="^(.*/)*(fid|tid)-([0-9]+).html\?*(.*)$" />
  114. <action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />
  115. </rule>
  116. <rule name="plugin">
  117. <match url="^(.*/)*([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+).html\?*(.*)$" />
  118. <action type="Rewrite" url="{R:1}/plugin.php\?id={R:2}:{R:3}&amp;{R:4}" />
  119. </rule>
  120. </rules>
  121. </rewrite>
  122. Zeus Web Server
  123. match URL into $ with ^(.*)/topic-(.+)\.html\?*(.*)$
  124. if matched then
  125. set URL = $/portal.php?mod=topic&topic=$&$
  126. endif
  127. match URL into $ with ^(.*)/article-([-]+)-([-]+)\.html\?*(.*)$
  128. if matched then
  129. set URL = $/portal.php?mod=view&aid=$&page=$&$
  130. endif
  131. match URL into $ with ^(.*)/forum-(\w+)-([-]+)\.html\?*(.*)$
  132. if matched then
  133. set URL = $/forum.php?mod=forumdisplay&fid=$&page=$&$
  134. endif
  135. match URL into $ with ^(.*)/thread-([-]+)-([-]+)-([-]+)\.html\?*(.*)$
  136. if matched then
  137. set URL = $/forum.php?mod=viewthread&tid=$&extra=page\%3D$&page=$&$
  138. endif
  139. match URL into $ with ^(.*)/group-([-]+)-([-]+)\.html\?*(.*)$
  140. if matched then
  141. set URL = $/forum.php?mod=group&fid=$&page=$&$
  142. endif
  143. match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
  144. if matched then
  145. set URL = $/home.php?mod=space&$=$&$
  146. endif
  147. match URL into $ with ^(.*)/blog-([-]+)-([-]+)\.html\?*(.*)$
  148. if matched then
  149. set URL = $/home.php?mod=space&uid=$&do=blog&id=$&$
  150. endif
  151. match URL into $ with ^(.*)/(fid|tid)-([-]+)\.html\?*(.*)$
  152. if matched then
  153. set URL = $/index.php?action=$&value=$&$
  154. endif
  155. match URL into $ with ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html\?*(.*)$
  156. if matched then
  157. set URL = $/plugin.php?id=$:$&$
  158. endif

并把Nginx Web Server rewrite插入到nginx.conf

  1. [root@bqh- ~]# vim /application/nginx/conf/nginx.conf
  2. worker_processes ;
  3. events {
  4. worker_connections ;
  5. }
  6. http {
  7. include mime.types;
  8. default_type application/octet-stream;
  9. sendfile on;
  10. keepalive_timeout ;
  11.  
  12. server {
  13. listen ;
  14. server_name www.jywbbs.com;
  15. root html/bbs;
  16. location / {
  17. index index.php index.html index.htm;
  18. rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
  19. rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
  20. rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
  21. rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&pa
  22. ge=$3 last;rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
  23. rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
  24. rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
  25. rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
  26. rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
  27. if (!-e $request_filename) {
  28. return 404;
  29. }
  30. }
  31. location ~ .*\.(php|php5)?$ {
  32. root html/bbs;
  33. fastcgi_pass 127.0.0.1:;
  34. fastcgi_index index.php;
  35. include fastcgi.conf;
  36. }
  37. error_page /50x.html;
  38. }
  39. }
  40. [root@bqh- conf]# vim nginx.conf
  41. [root@bqh- conf]# /application/nginx/sbin/nginx -t
  42. nginx: the configuration file /application/nginx-1.6./conf/nginx.conf syntax is ok
  43. nginx: configuration file /application/nginx-1.6./conf/nginx.conf test is successful
  44. [root@bqh- conf]# /application/nginx/sbin/nginx -s reload

此时我们打开内容页网址已成伪静态url:

ok,bbs论坛搭建、url伪静态配置成功!

LNMP环境搭建BBS论坛及伪静态的更多相关文章

  1. LNMP环境搭建(discuz论坛)

    一.操作系统级环境及软件版本 操作系统:CentOS release 6.5 (Final)minimal 内核版本:2.6.32-431.el6.x86_64 MySQL版本:MySQL-5.6.2 ...

  2. LNMP环境搭建之php安装,wordpress博客搭建

    LNMP环境搭建之php安装,wordpress博客搭建 一.介绍: 1.什么是CGI CGI全称是"通用网关接口"(Common Gateway Interface),HTTP服 ...

  3. LNMP环境搭建:Nginx安装、测试与域名配置

    Nginx作为一款优秀的Web Server软件同时也是一款优秀的负载均衡或前端反向代理.缓存服务软件 2.编译安装Nginx (1)安装Nginx依赖函数库pcre pcre为“perl兼容正则表达 ...

  4. zabbix学习(一)——LNMP环境搭建及zabbix安装

    第一部分:LNMP环境搭建 一.环境说明: OS:   centos7.6_x64nginx:nginx-1.16.0php:   php-7.1.11mysql:mysql-5.6.44 zabbi ...

  5. Linux下-LNMP环境搭建博客网站(全过程)

    通常我们所说的LNMP是指一个网站基本的组织框架,即Linux系统支持,Nginx静态服务,Mysql数据库支持以及PHP动态编程语言支持.目前Mysql数据库被Oracle数据库分析公司收购,其创始 ...

  6. LNMP环境搭建

    LNMP环境搭建 Linux + Nginx + MySQL + PHP PHP是一种脚本语言,当前中国乃至世界上使用PHP语言开发的网站非常普遍 Nginx是一个web服务软件,和apache是一类 ...

  7. 阿里云(ECS)Centos服务器LNMP环境搭建

    阿里云( ECS ) Centos7 服务器 LNMP 环境搭建 前言 第一次接触阿里云是大四的时候,当时在校外公司做兼职,关于智能家居项目的,话说当时俺就只有一个月左右的 php 后台开发经验(还是 ...

  8. LNMP环境搭建——MySQL篇

    The world's most popular open source database 1.Install MySQL root@kallen:~# apt-get install mysql-s ...

  9. Ubuntu16.04 lnmp 环境搭建

    Ubuntu16.04 lnmp 环境搭建 nginx 安装 sudo apt-add-repository ppa:nginx/stablesudo apt-add-repository ppa:o ...

随机推荐

  1. 软件定义网络基础---SDN的主流构架

    一:基于不同标准的主流构架 二: ONF定义的SDN基本构架 (一) 四个平面.两大接口 三:四个平面 (一)数据平面 数据平面是由若干网元(Netword Element)构成,每个网元包括一个或多 ...

  2. Qt编写气体安全管理系统13-短信告警

    一.前言 短信告警这个模块在很多项目中都用上了,比如之前做过的安防系统,温湿度报警系统等,主要的流程就是收到数据判断属于某种报警后,组织短信字符串内容,发送到指定的多个手机号码上面,使用的是短信猫硬件 ...

  3. Bmp格式图片与16进制的互相转换简解 Python

    BMP TO HEX 首先介绍Github上一个简单的Bmp转成16进制的py: https://github.com/robertgallup/bmp2hex 网上这种例子很多.思路也简单:将bmp ...

  4. Linq中demo,用力看看吧

    本文导读:LINQ to SQL全称基于关系数据的.NET语言集成查询,用于以对象形式管理关系数据,并提供了丰富的查询功能.Linq中where查询与SQL命令中的Where作用相似,都是起到范围限定 ...

  5. 【Leetcode_easy】1051. Height Checker

    problem 1051. Height Checker solution class Solution { public: int heightChecker(vector<int>&a ...

  6. 触屏Tap模拟事件

    触屏的click因为有双击判断所以有200ms的延迟,zepto里的touch.js兼容不好所以tap也没法直接用. gibhub上有个fastclick太大了. 自己用touched写个简单的模拟t ...

  7. 自组织特征映射神经网络(SOFM)

    1981年芬兰 Helsink 大学的 T·Kohonen 教授提出一种自组织特征映射网 (Self-Organizing Feature Map , SOFM ), 又称 Kohonen 网 . K ...

  8. 基于python的App UI自动化环境搭建

    Android端Ui 自动化环境搭建 一,安装JDK.SDK 二,添加环境变量 Widows:1.系统变量→新建 JAVA_HOME 变量E:\Java\jdk1.7.0 jdk安装目录 2.系统变量 ...

  9. Vmware player--打开vmdk; 导出系统;

    https://www.cnblogs.com/wxdblog/p/7091496.html 用vmware player打开已经存在的VMDK的方法: https://jingyan.baidu.c ...

  10. LeetCode 378. 有序矩阵中第K小的元素(Kth Smallest Element in a Sorted Matrix) 13

    378. 有序矩阵中第K小的元素 378. Kth Smallest Element in a Sorted Matrix 题目描述 给定一个 n x n 矩阵,其中每行和每列元素均按升序排序,找到矩 ...