uniapp用苹果机进行调试

本人手机Ios,所以被迫ios进行调试

%title插图%num
用hbuilder打开Uniapp项目。点击运行-》运行到手机或者虚拟机

需要pc端下载itunes,电脑检测到是否连接上手机。连接之后信任该程序。
但此时我就遇到了一个问题。在相关网站上下载了ITunes,电脑显示连接到该设备。但是无法运行在苹果手机里
鄙人一时懵逼无比。翻阅无数文档,拜读无数百度文、终于勇敢向同事勇敢发问!!!当当当当!

%title插图%num
这动人的话语。哈哈哈哈哈哈哈哈哈,完美搞定了我的困惑~
安装成功后稳稳的重启了一下Hbuilder。就Ok了。

如何简单的生成rss地址_什么是RSS(真正的简单企业联合组织)?

如何简单的生成rss地址

RSS or RDF Site Summary or Rich Site Summary or Really Simple Syndication are the same. RSS is a standard created to allow web page feed in order to clients to follow new posts and updates easily with RSS client. RSS standard is used to follow multiple sites with a single application where newly added contents or updates will be automatically listed with an RSS client application. The passing of the content is called web syndication.

RSSRDF Site SummaryRich Site SummaryReally Simple Syndication是相同的。 RSS是一种标准,旨在允许网页供稿,以便客户端可以通过RSS客户端轻松跟踪新帖子和更新。 RSS标准用于通过单个应用程序跟踪多个站点,其中新添加的内容或更新将通过RSS客户端应用程序自动列出。 内容的传递称为web syndication 。

RSS历史 (RSS History)

The work about web syndication is started in 1995 but these efforts couldn’s succseed. The RDF Site Summary which is the first version of the RSS is released by Netscape in March 1999. This is also versioned as RSS 0.91. With further development the RDF Site Summary is renamed as Risch Site Summary.

关于网络联合组织的工作始于1995年,但这些努力未能成功。 Netscape在1999年3月发布了RSS的*个版本“ RDF站点摘要”。它的版本也定为RSS 0.91。 随着进一步的开发,RDF站点摘要被重命名为Risch Site Summary 。

In December 2001 O’Reilly Media and Moreover produced the RSS 1.0 version and reintroduced support for RDF and XML namespaces. In September 2002, Winer released RSS 2.0.

在2001年12月,O’Reilly Media and Between生产了RSS 1.0版本,并重新引入了对RDF和XML名称空间的支持。 Winer在2002年9月发布了RSS 2.0。

In September 2004, the RSS icon to be used in Mozilla Firefox browsers. This icon later used by Microsoft , Opera as the icon for the RSS feeds.

2004年9月,将在Mozilla Firefox浏览器中使用RSS图标。 此图标后来被Microsoft,Opera用作RSS源的图标。

RSS版本 (RSS Versions)

RSS standard or format is not changed much recently It is updated in the first years of the creation and current recent version of the RSS is 2.1.

RSS标准或格式*近没有更改,它在创建的*年即已更新,并且RSS的当前*新版本是2.1。

RSS 0.90 is the first official version of the RSS which is created by Netscape. It was called as RDF Site Summary.

RSS 0.90是Netscape创建的RSS的*个正式版本。 它被称为RDF网站摘要。

RSS 1.0 is an open format which is created by RSS-DEV Working Group and not fully compatible with 0.90 version.

RSS 1.0是一种开放格式,由RSS-DEV工作组创建,与0.90版本不完全兼容。

LEARN MORE  Nmap Output
了解更多Nmap输出

RSS 1.1is also an open format where it provides updates to version 1.0 but it will not become popular because it is not endorsed by RSS-Dev Working Group.

RSS 1.1也是一种开放格式,它提供对1.0版的更新,但由于未得到RSS-Dev工作组的认可而不会流行。

RSS 2.0 provides multiple and confusing version numbers like 0.91, 0.92 or 2.0.1 but it provides simple updates over the version 1.0. Version 2.0.1 is the most popular version.

RSS 2.0提供了多个令人困惑的版本号,例如0.91、0.92或2.0.1,但它提供了对1.0版的简单更新。 2.0.1版是*受欢迎的版本。

RSS的优点和优势 (RSS Benefits and Advantages)

Even RSS is not complex or popular or graound bracking technology it provides some benefits and advantages. Below we will list some of the benefits and advantages of the RSS usage.

甚至RSS都不是复杂的,也不是流行的,也不是gracks的技术,它提供了一些好处和优点。 下面我们将列出使用RSS的一些好处和优点。

  • RSS allows users to track posts and updates about sites easily without navigating to the site.RSS使用户可以轻松跟踪有关站点的帖子和更新,而无需导航到该站点。
  • Multiple even hundreds of web sites can be tracked easily.可以轻松跟踪多个甚至数百个网站。
  • Desktop, Mobile, Web-based RSS clients can be used to track web site updates from anywhere.基于桌面,移动,基于Web的RSS客户端可用于从任何地方跟踪网站更新。
  • New torrents can be tracked easily by using RSS client使用RSS客户端可以轻松跟踪新的种子
  • New news can be tracked easily by using RSS client使用RSS客户端可以轻松跟踪新新闻

RSS URL或链接(RSS URL or Link)

RSS is provided via a special URL or link. This URL contants XML formattet RSS content which contains updates and posts about given site.RSS is also called as feed and generally the /feed or /rss URIs are used to provide RSS content. As an example poftut.com RSS is provided via following URL.

RSS通过特殊的URL或链接提供。 此URL包含XML格式的RSS内容,其中包含有关给定站点的更新和帖子。RSS也称为提要,通常/feed/rss URI用于提供RSS内容。 例如,通过以下URL提供poftut.com RSS。

https://www.poftut.com/feed/

https://www.poftut.com/feed/

RSS内容 (RSS Content)

RSS content is formatted in XML format and contains information like title, link, description, language, image, creator, tags, etc. about the post. also, information about the RSS feeds like rss version, content type, etc.

RSS内容以XML格式格式化,并包含有关帖子的信息,例如标题,链接,描述,语言,图像,创建者,标签等。 另外,有关RSS提要的信息,例如rss版本,内容类型等。

