Git Product home page Git Product logo

blog's Introduction

blog's People

Contributors

kmq116 avatar

Stargazers

Roman avatar Chiantine P. Manigos avatar

Watchers

 avatar

blog's Issues

mac root 权限下使用 hexo new 命令的坑

用 mac 写博客的时候,使用了 hexo new "test-demo",去创建一篇新文章,因为之前没有安装过 hexo,所以全局安装了一次,全局安装的时候找我要了 root 权限,安装时没有任何问题

安装完成后,我直接在 root 权限下的终端执行了 hexo new 命令,导致创建出来的文件是只读文件,我写了好久的东西怎么也保存不了。

解决办法,使用普通权限下的终端去执行此命令

Use chocolatey install software | packages 使用巧克力安装软件,包

Install with powershell.exe

Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process

then run

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

安装 vscode
choco install vscode

其他同理
choco install ${pkgName}

安装 nvm-windows 遇到的问题

换新电脑的时候,有两个项目需要不同版本的 node , 然后去找了 nvm 的 windows 版本下载安装了,安装之后,可以正常 nvm install,但是执行 nvm use vXXX 的时候,发现怎么都应用不上,后来翻了官方的文档,发现这么一句,安装前需要卸载所有已存在的 node
然后就可以解决了
image

端口号基本常识

根据维基百科定义
电脑之间依照互联网传输层TCP/IP协议的协议通信,不同的协议都对应不同的端口。并且,利用数据报文的UDP也不一定和TCP采用相同的端口号码。

端口号范围是 0-65535

49152到65535号端口

根据定义,该段端口属于“动态端口”范围,没有端口可以被正式地注册占用。

了解上面的范围等知识有什么用呢?sry, I dont know.

pm2 使用

pm2 开启监听,可以查看试试 log 日志
执行 pm2 monit

git tag 命令快查

打 tag

git tag ${tagName}
例如 git tag v5.0.3

推送 tag

git push origin ${tagName}
例如 git push origin v5.0.3

可能你的源分支不叫 origin 改成对应的源即可

即可在远程分支查看到此 tag

删除远程 tag

git push origin :refs/tags/${tagName}

例如 git push origin :refs/tags/v5.1.1

删除本地 tag

git tag -d ${tagName}
例如
git tag -d v5.1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.