-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
328 lines (277 loc) · 20.2 KB
/
Copy pathindex.xml
File metadata and controls
328 lines (277 loc) · 20.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Linux on 回风舞雪</title>
<link>https://huifeng.me/categories/linux/</link>
<description>Recent content in Linux on 回风舞雪</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Thu, 27 Feb 2020 17:01:42 +0800</lastBuildDate>
<atom:link href="https://huifeng.me/categories/linux/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Install openssh to redhat 6.3 via source</title>
<link>https://huifeng.me/posts/installopensshonredhatviasource/</link>
<pubDate>Thu, 27 Feb 2020 17:01:42 +0800</pubDate>
<guid>https://huifeng.me/posts/installopensshonredhatviasource/</guid>
<description><p>This post is the log for compile source and install some package to linux, yeah, it&rsquo;ll fit to offline install while you&rsquo;re download packages before.</p>
<h1 id="download">Download</h1>
<ul>
<li>
<p>openssh-7.5p1 (This is the last version support: ssh protocal &lt; 1.5 ) -&gt; <a href="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz">Download now</a></p>
<ul>
<li>
<p>zlib-devel -&gt; <a href="https://www.zlib.net/zlib-1.2.11.tar.gz">Download now</a></p>
</li>
<li>
<p>openssl-fip -&gt; <a href="https://www.openssl.org/source/openssl-fips-2.0.16.tar.gz">Download now</a></p>
</li>
<li>
<p>openssl-1.0.2u -&gt; <a href="https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2u">Download now</a></p>
</li>
</ul>
</li>
</ul></description>
</item>
<item>
<title>Install nginx php7 and config firewalld in CentOS 7.6</title>
<link>https://huifeng.me/posts/install-nginx-php7-and-config-firewalld-in-centos-7.6/</link>
<pubDate>Wed, 16 Jan 2019 10:47:39 +0800</pubDate>
<guid>https://huifeng.me/posts/install-nginx-php7-and-config-firewalld-in-centos-7.6/</guid>
<description><h1 id="1-服务器环境">1. 服务器环境</h1>
<p>系统:CentOS 7.6
防火墙:firewalld</p>
<h2 id="11-防火墙配置">1.1. 防火墙配置</h2>
<p>此防火墙为 CentOS 7.6 自带自启动,默认没有任何通路出去,你只能从外面ping的通,ssh连接,其他什么也做不了。</p>
<p>下面我们开放两个端口,一个是 <code>80/TCP</code> ,一个是自定义的ssh连接端口 <code>123/TCP</code>.</p>
<p>Run:</p>
<div class="highlight"><pre class="chroma"><code class="language-fallback" data-lang="fallback">$ firewall-cmd --permanent --add-port=80/tcp
$ firewall-cmd --permanent --add-port=123/tcp
</code></pre></div><ol>
<li>firewall-cmd:是Linux提供的操作firewall的一个工具;</li>
<li>&ndash;permanent:表示设置为持久;</li>
<li>&ndash;add-port:标识添加的端口;</li>
<li>&ndash;zone=public:指定的zone为public(不加此参数默认都是添加到这里).</li>
</ol>
<p>默认的,通过命令行添加的规则会添加到文件: <code>/etc/firewalld/zones/public.xml</code> .</p></description>
</item>
<item>
<title>Install pip to Ubuntu 18.04</title>
<link>https://huifeng.me/posts/install-pip-2-ubuntu-18/</link>
<pubDate>Thu, 11 Oct 2018 23:17:53 +0800</pubDate>
<guid>https://huifeng.me/posts/install-pip-2-ubuntu-18/</guid>
<description><blockquote>
<p>参考文档:
<a href="https://www.linuxidc.com/Linux/2018-05/152390.htm">https://www.linuxidc.com/Linux/2018-05/152390.htm</a></p>
<p>本文只讲重点!</p>
</blockquote></description>
</item>
<item>
<title>Fix VMware kernel headers for versions not found</title>
<link>https://huifeng.me/posts/fix-vmware-kernel-headers-for-versions-not-found/</link>
<pubDate>Thu, 11 Oct 2018 22:38:15 +0800</pubDate>
<guid>https://huifeng.me/posts/fix-vmware-kernel-headers-for-versions-not-found/</guid>
<description>Ubuntu 18 的宿主机,核心 Update 了,然后要求重启,然后, VMware 起不来了, 报错: linux VM kernel headers 4.15.0-37-generic were not found So, Google and Sogou, and look: https://blog.csdn.net/ritterliu/article/details/7554183 http://www.vi-toolkit.com/wiki/index.php/Build_host_vmware_kernel_modules 长话短说,我运行了下面一行,然后就好了! ↓ sudo apt-get install linux-headers-$(uname -r) Good luck good day!</description>
</item>
<item>
<title>Setup-Debian9-Init</title>
<link>https://huifeng.me/posts/setup-debian9-init/</link>
<pubDate>Thu, 11 Oct 2018 18:35:12 +0800</pubDate>
<guid>https://huifeng.me/posts/setup-debian9-init/</guid>
<description><p>本文 Debian 9 安装历程,安装包选的是最小版,界面在安装时选择的是 Xfce,选择它是因为它最快!</p>
<p>本文主要记录联网,VM工具,更换国内源,输入法的安装,让debian的桌面翻墙我新开一页写吧.</p></description>
</item>
<item>
<title>Install Redis Cache on Ubuntu Server with PHP 7 and ownCloud</title>
<link>https://huifeng.me/posts/install-redis-cache-on-ubuntu-server-with-php-7-and-owncloud/</link>
<pubDate>Wed, 08 Jun 2016 17:30:33 +0800</pubDate>
<guid>https://huifeng.me/posts/install-redis-cache-on-ubuntu-server-with-php-7-and-owncloud/</guid>
<description>参考: https://www.techandme.se/install-redis-cache-on-ubuntu-server-with-php-7-and-owncloud/ 缓存,owncloud推荐使用的是 APCu 和 Redis,we with PHP 7 needed to build the PHP module as well, because PECL install didn’t work on PHP 7 yet. And as usual – as we didn’t find any good straight forward guide, here is one that works, enjoy! 原文说的已经很清楚了,细心点应该不会出错,我这里只记录</description>
</item>
<item>
<title>LAMP环境搭建(Ubuntu14.04 For OwnCloud)</title>
<link>https://huifeng.me/posts/lamp-stepbystep/</link>
<pubDate>Thu, 19 May 2016 12:23:57 +0800</pubDate>
<guid>https://huifeng.me/posts/lamp-stepbystep/</guid>
<description><p>本日志主要记录我配置OwnCloud环境的过程,注意,针对OwnCloud,至于某些模块开启和关闭问题,可以根据具体情况自行调整.另外我操作的系统是Ubuntu14.04LTS.
这里推荐一个很不错的文档位置:https://www.linode.com/docs/</p>
<p>感悟:</p>
<ol>
<li>遇坑过坑,佛挡杀佛.</li>
<li>看文档很重要,当然,能去官方的GitHub看看更好.</li>
<li>最大坑解决过程: OwnCloud文档 -&gt; MySQL文档 -&gt; MariaDB文档 -&gt; Google -&gt; MySQL/MariaDB文档 -&gt; Github/owncloud/core -&gt; issue -&gt;search for my ailling key-&gt; get it!!</li>
</ol></description>
</item>
<item>
<title>LEMP/LNMP 环境搭建(Nginx1.10 + PHP7)</title>
<link>https://huifeng.me/posts/lemp-step-to-step/</link>
<pubDate>Wed, 18 May 2016 18:38:05 +0800</pubDate>
<guid>https://huifeng.me/posts/lemp-step-to-step/</guid>
<description><blockquote>
<p>更多文档请浏览官方文档和Wiki,这个很重要,其实文档里已经说的很清楚了,会遇到的Bug往往在回复里也有。</p>
</blockquote></description>
</item>
<item>
<title>Shell Study</title>
<link>https://huifeng.me/posts/shell-study/</link>
<pubDate>Thu, 05 May 2016 10:47:39 +0800</pubDate>
<guid>https://huifeng.me/posts/shell-study/</guid>
<description>$ pushd $openssh_source_dir &gt; /dev/null 命令 说明 command &gt; file 将输出重定向到 file。 command &lt; file 将输入重定向到 file。 command &raquo; file 将输出以追加的方式重定向到 file。 n &gt; file 将文件描述符为 n 的文件重定向到 file。 n &raquo; file 将文件描述符为 n 的文件以追加</description>
</item>
<item>
<title>sudo命令输入密码还是不能用?</title>
<link>https://huifeng.me/posts/sudo-unable-in-centos/</link>
<pubDate>Thu, 05 May 2016 10:47:39 +0800</pubDate>
<guid>https://huifeng.me/posts/sudo-unable-in-centos/</guid>
<description><p>sudo Command is unable in centos system?</p>
<p>我遇到了这样的问题,在 CentOS 7 系统下,执行 <code>sudo</code> 提示 <code>Sorry, try again.</code> ,密码是正确的密码,当前用户和 root 的密码都试过,都是这样 <code>visudo</code> 也都配置正确,怎么办?</p>
<p>我参考了这里:https://www.centos.org/forums/viewtopic.php?t=40708</p></description>
</item>
<item>
<title>Linux系统下,如何重置root密码?</title>
<link>https://huifeng.me/posts/how-to-reset-root-password/</link>
<pubDate>Wed, 04 May 2016 19:10:49 +0800</pubDate>
<guid>https://huifeng.me/posts/how-to-reset-root-password/</guid>
<description><p>本人遇到一个很尴尬的问题,忘记了 vps 的 root 的密码。怎么办?查阅官方提示,找到如下方法:</p>
<p><a href="https://www.vultr.com/docs/boot-into-single-user-mode-reset-root-password">https://www.vultr.com/docs/boot-into-single-user-mode-reset-root-password</a></p></description>
</item>
<item>
<title>为 Ubuntu 加载新硬盘</title>
<link>https://huifeng.me/posts/new-disk-mount-to-ubuntu/</link>
<pubDate>Tue, 19 Apr 2016 13:10:53 +0800</pubDate>
<guid>https://huifeng.me/posts/new-disk-mount-to-ubuntu/</guid>
<description><blockquote>
<p>Thanks for: <a href="http://www.111cn.net/sys/Ubuntu/73675.htm">http://www.111cn.net/sys/Ubuntu/73675.htm</a>
用 vagrant 本地虚拟了一个 Ubuntu,想把数据放到单独的磁盘里,查阅资料,下面把日志记录下来。</p>
</blockquote></description>
</item>
<item>
<title>Ubuntu安装黑屏问题(ubuntu black screen)</title>
<link>https://huifeng.me/posts/ubuntu-black-screen/</link>
<pubDate>Tue, 01 Sep 2015 19:09:05 +0800</pubDate>
<guid>https://huifeng.me/posts/ubuntu-black-screen/</guid>
<description><p>今天为一台联想安装ubuntu系统,确实手闲,看<code>Elementary OS</code>非常漂亮,就把一台好好的机子给做了,于是被坑了,但是问题最终通过我强大的搜索能力和完美的解决问题的思路,最终搞定了。下面记录下经验。</p></description>
</item>
<item>
<title>修改系统环境变量</title>
<link>https://huifeng.me/posts/system-path-edit/</link>
<pubDate>Wed, 26 Aug 2015 00:18:16 +0800</pubDate>
<guid>https://huifeng.me/posts/system-path-edit/</guid>
<description><p>每次,每次要改系统变量都要查,都要搜索,这次我把这个知识点记录下来,主要针对Linux和Mac系统.</p></description>
</item>
<item>
<title>Linode 的 CentOS-7.1 初始化操作</title>
<link>https://huifeng.me/posts/linode-centos-init/</link>
<pubDate>Sat, 15 Aug 2015 22:34:14 +0800</pubDate>
<guid>https://huifeng.me/posts/linode-centos-init/</guid>
<description><blockquote>
<p>参考文献:https://www.linode.com/docs/</p>
</blockquote>
<blockquote>
<p>前面内容不再多说,直接说我开始的地方:</p>
</blockquote></description>
</item>
<item>
<title>'问题:怎么修改页面都不生效'</title>
<link>https://huifeng.me/posts/%E9%97%AE%E9%A2%98-%E6%80%8E%E4%B9%88%E4%BF%AE%E6%94%B9%E9%A1%B5%E9%9D%A2%E9%83%BD%E4%B8%8D%E7%94%9F%E6%95%88/</link>
<pubDate>Mon, 10 Aug 2015 20:44:08 +0800</pubDate>
<guid>https://huifeng.me/posts/%E9%97%AE%E9%A2%98-%E6%80%8E%E4%B9%88%E4%BF%AE%E6%94%B9%E9%A1%B5%E9%9D%A2%E9%83%BD%E4%B8%8D%E7%94%9F%E6%95%88/</guid>
<description>vagrant+virtualbox 安装虚拟机会遇到服务器内容修改了但是页面不变化的问题 关闭Nginx的sendfile一项的属性: sudo vim /etc/nginx/nginx.conf 找到sendfile,将on改为off,保存关闭文件.</description>
</item>
<item>
<title>配置Nginx伪静态</title>
<link>https://huifeng.me/posts/07-%E9%85%8D%E7%BD%AEnginx%E4%BC%AA%E9%9D%99%E6%80%81/</link>
<pubDate>Mon, 10 Aug 2015 20:38:42 +0800</pubDate>
<guid>https://huifeng.me/posts/07-%E9%85%8D%E7%BD%AEnginx%E4%BC%AA%E9%9D%99%E6%80%81/</guid>
<description><p><code>sudo vim /etc/nginx/conf.d/default.conf</code>(编辑其他配置文件也可)</p>
<p>在server{}里面再添加一个location区块,或在index 设置行的下面添加一行<code>include laravel.conf;</code>(linuxeye一键包的方式)</p>
<div class="highlight"><pre class="chroma"><code class="language-fallback" data-lang="fallback">location / {
try_files $uri $uri/ /index.php?$query_string;
}
</code></pre></div></description>
</item>
<item>
<title>配置Nginx处理PHP请求</title>
<link>https://huifeng.me/posts/06-%E9%85%8D%E7%BD%AEnginx%E5%A4%84%E7%90%86php%E8%AF%B7%E6%B1%82/</link>
<pubDate>Mon, 10 Aug 2015 20:36:34 +0800</pubDate>
<guid>https://huifeng.me/posts/06-%E9%85%8D%E7%BD%AEnginx%E5%A4%84%E7%90%86php%E8%AF%B7%E6%B1%82/</guid>
<description><ol>
<li>运行<code>less /etc/php-fpm.conf</code>查看配置,<code>include=/etc/php-fpm.d/*.conf</code>一行说明只要在这个目录下的<code>conf</code>类型的文件都会被包含到配置里.该目录下会有一个www.conf的文件,为默认配置文件.
<ul>
<li><code>listen = 127.0.0.1:9000</code>表示监听地址,如果有请求是PHP脚本就发送到这个地址,可以理解为PHP脚本是通过该地址的服务来解析的.可以是IP地址加端口号,也可以用socket的方式,socket方式更安全些.</li>
</ul>
</li>
<li>修改Nginx的配置文件,在之前已经添加了!文件是:<code>/etc/nginx/conf.d/default.conf</code>,通过vi编辑器继续修改,添加nginx对php类文件的解析设置:</li>
</ol></description>
</item>
<item>
<title>配置Nginx虚拟主机</title>
<link>https://huifeng.me/posts/05-%E9%85%8D%E7%BD%AEnginx%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA/</link>
<pubDate>Mon, 10 Aug 2015 20:34:37 +0800</pubDate>
<guid>https://huifeng.me/posts/05-%E9%85%8D%E7%BD%AEnginx%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA/</guid>
<description><h2 id="完全diy配置的情况">完全DIY配置的情况</h2>
<p>默认情况下是安装在<code>/etc/nginx</code>目录下的:<code>nginx.conf</code>是主配置文件,里面有一个<strong>server</strong>区块是默认的,刚安装好打开的默认页面就是这里所设定的.<code>include /etc/nginx/conf.d/*.conf;</code>一行就是将所有conf.d目录下的所有.conf的配置文件全部加载进来,这样的话,我们要配置新的虚拟目录只需要将在该目录下添加.conf的配置文件即可,不同的站点可以是不同的配置文件.可以先配置一个模板型conf文件,比如我们可以先把自带的default.conf文件配置下:</p></description>
</item>
<item>
<title>安装Web服务器:Nginx</title>
<link>https://huifeng.me/posts/04-%E5%AE%89%E8%A3%85web%E6%9C%8D%E5%8A%A1%E5%99%A8nginx/</link>
<pubDate>Mon, 10 Aug 2015 20:32:33 +0800</pubDate>
<guid>https://huifeng.me/posts/04-%E5%AE%89%E8%A3%85web%E6%9C%8D%E5%8A%A1%E5%99%A8nginx/</guid>
<description>这个简单,直接上命令: sudo yum install -y nginx 启动服务:sudo systemctl start nginx 检查服务:systemctl status nginx 设为启动项:sudo systemctl enable nginx</description>
</item>
<item>
<title>安装PHP与常用扩展</title>
<link>https://huifeng.me/posts/03-%E5%AE%89%E8%A3%85php%E4%B8%8E%E5%B8%B8%E7%94%A8%E6%89%A9%E5%B1%95/</link>
<pubDate>Mon, 10 Aug 2015 19:44:06 +0800</pubDate>
<guid>https://huifeng.me/posts/03-%E5%AE%89%E8%A3%85php%E4%B8%8E%E5%B8%B8%E7%94%A8%E6%89%A9%E5%B1%95/</guid>
<description><div class="highlight"><pre class="chroma"><code class="language-fallback" data-lang="fallback">yum search php | grep fpm
</code></pre></div><p>可以找到一行是<code>php56u-fpm.x86_64</code>,就安装这个:</p>
<div class="highlight"><pre class="chroma"><code class="language-fallback" data-lang="fallback">sudo yum install -y php56u-fpm
</code></pre></div></description>
</item>
<item>
<title>安装数据库管理系统MariaDB(MySQL)</title>
<link>https://huifeng.me/posts/02-%E5%AE%89%E8%A3%85%E6%95%B0%E6%8D%AE%E5%BA%93%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9Fmariadb-or-mysql/</link>
<pubDate>Mon, 10 Aug 2015 19:40:49 +0800</pubDate>
<guid>https://huifeng.me/posts/02-%E5%AE%89%E8%A3%85%E6%95%B0%E6%8D%AE%E5%BA%93%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9Fmariadb-or-mysql/</guid>
<description><blockquote>
<p>Maria数据库具体可以搜索看,完全可以替代了MySQL数据库,推荐使用MySQL原作者以自己女儿命名的开源数据库Maria,MySQL被Oracle收下了。恩恩。。</p>
</blockquote>
<p><strong>注意,能运行下面的命令,前提是你已经成功添加了资源仓库,并且是CentOS 7.X,如果是6.X,建议直接跳到最后一项.</strong></p></description>
</item>
<item>
<title>添加资源仓库</title>
<link>https://huifeng.me/posts/01-%E6%B7%BB%E5%8A%A0%E8%B5%84%E6%BA%90%E4%BB%93%E5%BA%93/</link>
<pubDate>Mon, 10 Aug 2015 19:35:36 +0800</pubDate>
<guid>https://huifeng.me/posts/01-%E6%B7%BB%E5%8A%A0%E8%B5%84%E6%BA%90%E4%BB%93%E5%BA%93/</guid>
<description><p>由于centos自带的资源仓库里资源的版本不够新,所以我们选择添加两个资源仓库.</p>
<p>虚拟机从 <a href="https://github.com/chef/bento">https://github.com/chef/bento</a> 找,安装好后,进行下面的步骤:</p>
<p>这里我安装了centos7.1版本</p>
<p>下面开始:</p></description>
</item>
<item>
<title>Linux 系统常用命令</title>
<link>https://huifeng.me/posts/linux-common-commands/</link>
<pubDate>Mon, 10 Aug 2015 19:21:30 +0800</pubDate>
<guid>https://huifeng.me/posts/linux-common-commands/</guid>
<description><h2 id="常用指令">常用指令</h2>
<ul>
<li>ls 显示文件或目录
<ul>
<li>-l 列出文件详细信息l(list)</li>
<li>-a 列出当前目录下所有文件及目录,包括隐藏的a(all)</li>
</ul>
</li>
<li>mkdir 创建目录
<ul>
<li>-p 创建目录,若无父目录,则创建p(parent)</li>
</ul>
</li>
<li>cd 切换目录</li>
<li>touch 创建空文件</li>
<li>echo 创建带有内容的文件。</li>
<li>cat 查看文件内容</li>
<li>cp 拷贝</li>
</ul></description>
</item>
</channel>
</rss>