上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 108 下一页
摘要: df -h 查看 重新启动服务器就可以了 阅读全文
posted @ 2019-05-15 11:20 Mr.peter 阅读(177) 评论(0) 推荐(0)
摘要: 步骤1:启用expires模块 步骤2:修改虚拟主机配置文件 阅读全文
posted @ 2019-05-14 15:25 Mr.peter 阅读(330) 评论(0) 推荐(0)
摘要: 1.配置yum源, 2.查看安装包列表 3.安装 阅读全文
posted @ 2019-05-13 17:19 Mr.peter 阅读(235) 评论(0) 推荐(0)
摘要: 1、修改httpd的主配置文件httpd.conf,搜索ServerName#ServerName www.example.com:80 修改为:ServerName www.example.com:802、找到如下内容: <Directory /> AllowOverride none Requi 阅读全文
posted @ 2019-05-13 16:07 Mr.peter 阅读(274) 评论(0) 推荐(0)
摘要: 此教程的作用:设置SSH只允许特定用户从特定的IP登录,其它未经允许的用户和IP都不能登录 示例1:只允许192.168.0.222登录192.168.1.81 # vim /etc/hosts.allow,最后一行加入: sshd:192.168.0.222:allow //多个IP可以按照此格式 阅读全文
posted @ 2019-05-11 10:59 Mr.peter 阅读(10304) 评论(0) 推荐(2)
摘要: 已经 find / -name httpd | xargs rm -rf删光了httpd相关文件,但是使用yum install httpd 无法正常安装。 查看Httpd的状态是 解决办法: yum erase httpd.x86_64 yum install httpd service http 阅读全文
posted @ 2019-05-09 16:19 Mr.peter 阅读(199) 评论(0) 推荐(0)
摘要: find / -name nginx | xargs rm -rf 阅读全文
posted @ 2019-05-09 11:37 Mr.peter 阅读(4102) 评论(0) 推荐(0)
摘要: 1、停止gitlab 2、卸载gitlab(注意这里写的是gitlab-ce) 3、查看gitlab进程 4、杀掉第一个进程(就是带有好多.............的进程) 杀掉后,在ps aux | grep gitlab确认一遍,还有没有gitlab的进程 5、删除所有包含gitlab文件 阅读全文
posted @ 2019-05-09 11:36 Mr.peter 阅读(12706) 评论(1) 推荐(1)
摘要: 解决办法1: 解决办法2: 原因剖析: DOS下文件和Linux下文件格式差异问题导致的。【在windows里,换行用的两个符号,回车\r,换行符号\n,在linux下只需一个符号\n就可以了.】 阅读全文
posted @ 2019-04-28 11:34 Mr.peter 阅读(211) 评论(0) 推荐(0)
摘要: 原因:Linux系统的换行符是"\r\n",Windows上的换行符是"\n",Windows上编写shell脚本上传Linux,Linux无法正确识别"\n",导致。 解决办法1:生成文件名的那一行写完脚本之后敲个空格再换行就可以了。 解决办法2:把编写的shell脚本粘贴进vim编辑的环境中,保 阅读全文
posted @ 2019-04-17 14:25 Mr.peter 阅读(2009) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 108 下一页