Category Archives: Linux

Linux下Apache安装及配置

Apache yum安装, httpd.conf配置, Service操作
image

More…

Posted in Linux | Tagged , , , | 1 Comment

CentOS/RHEL上Apache 403 Forbidden解决方法

今天配置httpd, 更改默认主目录, 增加Alias, 但不管怎么折腾, NND都是403…一直以为自己是个SB, 修改httpd后忘记restart, 结果不是, restar了N次, 仍旧403, 无语了.

"安全增强式Linux(SELinux, Security-Enhanced Linux)是一种强制访问控制(mandatory access control)的实现。它的作法是以最小权限原则为基础,在Linux内核中使用Linux安全模块。它并非一个Linux发行版,而是一组可以套用在类Unix操作系统的修改。"

我的解决方案就是将SELinux设置为: Permissiv 或直接Disabled.

More…

Posted in Linux | Tagged , , | 1 Comment

Linux部分常用命令小结

初学.
处理文件

  1. 查看当前目录详情: pwd, ls -l
  2. 创建新目录: mkdir gl / mkdir /gl/copy
  3. 切换目录: cd gl
  4. 创建文件: touch gl/test.text
  5. 查找文件: locate
  6. 复制文件: cp -i test.text /gl/copy/ R

More…

Posted in Linux | Tagged , , , , , | 2 Comments
  • Page 2 of 2
  • <
  • 1
  • 2