diff --git a/_posts/2018-11-1-Performance_ulimit_TCP_link.md b/_posts/2018-11-1-Performance_ulimit_TCP_link.md index 201aba8..b3a7250 100644 --- a/_posts/2018-11-1-Performance_ulimit_TCP_link.md +++ b/_posts/2018-11-1-Performance_ulimit_TCP_link.md @@ -2,7 +2,7 @@ layout: post title: "性能调优ulimit增加TCP连接最大限制" date: 2018-11-1 -tags: [vscode] +tags: [linux] comments: true author: lemonchann --- @@ -19,19 +19,22 @@ Linux系统中tcp连接数是有最大限制的,即是进程可打开的最大 ## 用户级别 #### 修改最大连接数 -1. 修改系统参数实现 +- 修改系统参数实现 + > ulimit -SHn 65535 > -H硬限制是实际的限制,-S软限制是warnning限制,只会做出warning. 如果运行ulimit命令修改的时候没有加上SH,就是两个参数一起改变. -2. 修改pam模块配置实现 -- session required /lib/security/pam_limits.so -- 修改/etc/security/limits.conf如下举例 +- 修改pam模块配置实现 -`* soft nofile 65536` -`* hard nofile 65536` -`*代表所有用户,当然也可以指定用户如root` +1. session required /lib/security/pam_limits.so + +2. 修改/etc/security/limits.conf如下举例 + + `* soft nofile 65536` + `* hard nofile 65536` + `*代表所有用户,当然也可以指定用户如root` #### 确认修改是否生效 项目中遇到修改后虽然命令查看已经是修改后的值,但是进程连接的tcp个数还是系统默认的1024导致接入拒绝 diff --git a/_posts/2019-11-22-create_blog_with_github_pages.md b/_posts/2019-11-22-create_blog_with_github_pages.md new file mode 100644 index 0000000..0da52c7 --- /dev/null +++ b/_posts/2019-11-22-create_blog_with_github_pages.md @@ -0,0 +1,133 @@ +--- +layout: post +title: "从0开始利用github pages搭建个人博客" +date: 2019-11-22 +tags: [geek] +comments: true +author: lemonchann +--- + +## 搜索功能集成 + +[Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search) + +### 配置search.json + +[复制这份代码到你博客的根目录](https://github.com/christian-fei/Simple-Jekyll-Search/blob/master/example/search.json) + +这个配置文件代表可以搜索博客的标题、标签、时间、分类。 + +### 配置index.html + +```html +
+ + +
+ + + + + +``` + + + +## 社交链接 + +以增加zhihu链接为例 + +[svg icon仓库](https://github.com/FortAwesome/Font-Awesome/blob/516a62816c76255dc92ed55b906e9dca5a21b28b/svgs/brands/zhihu.svg) + +[viewBox](https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/viewBox) + +> viewBox属性的值是一个包含4个参数的列表 `min-x`, `min-y`, `width` and `height`, 以空格或者逗号分隔开, 在用户空间中指定一个矩形区域映射到给定的元素,查看属性 + +[深入简出 SVG 教程](https://zhuanlan.zhihu.com/p/36138381) + +修改root目录下index.html + +### 配置_config.yml + +```yml +footer-links: + weibo: yourname #请输入你的微博个性域名 https://www.weibo.com/ + zhihu: yourname #输入你知乎主页链接上的名字 https://https://www.zhihu.com/people/ +``` + +### 修改svg-icons.html + +文件路径在_include/svg-icons.html下,增加zhihu链接 + +```html +{% if site.footer-links.zhihu %} +
  • + {% endif %} +``` + + + +## 添加网站计数 + +[html颜色表](http://xh.5156edu.com/page/z1015m9220j18754.html) + +[html style属性](https://www.geeksforgeeks.org/html-style-attribute/) + +eg. `style="font-family:arial;color:Gainsboro;font-size:10px; text-align:right;width:200px;background-color:gray;` + +### 不算子 + +统计原理,[官方指引](http://ibruce.info/2015/04/04/busuanzi/#more) + +### 修改根目录下index.html + +增加如下内容: + +```html + + + +
    + + View: + + + + User: + +
    +``` + + + +## 其他功能 + +[小功能](https://blog.csdn.net/ds19991999/article/details/81293467) + +[好用的github插件](https://blog.csdn.net/u012702547/article/details/100533763) + + + +## 网站结构 + +根目录的index.html生成blog首页 + +_include/footer.html生成侧边栏 + +_include/svg-icons.html生成社交头像的链接 + +## 问题汇总 + +[jekyll端口被占用EACCES](https://www.iteye.com/blog/ywsm-510670) \ No newline at end of file diff --git a/about.md b/about.md index 14bbd84..acd974f 100644 --- a/about.md +++ b/about.md @@ -6,13 +6,13 @@ permalink: /about/ lemonchann的个人博客。 -### 技术栈 +### 技能 -Linux后端分布式高性能服务开发,C++熟练工,Python,Go +Linux后端分布式高性能服务开发,差一点精通C++,Python小玩具,Go见习。 ### 经历 -14年本科毕业,前通信设备商服务端开发,现就职Tencent腾讯公司。 +软件工程师(Software Engineer),14年获电子信息工程学士学位( Electronic and Information Engineering ),先后从事通信设备服务端程序开发工作,现就职腾讯(Tencent)公司,从事Linux服务器后台开发工作。 ### 版权声明