Linux从源码编译安装nginx

以前都是靠各种一键脚本来安装 nginx,今天我尝试一下从源码手动编译安装 nginx,这里记录一下过程,有不足之处欢迎指正。废话不多说,直接开始。

- 阅读全文 -

CentOS 修改vim的Tab为4个空格

## 演示环境 ```shell [root@hwc ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) ``` ## 操作步骤 1. 编辑`/etc/vimrc`文件 ```shell vim /etc/vimrc ``` 2. 在文件最后添加以下内容

- 阅读全文 -

nginx rewrite 隐藏URL中的.php后缀

## 需求背景 因为要做课程设计,其中一个功能需要去除 URL 中的`.php`进行访问。例如链接`https://zkk.me/function.php`,要能够使用`https://zkk.me/function`访问。自己手头已有的工具

- 阅读全文 -

Windows为VSCode添加右键快捷项

今天下午重新装了系统,然后又装上了 Visual Studio Code,但是装完后发现右键菜单没有 VSCode 快捷项,于是在网上搜索了一下解决方法,可以通过注册表手动添加。

- 阅读全文 -

1041 Be Unique(20分)--PAT甲级

Be Unique 题目 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104].

- 阅读全文 -

1001 A+B Format(20分)--PAT甲级

A+B Format 题目 Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). - 时间限制: 400 ms

- 阅读全文 -

1001 害死人不偿命的(3n+1)猜想(15分)--PAT乙级

害死人不偿命的(3n+1)猜想 题目 卡拉兹(Callatz)猜想: 对任何一个正整数 n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把 (3n+1) 砍掉一半。这样一直反复砍下去,最后一定在某一步得到 n=1

- 阅读全文 -

圈地运动-360公司笔试题

圈地运动 题目: 圈地运动,就是用很多木棍摆在地上组成一个面积大于0的多边形~ 小明喜欢圈地运动,于是他需要去小红店里面买一些木棍,期望圈出一块地来。小红想挑战一下小明,所以给小明设置

- 阅读全文 -