前置条件:Node安装
Nodejs在各操作系统下的安装安装vue
1 | npm install -g @vue/cli |
查看vue cli版本
1 | vue -V |
创建项目
1 | vue create hello-world |
1 | npm install -g @vue/cli |
1 | vue -V |
1 | vue create hello-world |
在 RHEL, CentOS, CloudLinux 或 Fedora 使用root权限
1 | curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_17.x | bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_17.x | sudo bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash - |
1 | curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash - |
1 | curl -sL https://rpm.nodesource.com/setup_14.x | bash - |
1 | curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - |
1 | curl -sL https://rpm.nodesource.com/setup_13.x | bash - |
1 | curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash - |
1 | curl -sL https://rpm.nodesource.com/setup_12.x | bash - |
1 | curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - |
1 | curl -sL https://rpm.nodesource.com/setup_10.x | bash - |
1 | curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash - |
1 | yum install gcc-c++ make |
更多版本Linux安装请移步: GitHub
说明:https://studygolang.com/articles/10750
传送门:https://github.com/gwuhaolin/livego
传送门:https://github.com/lucidrains/deep-daze
安装插件入口:https://pytorch.org/get-started/locally/
换脸:https://github.com/deepfakes/faceswap
一个轻量级的AI证件照制作算法https://github.com/Zeyi-Lin/HivisionIDPhotos
1 | ps auxw|head -1;ps auxw|sort -rn -k3|head -10 |
1 | ps auxw|head -1;ps auxw|sort -rn -k4|head -10 |
1 | ps auxw|head -1;ps auxw|sort -rn -k5|head -10 |
1 | wget XXXX |
1 | # 软件安装 |
1 | du -h --max-depth=1 | sort -nr | head |
1 | cat /dev/null> access.log |
1 | # 保留最近一周 |
1 | yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm |
更多: 安装code-server
1 | yum install centos-release-scl |
1 | # 开放80端口 |
nginx 很优秀
按下面内容进行
1 | wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo |
1 | ulimit -n # 系统打开文件数 |
1 | # 创建用户 |
连接数 打开文件数 事件
1 | user nginx; |
1 | stream { |
1 | server { |
1 | # 在http中 |
1 | if ($http_user_agent ~* "360Spider|JikeSpider|Spider|spider|bot|Bot|2345Explorer|curl|wget|webZIP|qihoobot|Baiduspider|Googlebot|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Adsbot-Google|Feedfetcher-Google|Yahoo! Slurp|Yahoo! Slurp China|YoudaoBot|Sosospider|Sogou spider|Sogou web spider|MSNBot|ia_archiver|Tomato Bot|NSPlayer|bingbot") |
官网:Hexo!
文档:documentation
FAQ:troubleshooting
反馈:GitHub
1 | $ hexo new "My New Post" |
更多: Writing
1 | $ hexo server |
更多: Server
1 | $ hexo generate |
更多: Generating
1 | $ hexo deploy |
更多: Deployment
更多: https://pygments.org/docs/lexers/
1 | $ hexo new page categories |
1 | $ npm install hexo-generator-feed |
1 | # Extensions |
1 | {% post_link 文章文件名(不要后缀) 文章标题(可选) %} |
1 | npm install https://github.com/CodeFalling/hexo-asset-image --save |
1 | npm install --save hexo-blog-encrypt |