pkg 打包的 nodejs 项目，总是运行一段时间后请求会卡死，就是无论怎么访问都一直在 pending，开始以为是 pkg 的问题，或是 mssql 连接释放的问题。后来发现是 cmd 命令行的问题，当 cmd 有选择操作后，新请求就会让 node 项目卡住，直到按下回车，项目才继续运行。解决方式是 cmd 属性中关闭快速编辑模式
chcp 65001 cls @echo. @echo. @echo ------根据端口号杀死进程进程工具v0.2.3（按回车继续/q退出）------ @echo. @echo. @echo. @echo. :_find @echo off set "port=0" set /p port=请输入被占用的端口号: if "%port%"=="0" goto _find if "%port%"=="q" goto end netstat -ano | findstr "%port%" >nul && Echo 以下进程占用了%port%端口: && echo 协议 本地IP:端口 远程IP:端口 监听状态 PID && netstat -ano | findstr "%port%" || Echo %port%端口没有被任何进程占用. && goto _find :_kill set "pid=0" set /p pid=请输入进程PID将其杀死： if "%pid%"=="0" goto _kill if "%pid%"=="q" goto end taskkill -PID "%pid%" -F pause :end cls
Verify that you have sufficient privileges to start system servicesContinue reading ZeroTier 安装失败 Service ZeroTier One failed to start
Of Mountains & Printing Presses
The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.
What you are reading now is a text block, the most basic block of all. The text block has its own controls to be moved freely around the post…
… like this one, which is right aligned.
Headings are separate blocks as well, which helps with the outline and organization of your content.
A Picture is worth a Thousand Words
Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.
Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.
The Inserter Tool
Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the
(+) button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.
Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:
- Text & Headings
- Images & Videos
- Embeds, like YouTube, Tweets, or other WordPress posts.
- Layout blocks, like Buttons, Hero Images, Separators, etc.
- And Lists like this one of course 🙂
A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:
The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.Matt Mullenweg, 2017
The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.
Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.
You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.
If you combine the new wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:
Sure, the full-wide image can be pretty big. But sometimes the image is worth it.
The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.
Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:
You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:
Code is PoetryThe WordPress community
If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the GitHub repository.
Thanks for testing Gutenberg!