%title插图%num
RSS Content
RSS内容
  1. <?xml version=”1.0″ encoding=”UTF-8″?><rss version=“2.0”
  2. xmlns:content=“http://purl.org/rss/1.0/modules/content/”
  3. xmlns:wfw=“http://wellformedweb.org/CommentAPI/”
  4. xmlns:dc=“http://purl.org/dc/elements/1.1/”
  5. xmlns:atom=“http://www.w3.org/2005/Atom”
  6. xmlns:sy=“http://purl.org/rss/1.0/modules/syndication/”
  7. xmlns:slash=“http://purl.org/rss/1.0/modules/slash/”
  8. >
  9. <channel>
  10. <title>POFTUT</title>
  11. <atom:link href=“https://www.poftut.com/feed/” rel=“self” type=“application/rss+xml” />
  12. <link>https://www.poftut.com</link>
  13. <description>Linux, Windows, Security, Programming, Network Tutorials</description>
  14. <lastBuildDate>Wed, 17 Jun 2020 07:40:46 +0000</lastBuildDate>
  15. <language>en-US</language>
  16. <sy:updatePeriod>
  17. hourly </sy:updatePeriod>
  18. <sy:updateFrequency>
  19. 1 </sy:updateFrequency>
  20. <generator>https://wordpress.org/?v=5.4.2</generator>
  21. <image>
  22. <url>https://www.poftut.com/wp-content/uploads/2018/06/cropped-Selection_017-1-150×150.png</url>
  23. <title>POFTUT</title>
  24. <link>https://www.poftut.com</link>
  25. <width>32</width>
  26. <height>32</height>
  27. </image>
  28. <item>
  29. <title>What Is Elasticsearch?</title>
  30. <link>https://www.poftut.com/what-is-elasticsearch/</link>
  31. <comments>https://www.poftut.com/what-is-elasticsearch/#respond</comments>
  32. <dc:creator><![CDATA[İsmail Baydan]]></dc:creator>
  33. <pubDate>Wed, 17 Jun 2020 07:40:43 +0000</pubDate>
  34. <category><![CDATA[Big Data]]></category>
  35. <category><![CDATA[Blog]]></category>
  36. <category><![CDATA[Database]]></category>
  37. <category><![CDATA[NoSQL]]></category>
  38. <category><![CDATA[big data]]></category>
  39. <category><![CDATA[elasticsearch]]></category>
  40. <category><![CDATA[lucene]]></category>
  41. <category><![CDATA[mongodb]]></category>
  42. <category><![CDATA[nosql]]></category>
  43. <guid isPermaLink=“false”>https://www.poftut.com/?p=30099</guid>
  44. <description><![CDATA[<img width=”150″ height=”150″ src=”https://poftut.b-cdn.net/wp-content/uploads/2020/06/image-73-150×150.png” class=”attachment-thumbnail size-thumbnail wp-post-image” alt=”What Is Elasticsearch?” style=”float:left; margin:0 15px 15px 0;” />Elasticsearch is a search engine that is based on the Apache Lucene project and library. Elasticsearch provides NoSQL features plus … <p class=”read-more-container”><a title=”What Is Elasticsearch?” class=”read-more button” href=”https://www.poftut.com/what-is-elasticsearch/#more-30099″>Read more<span class=”screen-reader-text”>What Is Elasticsearch?</span></a></p>]]></description>
  45. <content:encoded><![CDATA[<img width=”150″ height=”150″ src=”https://poftut.b-cdn.net/wp-content/uploads/2020/06/image-73-150×150.png” class=”attachment-thumbnail size-thumbnail wp-post-image” alt=”What Is Elasticsearch?” style=”float:left; margin:0 15px 15px 0;” />
  46. <p><code>Elasticsearch</code> is a search engine that is based on the Apache Lucene project and library. Elasticsearch provides NoSQL features plus some advantages and acts like a big database. Also, Elasticsearch provides distributed, multitenant-capable full-text search over the HTTP protocol and web interface. </p>

如何查找RSS提要(How To Find RSS Feed)

RSS feeds are generally directly provided via web sites following URLs and the most popular URL is /feed.

RSS提要通常是通过URL后面的网站直接提供的,*受欢迎的URL是/feed 。

https://www.poftut.com/feed

https://www.poftut.com/feed

LEARN MORE  What Is XML (eXtensible Markup Language)?
了解更多什么是XML(可扩展标记语言)?

https://www.poftut.com/rss

https://www.poftut.com/rss

*佳RSS客户端/软件 (Best RSS Clients/Software)

RSS feeds are consumed via different type of clients. There are mobile, desktop, web based RSS clients which can be used in different use cases. Some clients provides integrated experience by providing integrated mobile, web and desktop at the same time. Below we will list some of the popular and useful RSS clients.

RSS提要通过不同类型的客户端使用。 有移动的,基于桌面的,基于Web的RSS客户端,可以在不同的用例中使用。 一些客户通过同时提供集成的移动设备,Web和桌面来提供集成的体验。 下面我们将列出一些流行且有用的RSS客户端。

Windows RSS客户端/软件 (Windows RSS Clients/Software)

Below you can find the best RSS clients and software for Windows operating systems like Windows 7,8,10 and Windows Servers.

在下面,您可以找到适用于Windows操作系统(例如Windows 7,8,10和Windows Servers)的*佳RSS客户端和软件。

  • Omea Readers奥美亚读者
  • Nextgen Reader下一代阅读器
  • RSSOwlRSSOwl
  • NewsFlow新闻流
  • Veen Feed ReaderVeen Feed阅读器
  • QuiteRSS相当RSS

Linux RSS客户端/软件 (Linux RSS Client/Software)

Below you can find the best RSS clients and software for Linux distributions Ubuntu, Debian, Mint, Kali, Fedora, CentOS, RHEL, OpenSUSE.

在下面,您可以找到适用于Linux发行版的*佳RSS客户端和软件,包括Ubuntu,Debian,Mint,Kali,Fedora,CentOS,RHEL,OpenSUSE。

  • RSSowl接收器
  • TinyTiny RSSTinyTiny RSS
  • Akregator调节器
  • FreshRSSFreshRSS
  • Selfoss塞尔福斯
  • QuiteRSS相当RSS

MacOSX RSS客户端/软件 (MacOSX RSS Client/Software)

Below you can find the best RSS clients and software for MacOS X.

您可以在下面找到适用于MacOS X的*佳RSS客户端和软件。

  • Reeder里德
  • News Explorer新闻浏览器
  • Safari苹果浏览器
  • Vienna维也纳

Android RSS客户端/软件(Android RSS Client/Software)

Below you can find the best RSS clients and software for Android smartphones and devices.

您可以在下面找到适用于Android智能手机和设备的*佳RSS客户端和软件。

  • Aggregator聚合器
  • Feedly饲料
  • Flipboard翻板
  • Flym飞
  • Inoreader阅读器

iOS / iPhone / iPad RSS客户端/软件(iOS/iPhone/iPad RSS Client/Software)

Below you can find the best RSS clients and software for iOS, iPhone, iPad devices.

您可以在下面找到适用于iOS,iPhone,iPad设备的*佳RSS客户端和软件。

  • Feedly饲料
  • Unread未读
  • Lire里拉
  • Fiery Feeds火热的饲料
  • Inoreader阅读器

Web RSS客户端/软件(Web RSS Client/Software)

Web RSS clients or software is more practical and portable then other platforms RSS clients. Web RSS clients can be used from different computers and phones easily without need to install software. Perfonally I prefer web RSS clients for the Windows and Linux operating systems.

与其他平台的RSS客户端相比,Web RSS客户端或软件更加实用和可移植。 可以从不同的计算机和电话轻松使用Web RSS客户端,而无需安装软件。 我喜欢在Windows和Linux操作系统上使用Web RSS客户端。

  • DiggReaderDiggReader
  • Feedreader OnlineFeedreader在线
  • CommaFeed逗号进给
  • FlowReaderFlowReader
  • Feedly饲料
  • Inoreader阅读器
  • FeedspotFeedspot
  • The Old Reader老读者

Feedly RSS客户端(Feedly RSS Client)

I use RSS feeds heavily in my daily business and social life. I have tried different types and platform RSS clients the most convenient and user-friendly RSS client is Feedly. Feedly provides both mobile applications and web interfaces. Feedly provides integrated and synced experience where already read updates on the mobile sync to the web interface. Below you can see the web interface of the Feedly.

在我的日常业务和社交生活中,我大量使用RSS feed。 我尝试了不同类型和平台的RSS客户端,*方便和用户友好的RSS客户端是Feedly。 Feedly提供了移动应用程序和Web界面。 Feedly提供集成和同步的体验,其中已经读取了移动设备上的更新同步到Web界面。 在下面,您可以看到Feedly的Web界面。

%title插图%num
Feedly RSS Client
Feedly RSS客户端

The left sidebar provides RSS feed categories which are very useful to separate different topics. Also, new feeds can be added easily with the + sign. Another useful feature of Feedly is the RSS feed can be found without providing the exact feed URL by just typing the topic or web site domain.

左侧边栏提供RSS提要类别,这对于分隔不同主题非常有用。 此外,可以使用+符号轻松添加新的供稿。 Feedly的另一个有用功能是,只需键入主题或网站域即可找到RSS feed,而无需提供确切的feed URL。

%title插图%num

翻译自: https://www.poftut.com/what-is-rss-really-simple-syndication/

如何简单的生成rss地址

如何使用“ fuser”来匹配用户和流程

fuser is used to identify processes using files or sockets. There are alternatives for this tool but this tool is simple according to others. In this tutorial we will look usage of the fuser command.

热熔器用于识别使用文件或套接字的进程。 此工具有其他选择,但根据其他工具,该工具很简单。 在本教程中,我们将研究fuser命令的用法。

使用目录查看进程 (View Processes Using A Directory)

The processes using specified directory can be see with -v argument like below.

可以使用-v参数查看使用指定目录的进程,如下所示。

$ fuser -v .
  • USER as username

    USER作为用户名

  • PID specified process id

    PID指定的进程ID

  • ACCESS provides file type where

    访问提供文件类型,其中

    • c current directory

      c当前目录

    • e executable being run

      一个可执行文件正在运行

    • f open file

      f打开文件

    • F open file for writing

      F打开文件进行写入

    • r root directory

      r根目录

    • m shared library

      m共享库

    ACCESS provides file type where

    访问提供文件类型,其中

  • COMMAND is running command

    COMMAND正在运行命令

View Processes Using A Directory
View Processes Using A Directory
使用目录查看进程

使用根目录查看进程(View Process Using Root Directory)

In previous example we have examined the current working directory but we can also specify the directory we want to inspect and list related processes. In this example we will list processes using the / root directory.

在前面的示例中,我们检查了当前的工作目录,但我们也可以指定要检查的目录并列出相关进程。 在此示例中,我们将使用/根目录列出进程。

$ fuser -v -m /
View Process Using Root Directory
View Process Using Root Directory
使用根目录查看进程

杀死访问给定文件的进程(Kill Process Which Access To Given File)

fuser power is hidden its ability to kill process which access given file. We will provide the file path and kill process which access read or write for given path. We will use -kill option.

fuser电源隐藏了其杀死访问给定文件的进程的能力。 我们将提供文件路径并终止访问给定路径的读写的进程。 我们将使用-kill选项。

$ fuser --kill /home/ismail/test.txt

杀死以交互方式访问给定文件的进程 (Kill Process Which Access To Given File Interactively)

If we are not sure wheter we should kill process and decide to ask before killing we can use --interactive or -i option like below.

如果不确定,我们应该终止进程并决定在终止之前询问,我们可以使用--interactive-i选项,如下所示。

$ fuser -i --kill /home/ismail/test.txt

如何使用“ fuser”匹配用户和流程信息图 (How to Use ‘fuser’ to Match User and Process Infographic)

How to Use 'fuser' to Match User and Process Infographic
How to Use ‘fuser’ to Match User and Process Infographic

如何使用Owasp Vbscan?

VBscan is a security tool used to scan and find vulnerabilities in vBulletin forums. As we know these type of software have a lot of vulnerabilities to exploit and attackers use these very good. Credits goes to Mohammed Reza Espargham

VBscan是一个安全工具,用于扫描和发现vBulletin论坛中的漏洞。 众所周知,这类软件有很多漏洞可以利用,攻击者非常好地使用它们。 归功于Mohammed Reza Espargham

安装 (Install)

Installing Vbscan is just getting perl code from github.

安装Vbscan只是从github获取perl代码。

  1. $ git clone https://github.com/rezasp/vbscan && cd vbscan
  2. Cloning into ‘vbscan’
  3. remote: Counting objects: 166, done.
  4. remote: Compressing objects: 100% (3/3), done.
  5. remote: Total 166 (delta 0), reused 0 (delta 0), pack-reused 163
  6. Receiving objects: 100% (166/166), 75.03 KiB | 0 bytes/s, done.
  7. Resolving deltas: 100% (76/76), done.
  8. Checking connectivity… done.

使用Vbscan开始扫描 (Start Scan with Vbscan)

Starting is easy as just one command and there is no much alternative options. For security reasons we will use domain name as abc.org but the actual site is real.

只需一个命令即可轻松启动,并且没有太多其他选择。 出于安全原因,我们将域名用作abc.org,但实际站点是真实的。

$ perl vbscan.pl "http://forum.abc.org/"

It will try some exploits and output the findings to the terminal and as html.

它将尝试一些漏洞利用并将发现结果输出到终端并以html格式输出。

介绍 (Intro)

Details about the Vbscan

有关Vbscan的详细信息

  1.  _  _  ____  ___   ___    __    _  _
  2. ( \/ )(  _ \/ __) / __)  /__\  ( \( )
  3.  \  /  ) _ <\__ \( (__  /(__)\  )  (
  4.   \/  (____/(___/ \___)(__)(__)(_)\_)
  5.                (1337.today)
  6.    –=[OWASP VBScan
  7.    +—++—==[Version : 0.1.7
  8.    +—++—==[Update Date : [2016/10/15]
  9.    +—++—==[Author : Mohammad Reza Espargham
  10.    +—++—==[Website : www.reza.es
  11.    –=[Code name : Larry Wall
  12.     @OWASP_VBScan , @rezesp , @OWASP
  13. Processing http://forum.abc.org/ …

防火墙状态 (Firewall Status)

This part will provide information about VBulletin based Firewall existince

这部分将提供有关基于VBulletin的防火墙存在的信息

  1. [+] Detecting Vbulletin based Firewall
  2. [++] No known firewall detected

vBulletin版本 (vBulletin Version)

The vBulletin version is 3.8.9

vBulletin版本是3.8.9

  1. [+] Detecting vBulletin Version
  2. [++] vBulletin 3.8.9

漏洞 (Vulnerabilities)

This part will provide information about CVE based vulnerabilities

此部分将提供有关基于CVE的漏洞的信息

  1. [++] vBulletin CVE-2016-6483 Server Side Request Forgery Security Bypass Vulnerability
  2. EDB : http://www.exploit-db.com/exploits/40225/
  3. http://www.securityfocus.com/bid/92350
  4. http://legalhackers.com/advisories/vBulletin-SSRF-Vulnerability-Exploit.txt

执照 (LICENSE)

License information

许可证信息

  1. [+] vBulletin LICENSE Check
  2. [++] vBulletin LICENSE file : http://forum.abc.org//LICENSE

Apache信息 (Apache Info)

The web server running VBulletin web applications

运行VBulletin Web应用程序的Web服务器

  1. [+] Checking apache info/status files
  2. [++] Readable info/status files are not found

管理员控制面板 (Admin Control Panel)

Admin and remote access pages information is provided.

提供了管理员和远程访问页面信息。

  1. [+] Checking admincp/modcp path
  2. [++] admincp Found
  3. http://forum.abc.org//admincp
  4. [++] modcp Found
  5. http://forum.abc.org//modcp

Validator.php (Validator.php)

Checks if validator.php exists

检查validator.php存在

  1. [+] Checking validator.php
  2. [++] validator.php is not found

Robots.txt (Robots.txt)

Checking robots.txt file which is used by site crawling bots. This can provide interesting and valuable information.

正在检查网站抓取漫游器使用的robots.txt文件。 这可以提供有趣且有价值的信息。

  1. [+] Checking robots.txt existing
  2. [++] robots.txt is found
  3. path : http://forum.abc.org//robots.txt   
  4. Interesting path found from robots.txt
  5. http://forum.abc.org//  
  6. http://forum.abc.org//  
  7. http://forum.abc.org//  
  8. http://forum.abc.org//admincp  
  9. http://forum.abc.org//ajax.php  
  10. http://forum.abc.org//announcement.php  
  11. http://forum.abc.org//attachment.php  
  12. http://forum.abc.org//calendar.php  
  13. http://forum.abc.org//cron.php  
  14. http://forum.abc.org//editpost.php  
  15. http://forum.abc.org//external.php  
  16. http://forum.abc.org//forumdisplay.php  
  17. http://forum.abc.org//global.php  
  18. http://forum.abc.org//image.php  
  19. http://forum.abc.org//includes  
  20. http://forum.abc.org//infraction.php  
  21. http://forum.abc.org//inlinemod.php  
  22. http://forum.abc.org//joinrequests.php  
  23. http://forum.abc.org//login.php  
  24. http://forum.abc.org//memberlist.php  
  25. http://forum.abc.org//member.php  
  26. http://forum.abc.org//misc.php                                                                                                       
  27. http://forum.abc.org//modcp                                                                                                          
  28. http://forum.abc.org//moderation.php                                                                                                 
  29. http://forum.abc.org//moderator.php                                                                                                  
  30. http://forum.abc.org//newattachment.php                                                                                              
  31. http://forum.abc.org//newreply.php                                                                                                   
  32. http://forum.abc.org//newthread.php                                                                                                  
  33. http://forum.abc.org//online.php                                                                                                     
  34. http://forum.abc.org//payment_gateway.php                                                                                            
  35. http://forum.abc.org//payments.php                                                                                                   
  36. http://forum.abc.org//poll.php                                                                                                       
  37. http://forum.abc.org//postings.php                                                                                                   
  38. http://forum.abc.org//printthread.php                                                                                                
  39. http://forum.abc.org//private.php                                                                                                    
  40. http://forum.abc.org//profile.php                                                                                                    
  41. http://forum.abc.org//register.php                                                                                                   
  42. http://forum.abc.org//report.php                                                                                                     
  43. http://forum.abc.org//reputation.php                                                                                                 
  44. http://forum.abc.org//search.php                                                                                                     
  45. http://forum.abc.org//sendmessage.php                                                                                                
  46. http://forum.abc.org//showgroups.php                                                                                                 
  47. http://forum.abc.org//showpost.php                                                                                                   
  48. http://forum.abc.org//signaturepics                                                                                                  
  49. http://forum.abc.org//subscription.php                                                                                               
  50. http://forum.abc.org//threadrate.php                                                                                                 
  51. http://forum.abc.org//usercp.php                                                                                                     
  52. http://forum.abc.org//usernote.php

c99 Xml外壳 (c99 Xml Shell)

This is an old vulnerability

这是一个旧漏洞

  1. [+] Checking c99 xml shell in admincp/subscriptions.php
  2. [++] c99 xml shell is Not Found

备份文件 (Backup Files)

Can we access the backup files. This can occur  in misconfiguration situations.

我们可以访问备份文件吗? 这可能在配置错误的情况下发生。

  1. [+] Finding common backup files name
  2. [++] Backup files are not found

日志文件 (Log Files)

Can we access the logs files

我们可以访问日志文件吗

  1. [+] Finding common log files name
  2. [++] error log is not found

配置文件 (Config Files)

We have found config files where database username and password exists

我们发现存在数据库用户名和密码的配置文件

  1. [+] Checking config.php.x for disclure config file
  2. [++] Readable config file is found
  3. config file path : http://forum.abc.org//includes/config.php.new
  4. Readable config file is found
  5. config file path : http://forum.abc.org//includes/config.php.old

RCE后门 (RCE Backdoor)

Are the any remote code execution backdoor?

是否有任何远程执行代码的后门?

  1. [+] Checking faq.php RCE backdoor
  2. [++] Remote Code Execute backdoor not found

LFI (LFI)

This check is done whether to learn there is Local File Inclusion vulnerability

是否检查是否存在本地文件包含漏洞会进行此检查

  1. [+] Checking vBSEO 3.x LFI (Local File Inclusion) vulnerability
  2. [++] vbseo.php LFI is not vulnerable

SQL注入 (Sql Injection)

We will check the arcade.php if there is an sql injection vulnerability.

我们将检查arcade.php是否存在sql注入漏洞。

  1. [+] Checking arcade.php SQLI Vulnerability
  2. [++] arcade.php not found
LEARN MORE  What Is A Firewall and How Its Work?
了解更多什么是防火墙及其工作方式?

如何使用Owasp Vbscan? 信息移植 (How To Use Owasp Vbscan? Infografic)

How To Use Owasp Vbscan? Infografic
How To Use Owasp Vbscan? Infografic

html文本框颜色修改_如何更改HTML文本颜色?

html文本框颜色修改

Most of the HTML web pages contain text in order to provide information. HTML Text may contains instructions, explanation etc. But in order to make the reading experience better, the HTML text is generally formatted with different styling techniques, and coloring or changing text color is one of them. In this tutorial, we will explain how to change the HTML Text color in different ways.

大多数HTML网页包含文本以提供信息。 HTML文本可能包含说明,解释等。但是,为了使阅读体验更好,通常使用不同的样式技术来格式化HTML文本,其中的一种是上色或更改文本颜色。 在本教程中,我们将说明如何以不同方式更改HTML文本颜色。

为什么要更改HTML文本颜色? (Why Change HTML Text Color?)

Before starting to explain how to change HTML Text color, we will list some use cases and benefits changing text color.

在开始解释如何更改HTML文本颜色之前,我们将列出一些用例和更改文本颜色的好处。

  • Express an important part of the text or information.表达文本或信息的重要部分。
  • Mark important keywords in a text and made it easier to find.在文本中标记重要的关键字,以便于查找。
  • Style notes to differentiate from normal text.样式注释与普通文本有所区别。
  • Make warnings more visible and readable.使警告更清晰可见。

使用样式属性更改HTML颜色 (Change HTML Color With Style Attribute)

The most popular and easy way to change HTML text color is to use the style attribute of different HTML tags. In this example, we will change the <p> tag style attribute with the color value by setting the color we want to set.

更改HTML文本颜色的*流行,*简单的方法是使用不同HTML标记的style属性。 在此示例中,我们将通过设置要设置的颜色来使用color值更改<p>标签样式属性。

  1. <html>
  2. <body>
  3. <p>I am normal which means black</p>
  4. <p style=“color:red;”>I am RED</p>
  5. <p style=“color:blue;”>I am BLUE</p>
  6. <p style=“color:yellow”>I am YELLOW</p>
  7. <p style=“color:purple”>I am PURPLE</p>
  8. <p style=“color:brown”>I am BROWN</p>
  9. </body>
  10. </html>
%title插图%num
Change HTML Color With Style Attribute
使用样式属性更改HTML颜色

更改特定标记或块HTML颜色(Change HTML Color For Specific Tag or Block)

We can set the HTML color for different tags or blocks. CSS class or selectors can be used to make a group of HTML elements text color.

我们可以为不同的标签或块设置HTML颜色。 CSS类或选择器可用于使一组HTML元素成为文本颜色。

  1. <html>
  2. <head>
  3. <style>
  4. p {
  5. color: blue;
  6. }
  7. h1 {
  8. color: green;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <p>I am normal which means black</p>
  14. <h1>I am a Header</h1>
  15. </body>
  16. </html>
%title插图%num
Change HTML Color For Specific Tag or Block
更改特定标记或块HTML颜色

HTML颜色格式(HTML Color Formats)

HTML Colors can be definedin different formats. Most popular HTML color formats are Hex, Color Name, RGB and HSL formats.

可以用不同的格式定义HTML颜色。 *受欢迎HTML颜色格式是十六进制,颜色名称,RGB和HSL格式。

LEARN MORE  HTML Bold Tag Usage and Examples
了解更多HTML粗体标记的用法和示例

Hex Color Code consist of hexadecimal value where the color can be expressed precisely. As an example ” #FF0000″ defines the red color.

Hex Color Code由十六进制值组成,可以精确表示颜色。 例如,“#FF0000”定义红色。

Color Name is the most used, popular, and human-friendly name where the exact color name is provided like red, cyan, black, etc.

Color Name是*常用,*受欢迎和人性化的名称,其中提供了准确的颜色名称,例如红色,青色,黑色等。

RGB Color Value is similar to the hex color code where 3 values are provided to define the color it is like a color palette where red, green, and blue are merged together in order to create other colors.

RGB Color Value类似于十六进制颜色代码,其中提供了3个值来定义颜色,就像将红色,绿色和蓝色合并在一起以创建其他颜色的调色板一样。

%title插图%num
HTML Color Formats
HTML颜色格式

使用十六进制颜色代码更改HTML颜色(Change HTML Color With Hex Color Codes)

We can change the HTML text color by using Hex color code. We will just use previously defined techniques to set color.

我们可以使用十六进制颜色代码更改HTML文本颜色。 我们将只使用先前定义的技术来设置颜色。

  1. <html>
  2. <body>
  3. <p>I am normal which means black</p>
  4. <p style=“color:#FF0000;”>I am RED</p>
  5. <p style=“color:#0066ff;”>I am BLUE</p>
  6. <p style=“color:#ffff00”>I am YELLOW</p>
  7. <p style=“color:#663300”>I am BROWN</p>
  8. </body>
  9. </html>
%title插图%num
Change HTML Color With Hex Color Codes
使用十六进制颜色代码更改HTML颜色

使用颜色名称更改HTML颜色(Change HTML Color With Color Names)

Color names are the easiest way to define and change the HTML text color. Actually we have already provided examples to use color names for HTML text. Please take a look “Change HTML Color With Style Attribute” section.

颜色名称是定义和更改HTML文本颜色的*简单方法。 实际上,我们已经提供了将颜色名称用于HTML文本的示例。 请查看“使用样式属性更改HTML颜色”部分。

使用RGB颜色值更改HTML颜色 (Change HTML Color With RGB Color Values)

RBG Color values are another way to define different colors with different dark and light variations.

RBG颜色值是定义具有不同暗和亮变化的不同颜色的另一种方法。

  1. <html>
  2. <body>
  3. <p>I am normal which means black</p>
  4. <p style=“color:rgb(255, 0, 0);”>I am RED</p>
  5. <p style=“color:rgb(0, 102, 255);”>I am BLUE</p>
  6. <p style=“color:rgb(255, 255, 0)”>I am YELLOW</p>
  7. <p style=“color:rgb(102, 51, 0)”>I am BROWN</p>
  8. </body>
  9. </html>
%title插图%num
Change HTML Color With RGB Color Values
使用RGB颜色值更改HTML颜色

使用HSL颜色值更改HTML颜色(Change HTML Color With HSL Color Values)

Even not so popular HSL Color Values can be used to set HTML Text color. HSL looks similar to the RGB where some values are provided to define a color with more dark or light.

即使不是很流行的HSL颜色值也可以用来设置HTML文本颜色。 HSL看起来类似于RGB,其中提供了一些值以定义更暗或更亮的颜色。

  1. <html>
  2. <body>
  3. <p>I am normal which means black</p>
  4. <p style=“color:hsl(0, 100%, 50%);”>I am RED</p>
  5. <p style=“color:hsl(216, 100%, 50%);”>I am BLUE</p>
  6. <p style=“color:hsl(60, 100%, 50%)”>I am YELLOW</p>
  7. <p style=“color:hsl(30, 100%, 20%)”>I am BROWN</p>
  8. </body>
  9. </html>
%title插图%num

如何在Bash中运行并行作业/进程/程序

We generally run jobs in bash in serial order. Serial order means one command runs and after completion other command starts. There is another way to run jobs which are named parallel. Running parallel means multiple jobs run at the same time side by side.

我们通常以连续顺序在bash中运行作业。 串行命令表示一个命令运行,完成后另一个命令启动。 还有另一种运行并行作业的方法。 并行运行意味着多个作业同时并发运行。

将工作发送到后台 (Send Job To The Background)

We will start with a simple example where two ping commands will be run in the background at the same time. We will add & to the end of each command. We will ping two domain names google.com and poftut.com.

我们将从一个简单的示例开始,其中两个ping命令将在后台同时运行。 我们将在每个命令的末尾添加& 。 我们将ping两个域名google.compoftut.com 。

$ ping google.com & ping poftut.com & 
Send Job To The Background 
Send Job To The Background
将工作发送到后台

We can see from the output that after the command is issued we have two lines which show the commands processes and their related PID and there is also information about the background jobs in square brackets job id. Both commands will start in the background and will resume up to kill operation or exit.

从输出中我们可以看到,发出命令后,我们有两行显示了命令进程及其相关的PID,并且在方括号job id中还包含有关后台作业的信息。 这两个命令都将在后台启动,并将继续执行以终止操作或退出。

等待运行新作业 (Wait Before Running New Job)

In some cases, we may need to wait before running multiple parallel jobs. We can use the bash wait function to wait for finish previously started jobs. In this example, we will run jobs j1 and j2 before running j3 . But we will wait to complete jobs j1 and j2 before running j3job in the background.

在某些情况下,我们可能需要等待才能运行多个并行作业。 我们可以使用bash wait功能来等待先前启动的作业完成。 在此示例中,我们将在运行j3之前运行作业j1j2 。 但是我们将等待在后台运行j3作业之前完成作业j1j2 。

  1. j1 &
  2. j2 &
  3. wait
  4. j3 &

GNU并行 (GNU Parallel)

GNU Parallel is a very useful tool that can start multiple jobs in a parallel way. We will use the command parallel and specify the jobs we want to run after ::: . In this example, we will run ping poftut.com and ping google.com commands in parallel which will output the same time.

GNU Parallel是一个非常有用的工具,可以以并行方式启动多个作业。 我们将使用parallel命令,并在:::之后指定要运行的作业。 在此示例中,我们将并行运行ping poftut.comping google.com命令,它们将输出相同的时间。

$ parallel ::: "ping poftut.com" "ping google.com"

如何在Bash Infographic中运行并行作业/流程/程序 (How To Run Parallel Jobs/Process/Programs in Bash Infographic)

How To Run Parallel Jobs/Process/Programs in Bash Infographic
How To Run Parallel Jobs/Process/Programs in Bash Infographic

更改默认ssh端口_什么是默认SSH端口以及如何更改它?

更改默认ssh端口

SSH or Secure Shell is a very popular remote connection and management protocol used to manage different types of devices. SSH can be used to manage Linux, Ubuntu, CentOS, Cisco, Fortinet, and a lot more devices. As a remove port SSH is accessed via the network using TCP 22 port.

SSH或Secure Shell是一种非常流行的远程连接和管理协议,用于管理不同类型的设备。 SSH可用于管理Linux,Ubuntu,CentOS,Cisco,Fortinet和许多其他设备。 作为删除端口时,可以使用TCP 22端口通过网络访问SSH。

SSH默认端口为TCP 22 (SSH Default Port Is TCP 22)

The default port for SSH is TCP 22. TCP is important because traditionally SSH works over a reliable connection that is provided via TCP, not UDP. SSH port 22 is registered in 1995 by Tatu Ylonen from the IANA or Internet Assigned Numbers Authority. Well SSH is designed to replaced both telnet and FTP. Telnet is using port number 21 and Ftp is using port number 23. Port number 22 was free at that time and as an alternative to Telnet and FTP, SSH is assigned to the TCP 22. SSH designed and standardized with the RFC 791, RFC 792, RFC 793.

SSH的默认端口是TCP22。TCP很重要,因为传统上SSH在通过TCP(而不是UDP)提供的可靠连接上工作。 SSH端口22由IANA或互联网号码分配机构(Internet Assigned Numbers Authority)的Tatu Ylonen于1995年注册。 SSH旨在取代telnet和FTP。 Telnet使用端口号21,而Ftp使用端口号23。端口22当时是空闲的,并且作为Telnet和FTP的替代,SSH被分配给TCP22。SSH由RFC 791,RFC 792设计和标准化。 ,RFC 793。

连接默认SSH端口 (Connect Default SSH Port)

SSH port TCP 22 can be connected by using different SSH clients and tools. As an example Linux ssh command can be used to connect SSH TCP 22 port with the following usage. We will also provide the user name ismail and hostname/IP address.

可以使用不同的SSH客户端和工具连接SSH端口TCP 22。 例如,可以使用Linux ssh命令以以下用法连接SSH TCP 22端口。 我们还将提供用户名ismail和主机名/ IP地址。

$ ssh[email protected]
%title插图%num
Connect Default SSH Port
连接默认SSH端口

Alternatively, we can specify the port number explicitly by using the -p option and providing the port number. In the following example, we will connect to port number 22 but we can use different port numbers too.

或者,我们可以使用-p选项并提供端口号来显式指定端口号。 在下面的示例中,我们将连接到端口号22,但是我们也可以使用其他端口号。

$ ssh -p 22[email protected]

更改SSH端口 (Change SSH Port)

For Linux systems like Ubuntu, Debian, CentOS, Kali, Fedora, RHEL can run the SSH server. The SSH server can be installed with the following commands for different systems.

对于Linux系统,例如Ubuntu,Debian,CentOS,Kali,Fedora,RHEL可以运行SSH服务器。 可以使用以下命令为不同的系统安装SSH服务器。

LEARN MORE  How To Change OpenSSH SSH Server Port Number In Linux?
了解更多如何在Linux中更改OpenSSH SSH服务器端口号?

Debian, Mint, Kali, Ubuntu

Debian,Mint,Kali,Ubuntu

$ sudo apt install openssh-server

Fedora, CentOS, RHEL

Fedora,CentOS,RHEL

$ sudo dnf install openssh-server

The SSH server configuration is stored in the /etc/ssh/sshd_config file. We will open this file with root privileges with the following command.

SSH服务器配置存储在/etc/ssh/sshd_config文件中。 我们将使用以下命令以root特权打开此文件。

$ sudo nano /etc/ssh/sshd_config

We change the Port configuration into different numbers like 2222. If we set # before the configuration it will be a comment and not effective anymore.

我们将Port配置更改为不同的数字,例如2222。如果在配置之前设置#,它将成为注释,并且不再有效。

%title插图%num
SSH Server Configuration
SSH服务器配置

After making SSH port change in order to make new configuration effective we will restart the SSH server which will reload new configuration.

更改SSH端口以使新配置生效后,我们将重新启动SSH服务器,这将重新加载新配置。

$ sudo systemctl restart ssh

连接非默认SSH端口 (Connect Non Default SSH Port)

By default, the ssh command will try to connect the default SSH port. But in some cases, we may need to specify different port than the default. We will use the -p option and provide the port number we want to connect.

默认情况下,ssh命令将尝试连接默认的SSH端口。 但是在某些情况下,我们可能需要指定与默认端口不同的端口。 我们将使用-p选项并提供我们要连接的端口号。

$ ssh -p 2222[email protected]
%title插图%num
Connect Non Default SSH Port
连接非默认SSH端口

在Ubuntu上安装XFCE Desktop

Linux is famous for its desktop environments and offers a lot of different types and style desktop alternatives. From KDE to Openbox it can be used for different needs. Xfce is one of my favorite desktop environment. Its features, performance, and hardware needs are optimum for a lot of use cases.

Linux以其桌面环境而闻名,并提供了许多不同类型和样式的桌面替代方案。 从KDE到Openbox,它可以用于不同的需求。 Xfce是我*喜欢的桌面环境之一。 它的功能,性能和硬件需求对于许多用例都是*佳的。

You can get screenshots of Xfce from here. Xfce consists of different components.

您可以从此处获取Xfce的屏幕截图。 Xfce由不同的组件组成。

  • Windows Manager: Manages placement of windows on the desktopWindows Manager:管理Windows在桌面上的放置
  • Desktop Manager: Sets background image and icons桌面管理器:设置背景图像和图标
  • Panel: List open windows, application shortcuts面板:列出打开的窗口,应用程序快捷方式
  • Session Manager: Controls login and power会话管理器:控制登录和电源
  • File Manager: As you guess ?文件管理器:您猜?

在Ubuntu上安装Xfce (Install Xfce on Ubuntu)

Xfce is one package in ubuntu and can be installed just like below.

Xfce是ubuntu中的一个软件包,可以如下安装。

$ sudo apt install xfce4

Downloading packages and setting up them require some time. It is about our internet connection and hard disk write speed.

下载软件包并进行设置需要一些时间。 这与我们的互联网连接和硬盘写入速度有关。

设定桌面 (Setup Desktop)

After the installation of the packages is completed we will log in to the XFCE session for the first time. XFCE will ask us whether we want to use the default config or an empty panel.

软件包安装完成后,我们将首次登录XFCE会话。 XFCE会询问我们是要使用默认配置还是空白面板。

Install Xfce on Ubuntu
Install Xfce on Ubuntu
在Ubuntu上安装Xfce

安装Xfce的NetLoad插件 (Install NetLoad Plugin For Xfce)

What makes these Window Manager funny is some useful plugins. We want to add some plugins to the panel there is a plugin named netload to monitor network load. We will install this plugin with the following command.

使这些Window Manager有趣的是一些有用的插件。 我们要向面板添加一些插件,其中有一个名为netload的插件来监视网络负载。 我们将使用以下命令安装此插件。

$ sudo apt-get install xfce4-netload-plugin -y

将菜单项添加到Xfce面板 (Add Menu Item To Xfce Panel)

We will right-click to the panel and select the Panel. We will see a menu where we will click to the Add New Items.... After installing the package open Add New Items menu like below.

我们将右键单击面板,然后选择Panel 。 我们将看到一个菜单,在其中单击“ Add New Items... 。 安装软件包后,打开“添加新项”菜单,如下所示。

Install NetLoad Plugin For Xfce
Install NetLoad Plugin For Xfce
安装适用于Xfce的NetLoad插件

After clicking Add New Items you will see a new menu and filter Network monitor like below. We will type the net part where related items will be listed. We can see that Network Monitor is a panel items were network-related information and statistics are shown in the Panel.

单击添加新项后,您将看到一个新菜单并过滤网络监视器,如下所示。 我们将键入将列出相关项目的net零件。 我们可以看到Network Monitor是一个面板项目,与网络相关的信息和统计信息显示在面板中。

Add Network Monitor
Add Network Monitor
添加网络监视器

Select Network Monitor and click add. And here is the result Network Monitor will be added to the panel.

选择网络监视器,然后单击添加。 这是将网络监视器添加到面板中的结果。

LEARN MORE  How To Install and Access TightVNC Remote Desktop In Linux?
了解更多如何在Linux中安装和访问TightVNC远程桌面?

列出Xfce应用程序 (Listing Xfce Applications)

There is some XFCE related application like a terminal. Of course, we can use all other applications but these applications are more integrated and need less hardware.

有一些XFCE相关的应用程序,例如终端。 当然,我们可以使用所有其他应用程序,但是这些应用程序集成度更高,所需的硬件更少。

$ apt-cache search xfce4 
Listing Xfce Applications
Listing Xfce Applications
列出Xfce应用程序

If we want to search more specifically for plugins we can use follow apt command.

如果我们想更具体地搜索插件,可以使用follow apt命令。

$ apt search xfce4 plugin
Listing Xfce Plugins
Listing Xfce Plugins
清单Xfce插件

As we can see plugins like diskperf, dict dictionary have listened and non-related packages are eliminated.

如我们所见,像diskperf,dict字典这样的插件已被监听,并且不相关的软件包被淘汰了。

在Ubuntu信息图表上安装XFCE桌面 (Installing XFCE Desktop on Ubuntu Infographic)

Installing XFCE Desktop on Ubuntu Infographic

如何在Ubuntu上设置Kubernetes 1.4

Kubernetes is production grade container orchestration tool which automates container deployment, scaling and management. It is a google product that is used at google internally. Kubernetes newer outgrows because it is flexible. Kubernetes is opensource so there is no restriction, fees etc. Some of companies that use kubernetes is Pearson, Ebay, Wikimedia. Kubernetes have the ability scale applications on the fly.

Kubernetes是生产级容器编排工具,可自动执行容器部署,扩展和管理。 这是在Google内部使用的Google产品。 Kubernetes较新,因为它很灵活。 Kubernetes是开源的,因此没有任何限制,费用等。使用kubernetes的一些公司是Pearson,Ebay,Wikimedia。 Kubernetes具有动态扩展能力的应用程序。

安装Kubernetes (Install Kubernetes)

We start by downloading Google Repository keys for Ubuntu and adding them to key rings.

我们首先下载适用于Ubuntu的Google Repository密钥并将其添加到密钥环中。

  1. $ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add
  2.  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  3.                                 Dload  Upload   Total   Spent    Left  Speed
  4. 100   663  100   663    0     0    775      0 –:–:– –:–:– –:–:–   776
  5. OK

We add required repository to our sources.list

我们将所需的存储库添加到我们的sources.list

  1. $ sudo cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
  2. > deb http://apt.kubernetes.io/ kubernetes-xenial main
  3. > EOF

Update our application list to get kubernetes info.

更新我们的应用程序列表以获取kubernetes信息。

  1. $ sudo apt-get update
  2. Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
  3. Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease

And install kubernetes packages from google repositories.

并从Google存储库安装kubernetes软件包。

$ sudo apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni

We install all other systems those will join to the kubernetes cluster. We implement same command described in this kubernetes installation section.

我们将安装所有其他将加入kubernetes集群的系统。 我们执行此kubernetes安装部分中描述的相同命令。

初始化Kubernetes集群 (Initialize Kubernetes Cluster)

We will initialize the cluster head with the following command.

我们将使用以下命令初始化簇头。

  1. $ sudo kubeadm init
  2. <master/tokens> generated token: “3e313d.c5d75f78f4f9db27”
  3. <master/pki> created keys and certificates in “/etc/kubernetes/pki”
  4. <util/kubeconfig> created “/etc/kubernetes/kubelet.conf”
  5. <util/kubeconfig> created “/etc/kubernetes/admin.conf”
  6. <master/apiclient> created API client configuration
  7. <master/apiclient> created API client, waiting for the control plane to become ready
  8. <master/apiclient> all control plane components are healthy after 46.303552 seconds
  9. <master/apiclient> waiting for at least one node to register and become ready
  10. <master/apiclient> first node is ready after 3.502990 seconds
  11. <master/discovery> created essential addon: kube-discovery, waiting for it to become ready
  12. <master/discovery> kube-discovery is ready after 38.002656 seconds
  13. <master/addons> created essential addon: kube-proxy
  14. <master/addons> created essential addon: kube-dns
  15. Kubernetes master initialised successfully!
  16. You can now join any number of machines by running the following on each node:
  17. kubeadm join –token 3e313d.c5d75f78f4f9db27 192.168.122.13

Our second system named poftut5. We have installed kubernetes as stated before. We will run “kubeadm join –token 3e313d.c5d75f78f4f9db27 192.168.122.137 ” which is produced by poftut4.

我们的第二个系统名为poftut5。 如前所述,我们已经安装了kubernetes。 我们将运行由poftut4生成的“ kubeadm join –令牌3e313d.c5d75f78f4f9db27 192.168.122.137 ” 。

  1. $ sudo kubeadm join –token 3e313d.c5d75f78f4f9db27 192.168.122.137
  2. <util/tokens> validating provided token
  3. <node/discovery> created cluster info discovery client, requesting info from “http://192.168.122.137:9898/cluster-info/v1/?token-id=3
  4. e313d”
  5. <node/discovery> cluster info object received, verifying signature using given token
  6. <node/discovery> cluster info signature and contents are valid, will use API endpoints [https://192.168.122.137:443]
  7. <node/csr> created API client to obtain unique certificate for this node, generating keys and certificate signing request
  8. <node/csr> received signed certificate from the API server, generating kubelet configuration
  9. <util/kubeconfig> created “/etc/kubernetes/kubelet.conf”
  10. Node join complete:
  11. * Certificate signing request sent to master and response
  12.  received.
  13. * Kubelet informed of new secure connection details.
  14. Run ‘kubectl get nodes’ on the master to see this machine join.

On poftut4 we will check if poftut5 is joined to the cluster.

在poftut4上,我们将检查poftut5是否已加入集群。

  1. $ kubectl get nodes
  2. NAME      STATUS    AGE
  3. poftut4   Ready     21m
  4. poftut5   Ready     2m

Good is seems everything is OK. We can see our two systems are joined to the kubernetes cluster  and their status is Ready.

好,似乎一切都还可以。 我们可以看到我们的两个系统已加入kubernetes集群,它们的状态为“就绪”。

LEARN MORE  What Is CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart)?
了解更多信息什么是CAPTCHA(完全自动化的公共Turing测试,以区分计算机和人类)?

To make systems in kubernetes jargon pods communication eachother. Install a daemong with the followinf command.

为了使系统在kubernetes术语荚中相互通信。 使用followinf命令安装daemong。

  1. $ kubectl apply -f https://git.io/weave-kube
  2. daemonset “weave-net” created

部署测试应用程序 (Deploying Test Application)

We use a github project as our test application. We get the project with git.

我们使用github项目作为测试应用程序。 我们用git获得项目。

  1. $ git clone https://github.com/microservices-demo/microservices-demo
  2. Cloning into ‘microservices-demo’
  3. remote: Counting objects: 4885, done.

We use application provided deployment manifest like below

我们使用如下所示的应用程序提供的部署清单

  1. $ kubectl apply -f microservices-demo/deploy/kubernetes/manifests
  2. deployment “cart-db” created
  3. service “cart-db” created
  4. deployment “cart” created
  5. service “cart” created
  6. deployment “catalogue-db” created
  7. service “catalogue-db” created

Here the containers are created. We can get info by issuing kubectl get pods.

在这里创建容器。 我们可以通过发出kubectl get pod来获取信息。

  1. $ kubectl get pods
  2. NAME                           READY     STATUS              RESTARTS   AGE
  3. cart-3694116665-8ovlg          1/1       Running             0          1m
  4. cart-db-2305146297-6zvky       0/1       ContainerCreating   0          1m
  5. catalogue-11453786-yu44e       0/1       ContainerCreating   0          1m
  6. catalogue-db-393939662-fm3g6   0/1       ContainerCreating   0          1m
  7. front-end-3820830240-zojqb     0/1       ContainerCreating   0          1m
  8. orders-3498886496-qbafq        0/1       ContainerCreating   0          1m
  9. orders-db-1775353731-0knx5     0/1       ContainerCreating   0          1m
  10. payment-3012088042-edphj       0/1       ContainerCreating   0          1m
  11. queue-master-936560853-zaiqj   0/1       ContainerCreating   0          1m
  12. rabbitmq-1897447621-242ds      0/1       ContainerCreating   0          1m
  13. shipping-1232389217-mraq4      0/1       ContainerCreating   0          1m
  14. user-3090014237-y7q8m          0/1       ContainerCreating   0          1m
  15. user-db-1338754314-nu2sp       0/1       ContainerCreating   0          1m

ContainerCreating means it is progressing and current the application is not running.

ContainerCreating表示它正在进行中,当前应用程序未运行。

After 2 min if we issue the command again we ca see that some of the pods are running and other are creating.

2分钟后,如果再次发出命令,我们会看到一些容器正在运行,而其他容器正在创建。

  1. $ kubectl get pods
  2. NAME                           READY     STATUS              RESTARTS   AGE
  3. cart-3694116665-8ovlg          1/1       Running             0          3m
  4. cart-db-2305146297-6zvky       1/1       Running             0          3m
  5. catalogue-11453786-yu44e       1/1       Running             0          3m
  6. catalogue-db-393939662-fm3g6   1/1       Running             0          3m
  7. front-end-3820830240-zojqb     1/1       Running             0          3m
  8. orders-3498886496-qbafq        1/1       Running             0          3m
  9. orders-db-1775353731-0knx5     1/1       Running             0          3m
  10. payment-3012088042-edphj       0/1       ContainerCreating   0          3m
  11. queue-master-936560853-zaiqj   0/1       ContainerCreating   0          3m
  12. rabbitmq-1897447621-242ds      0/1       ContainerCreating   0          3m
  13. shipping-1232389217-mraq4      0/1       ContainerCreating   0          3m
  14. user-3090014237-y7q8m          0/1       ContainerCreating   0          3m
  15. user-db-1338754314-nu2sp       0/1       ContainerCreating   0          3m

We can see frontend services status and get information about them by using describe command.

我们可以使用describe命令查看前端服务状态并获取有关它们的信息。

  1. $ kubectl describe svc front-end
  2. Name:                   front-end
  3. Namespace:              default
  4. Labels:                 name=front-end
  5. Selector:               name=front-end
  6. Type:                   NodePort
  7. IP:                     100.70.194.72
  8. Port:                   <unset> 80/TCP
  9. NodePort:               <unset> 31425/TCP
  10. Endpoints:              <none>
  11. Session Affinity:       None

从Kubernetes集群删除Pod (Delete Pod From Kubernetes Cluster)

We have deployed our application successfully. But what if we want to destroy it. It similar to the install procedure just use delete command with kubectl.

我们已经成功部署了应用程序。 但是,如果我们要销毁它,该怎么办。 类似于安装过程,只需要在kubectl中使用delete命令即可

  1. $ kubectl delete -f microservices-demo/deploy/kubernetes/manifests
  2. deployment “cart-db” deleted
  3. service “cart-db” deleted
  4. deployment “cart” deleted
  5. service “cart” deleted
  6. deployment “catalogue-db” deleted
  7. service “catalogue-db” deleted
  8. deployment “catalogue” deleted
  9. service “catalogue” deleted
  10. deployment “front-end” deleted
  11. service “front-end” deleted
  12. networkpolicy “cart-access” deleted
  13. networkpolicy “cart-db-access” deleted
  14. networkpolicy “catalogue-access” deleted
  15. networkpolicy “catalogue-db-access” deleted
  16. networkpolicy “front-end-access” deleted
  17. networkpolicy “orders-access” deleted
  18. networkpolicy “orders-db-access” deleted
  19. networkpolicy “payment-access” deleted
  20. networkpolicy “prism-access” deleted
  21. networkpolicy “rabbitmq-access” deleted
  22. networkpolicy “shipping-access” deleted
  23. networkpolicy “user-access” deleted
  24. networkpolicy “user-db-access” deleted
  25. deployment “orders-db” deleted
  26. service “orders-db” deleted
  27. deployment “orders” deleted
  28. service “orders” deleted
  29. deployment “payment” deleted
  30. service “payment” deleted
  31. deployment “queue-master” deleted
  32. service “queue-master” deleted
  33. deployment “rabbitmq” deleted
  34. service “rabbitmq” deleted
  35. deployment “shipping” deleted
  36. service “shipping” deleted
  37. deployment “user-db” deleted
  38. service “user-db” deleted
  39. deployment “user” deleted
  40. service “user” deleted

如何在Ubuntu信息图上设置Kubernetes 1.4 (How to Setup Kubernetes 1.4 on Ubuntu Infographic)

How to Setup Kubernetes 1.4 on Ubuntu Infographic
How to Setup Kubernetes 1.4 on Ubuntu Infographic
如何在Ubuntu信息图上设置Kubernetes 1.4

 

llvm入门_什么是LLVM? LLVM入门

llvm入门

LLVM is a project which provides a collection of a modular compiler and toolchain software and technologies. The name “LLVM” is not an acronym that is different from other IT and Opensource projects. LLVM has started a research project at the University of Illinois in order to create a compiler and tool-chain which supports both static and dynamic compilation for different programming languages. Even different programming languages like C, C++, Java, C#, Kotlin, Delphi, Rust, Ruby are supported the most popular programming languages are C and C++ for the LLVM compiler and tool-chain.

LLVM是一个项目,提供了模块化编译器以及工具链软件和技术的集合。 名称“ LLVM”不是与其他IT和开源项目不同的首字母缩写。 LLVM已在伊利诺伊大学启动了一个研究项目,目的是创建一个支持不同编程语言的静态和动态编译的编译器和工具链。 甚至支持不同的编程语言,例如C,C ++,Java,C#,Kotlin,Delphi,Rust,Ruby,*受欢迎的编程语言是用于LLVM编译器和工具链的C和C ++。

LLVM硬件和操作系统支持 (LLVM Hardware and Operating System Support)

As an opensource project LLVM is supported in different operating systems, platforms, and hardware. LLVM can run on Linux, Solaris, FreeBSD, NetBSD, MacOSX, Windows operating systems. LVVM also supports different hardware and processor architectures like x86, amd64, x86_64, PowerPC, V9, ARM. For more specific hardware and operating support take a look following table.

作为一个开源项目,LLVM在不同的操作系统,平台和硬件中受支持。 LLVM可以在Linux,Solaris,FreeBSD,NetBSD,MacOSX,Windows操作系统上运行。 LVVM还支持不同的硬件和处理器架构,例如x86,amd64,x86_64,PowerPC,V9,ARM。 有关更具体的硬件和操作支持,请查看下表。

%title插图%num
LLVM Hardware and Operating System Support
LLVM硬件和操作系统支持

LLVM支持的编程语言(LLVM Supported Programming Languages)

As stated in the start LLVM supports a wide range of programming languages to compile and bind. Even some programming languages are not fully supported by the LLVM we will list the supported programming languages and support level and supported features.

如开头所述,LLVM支持多种编程语言进行编译和绑定。 LLVM甚至不完全支持某些编程语言,我们将列出支持的编程语言以及支持级别和支持的功能。

C and C++ are the top programming languages for the LLVM. Even LLVM is created as a dynamic compiler and toolchain C and C++ are the main targets for support. Also, LLVM is developed with C++.

CC++是LLVM的顶级编程语言。 甚至LLVM都是作为动态编译器创建的,工具链C和C ++是支持的主要目标。 此外,LLVM是使用C ++开发的。

Objective-C is another completely supported programming language similar to the C and C++.

Objective-C是另一种完全支持的编程语言,类似于C和C ++。

LLVM体系结构和组件 (LLVM Architecture and Components)

LLVM provides a complete architecture where there are different components and pieces to complete the picture. LLVM provides Front End, Passes, and Back End. The following graphic illustrates how the LLVM works on source code and generates executables and binaries.

LLVM提供了一个完整的体系结构,其中有不同的组件和片段来完成图像。 LLVM提供前端,通道和后端。 下图说明了LLVM如何在源代码上工作以及如何生成可执行文件和二进制文件。

%title插图%num
LLVM Components, Architecture and Compiling Steps
LLVM组件,体系结构和编译步骤

Front End will take the source code and convert it to the intermediate representation or IR . This is a preparation process for the other steps and compiler where LLVM runs properly. Front End is nor the core part of the LLVM and generally auxiliary software or a tool like Clang is used.

Front End将获取源代码并将其转换为intermediate representationIR 。 这是LLVM正常运行的其他步骤和编译器的准备过程。 前端也不是LLVM的核心部分,通常使用辅助软件或Clang之类的工具。

LEARN MORE  Python Standard Library
了解更多Python标准库

Pass or IR is the core task of the LLVM where the compilation process takes place. The IR or intermediate code will be optimized again and again with multiple phases.

PassIR是进行编译过程的LLVM的核心任务。 IR或中间代码将在多个阶段一次又一次地优化。

Back End is the last step where the optimized IR code will be converted into the machine code which is specific to a CPU architecture or operating system.

Back End是将优化的IR代码转换为特定于CPU体系结构或操作系统的机器代码的*后一步。

Below we will list some important tools and components of the LLVM.

下面我们将列出LLVM的一些重要工具和组件。

Clang is the compiler created for the LLVM specifically. Clang can compile the IR code into the executables and binaries. Also, Clang is almost 3 times faster than the GCC compiler.

Clang是专门为LLVM创建的编译器。 Clang可以将IR代码编译为可执行文件和二进制文件。 而且,Clang比GCC编译器快将近3倍。

LLDB is the debugger created for the LLVM project. LLDB is more faster and efficient than GDB and tightly integrated with the LLVM core and Clang.

LLDB是为LLVM项目创建的调试器。 LLDB比GDB更快,更高效,并且与LLVM内核和Clang紧密集成。

libc++ and libc++ ABI are C++ standard library implementations.

libc++libc++ ABI是C ++标准库的实现。

compiler-rt is a dynamic testing utility for low-level code. It can be used to run and text the low-level code in real-time.

compiler-rt是用于低级代码的动态测试实用程序。 它可以用于实时运行和编写低级代码。

LLVM Core is the core component for the LLVM where core libraries provide optimizer and code generation support for different CPU and hardware architectures.

LLVM CoreLLVM Core的核心组件,其中的核心库为不同的CPU和硬件体系结构提供了优化器和代码生成支持。

LLVM与GCC (LLVM vs GCC)

Gnu Compiler Collection or GCC is another popular and widely used opensource compiler project. Before the LLVM emerged the GCC was a defacto compiler for different for open source world. With the LLVM things started to change and with its advantages LLVM became popular too. Below we will compare the LLVM and GCC from different points of view.

Gnu Compiler Collection或GCC是另一个流行且广泛使用的开源编译器项目。 在LLVM出现之前,GCC是事实上的编译器,适用于不同的开源世界。 随着LLVM的发生,事物开始发生变化,而LLVM的优势也开始流行。 下面我们将从不同的角度比较LLVM和GCC。

  • GCC supports more traditional programming languages like Ada, Fortran, and Go than LLVM.与LLVM相比,GCC支持更多的传统编程语言,例如Ada,Fortran和Go。
  • GCC supports more hardware and CPU architectures like RISC-V than LLVM.与LLVM相比,GCC支持更多的硬件和CPU架构,例如RISC-V。
  • GCC supports more language extensions and assembly language features then LLVM.与LLVM相比,GCC支持更多的语言扩展和汇编语言功能。
  • LLVM is used by emerging languages like Swift, Rust, Julia, and Ruby then GCC.Swift,Rust,Julia和Ruby,然后是GCC等新兴语言都使用LLVM。
  • LLVM complies with the C and C++ programming languages more strictly than GCC.LLVM比GCC更严格地遵循C和C ++编程语言。
  • LLVM provides more accurate and friendly diagnostics information than GCC.LLVM比GCC提供更准确,更友好的诊断信息。
LEARN MORE  How To Check Java Version
了解更多如何检查Java版本

安装LLVM(Install LLVM )

LLVM can be installed on Linux and Ubuntu operating systems like below. We will provide the package names llvm-10 and llvm-10-tools in order to install LLVM version 10 core libraries and tools.

LLVM可以安装在如下所示Linux和Ubuntu操作系统上。 我们将提供软件包名称llvm-10llvm-10-tools ,以安装LLVM版本10核心库和工具。

$ sudo apt install llvm-10 llvm-10-tools clang
%title插图%num
Install LLVM
安装LLVM

LLVM入门 (Getting Started with LLVM)

We have installed required packages named llvm-10, llvm-10-tools, and clang. Now we will compile a simple hello world example with the LLVM as getting started example. The hello world application source code is provided below.

我们已经安装了名为llvm-10,llvm-10-tools和clang的必需软件包。 现在,我们将以LLVM作为入门示例来编译一个简单的hello world示例。 下面提供了hello world应用程序源代码。

  1. #include <stdio.h>
  2. int main()
  3. {
  4. printf(“Hello World From Poftut.com via LLVM”);
  5. return 0;
  6. }

We will compile and create the executable named hello_world with the clang command like below. The LLVM will be executed by the clang command under the hood.

我们将使用如下clang命令编译并创建名为hello_world的可执行文件。 LLVM将在后台通过clang命令执行。

$ clang hello_world.c -o hello_world

The newly created hello_world executable can be run from the console or bash command line like below.

新创建的hello_world可执行文件可以从控制台或bash命令行运行,如下所示。

$ ./hello_world

翻译自: https://www.poftut.com/what-is-llvm-getting-started-with-llvm/