建站教程

  • centos 修改文件夹属性

    <p>&nbsp;</p><p>修改文件夹以及文件夹下所有文件夹以及文件权限</p><p>chmod -R 777 &nbsp;./</p><p>文件权限</p><p style="margin-left:auto;">r 读权限read&nbsp;(4)</p><p style="margin-left:auto;">w 写权限write (2)</p><p style="margin-left:auto;">x 执行权限execute&nbsp; (1)</p><p style="margin-left:auto;">(由www.codecate.com整理)</p><p style="margin-left:auto;">文件对应有权限数字和权限组说明:</p><p style="margin-left:auto;">总共分为一下几个部分</p><p style="margin-left:auto;">【文件或文件夹】【owner权限】【group权限】【others权限】</p><p style="margin-left:auto;">【文件是-,文件夹是d】【r/w/x相加】【r/w/x相加】【r/w/x相加】</p><p style="margin-left:auto;">&nbsp;</p><p style="margin-left:auto;">&nbsp;</p>

    Code&Cate 2020-01-17 浏览(1805 评论(0 阅读原文>>
  • 建站使用redis

    <p>建站可能会需要redis服务,那么在centos下面可以很简单</p><p style="margin-left:0px;">1.通过yum命令可以直接安装redis</p><p style="margin-left:0px;">yum install redis</p><p style="margin-left:0px;">2.通过命令行连接redis服务</p><p style="margin-left:0px;">redis-cli -h host -p port -a password</p><p style="margin-left:0px;">3.如果是在一台机器上直接用</p><p style="margin-left:0px;">redis-cli就可以连接到redis</p>

    Code&Cate 2020-01-16 浏览(1753 评论(0 阅读原文>>
  • 百度https验证

    <p>&nbsp;</p><p>百度站长中的https验证如下:</p><figure class="image image_resized" style="width:47.16%;"><img src="https://www.codecate.com/blog/download/res/745/5462/a78ce8d58ec3cd44fbdfaa007f08bae6.jpg"></figure><p>&nbsp;</p><p>如果用nginx的话只需要如下配置:</p><p>server {</p><p>&nbsp; &nbsp;listen 80;</p><p>&nbsp; &nbsp;server_name www.codecate.com;</p><p>&nbsp;</p><p>rewrite ^(.*)$ https://${server_name}$1 permanent; &nbsp;</p><p>} &nbsp; &nbsp;</p><p>&nbsp;</p><p>server {</p><p>&nbsp; &nbsp;listen 443;</p><p>&nbsp; &nbsp;server_name &nbsp;www.codecate.com;</p><p>}</p><p>&nbsp;</p><p>(由www.codecate.com整理)这样就能将http的请求转发至https,但是https需要找个免费的ssl证书配置下</p><p>&nbsp;</p><p>&nbsp;</p>

    Code&Cate 2020-01-16 浏览(1891 评论(0 阅读原文>>

本栏推荐

  • 建站使用redis

    建站可能会需要redis服务,那么在centos下面可以很简单

点击排行

  • 建站使用redis

    建站可能会需要redis服务,那么在centos下面可以很简单

微信关注