1:启动apache:systemctl status httpd.service 2:查看看日志:tail -f /var/log/httpd/error_log 报:Apache ERROR: No space left on device: AH00023: Couldn't create t ...
分类:
Web程序 时间:
2020-01-16 18:37:27
阅读次数:
93
!/bin/bash path=/var/log log=${path}/httpd mysql.log name=(httpd mysql) exs_init[0]="systemctl restart httpd" exs_init[1]="systemctl restart mysqld" f ...
分类:
系统相关 时间:
2020-01-16 18:35:27
阅读次数:
184
制作CentOS7.7 内网yum源 如果CentOS服务器处在内网环境中时,如果缺少依赖手动安装那么会非常麻烦,要花费很多时间来寻找rpm包,现在如果搭建本地的yum源,就非常方便了,如果搭建http的,那么局域网内其他服务器就都可以使用了,使用yum源首先需要一个CentOS安装镜像 | IP ...
分类:
其他好文 时间:
2020-01-16 10:45:21
阅读次数:
90
本章主要安装Varnish缓存代理服务器以及Varnish概述
分类:
其他好文 时间:
2020-01-14 19:04:18
阅读次数:
98
chkconfig命令使用 自启动目录脚本应该放在/etc/init.d/ [root@localhost ~]$ chkconfig --list # 列出所有被chkconfig管理的服务 [root@localhost ~]$ chkconfig --add httpd # 添加指定的服务,让 ...
分类:
其他好文 时间:
2020-01-14 10:14:11
阅读次数:
93
问题 如何拒绝对某特定扩展名文件的下载,如何防盗链 解决方案 虚拟主机服务器上,如果有过多的mp3等文件,可能会被搜索引擎查到并且导致巨额的下载量。这种情况下,对服务器的负担有很大的影响那么如和禁止某种特殊文件的下载呢? 编辑/usr/prima/etc/httpd/site.conf在其中加入如下 ...
分类:
其他好文 时间:
2020-01-12 21:54:50
阅读次数:
91
安装目录\xampp\apache\conf 下 httpd.conf文件 或者直接在控制器中打开 修改位置 两处都要修改 DocumentRoot "C:/你的目录"<Directory "C:/你的目录"> 重启即可. 另修改root密码可在adminphp中设置全部或者指定域中如127或者lo ...
分类:
其他好文 时间:
2020-01-12 11:54:25
阅读次数:
109
问题 当访问一个站点的时候,报告“500 Internal Server Error”,查看/var/log/httpd/error_log,报告“/www/users/test.com/.htaccess: Options not allowed here”,或者报告“ErrorDocument ...
分类:
数据库 时间:
2020-01-12 09:48:00
阅读次数:
115
问题 在虚拟主机站点中,有些站点需要rewrite URL支持。 解决方案 1. 需要在apache的配置文件httpd.conf中加入相应配置: Apache-1.3.x版本,在/usr/prima/apache_ssl/conf/httpd.conf里加入:LoadModule rewrite_ ...
分类:
Web程序 时间:
2020-01-12 09:47:48
阅读次数:
104
问题 访问所有网站的内容都是一样的 解决方案 用户反映 访问所有网站的内容都是一样的 检查 /usr/prima/etc/httpd/virtual.conf 发现路径和用户都上正常的上传测试文件到其他站点访问不了,检查解析也是正确的 是http -S 发现site.conf文件里的 IP地址和vi ...
分类:
Web程序 时间:
2020-01-12 09:34:47
阅读次数:
100