禁止nginx空主机头
为了防止域名解析恶意指向我们的站点,需要将nginx默认的空主机头禁止。修改nginx.conf ,使其主机头返回500
nginx目录:/usr/local/nginx/conf/nginx.conf 找到:
server
{listen 80;
...
本篇博文笔者试图通过自己的亲身实践来向大家讲解中小企业网基于LAMMP架构的实现。本片博文主要设计的知识体系如下,由笔者全部在RHEL6.4环境下进行搭建和实现。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
一、试验环境和软件版本
二、httpd-2.4.6的源码安装
三、如何使用通用二机制包安装mysql
四、编译安装php,实现与apache服务器的分离
五、源码编译memcached
六、源码安装PHP扩展程序memcache
七、安装PHP加速器xcache
八、简单测试网页的编写
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
PHP configure --help 说明中英对照
PHP configure --help说明中英对照
配置帮助表:
--help | 显示帮助信息 | display this help and exit |
--version | 显示版本 | display version information and exit |
--quiet, --silent | 不显示checking……信息 | do not print`checking...'messages |
--cache-file=FILE | 在指定文件中存储测试结果 |
cache test results in FILE [disabled] |
--no-create | configure脚本运行结束后不输出结果文件,常用于正式编译前的测试。 | do not create output files |
安...
mysql5.5和mysql5.6的默认配置对比
将百度地图插入插入到你的网页中
- 1.进入: http://api.map.baidu.com/lbsapi/creatmap/index.html (创建地图-百度地图API所见即所得工具)
- 切换城市,搜索需标注位置。(如下图:)
- 设置地图:大家可以对网站显示地图的宽高进行设置,其余选项不动。
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
解决办法:
在命令行输入:mysql> flush privileges;
2.yum install "@Chinese Support"
3.exit
4.回到桌面,system->preferences->input method
5.如果没有,先注销一下。
6.到里面add输入法到列表里。
7.最后再注销、登录。
========================================================
# yum install "@Hindi Support"
# yum install "@Chinese Support"
OR
# yum groupinstall “Chinese Support”
这是CentOS 5的,应当适用于CentOS 6
为当前用户创建cron服务
1. 键入 crontab -e 编辑crontab服务文件
例如 文件内容如下:
*/2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh
保存文件并并退出
*/2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh
*/2 * * * ...