使用Next.js部署WordPress

WordPress只一个历史悠久用户友好的博客,并且还挺云端免费版本。但是访问速度比较慢,还好有了vercel,用CDN加速,就非常好了。说干就干。

创建项目

1
yarn create next-app --example cms-wordpress cms-wordpress-app

结果如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Initialized a git repository.

Success! Created cms-wordpress-app at /Users/terwer/Documents/app/Docker/terwer/cms-wordpress-app
Inside that directory, you can run several commands:

yarn dev
Starts the development server.

yarn build
Builds the app for production.

yarn start
Runs the built app in production mode.

We suggest that you begin by typing:

cd cms-wordpress-app
yarn dev

✨ Done in 45.53s.

参考

https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress

统信 UOS 初始配置之打开 root 权限

作为开发者,安装完统信 UOS 家庭版之后,做的第一件事应该是,打开 root 权限,或者说是开发者权限。因为我们要安装一些需要root权限的软件,还有更新某些软件,或者做开发,基本上都要用到root权限。
阅读更多