友情提示:小程序,开发制作。

w命令的问题

今天用xshell登录管理我的机器是。想看看都谁在服务器上于是乎输入#w。靠居然出错。

#w

#70 colunn windows is too narrow

#

点击查看原图

字面的大概意思是窗口太窄,于是乎,最大化窗口ok。

点击查看原图

迎刃而解。

阅读全文>>

禁止nginx空主机头

为了防止域名解析恶意指向我们的站点,需要将nginx默认的空主机头禁止。修改nginx.conf ,使其主机头返回500

 nginx目录:/usr/local/nginx/conf/nginx.conf 找到:

 

 server

        {
                listen       80;
              ...

阅读全文>>

Linux学习web服务(源码安装)--LAMMP架构详解

本篇博文笔者试图通过自己的亲身实践来向大家讲解中小企业网基于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. 1.进入: http://api.map.baidu.com/lbsapi/creatmap/index.html (创建地图-百度地图API所见即所得工具)
  2. 切换城市,搜索需标注位置。(如下图:)
  1. 设置地图:大家可以对网站显示地图的宽高进行设置,其余选项不动。

阅读全文>>

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

mysql> create user 'testuse'@'localhost' identified by '111111';

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement


点击查看原图 

 

解决办法:

在命令行输入:mysql> flush privileges;

阅读全文>>

rpm安装mysql5.6.12遇到密码的问题

wget mysql.5.6.12.rpm 

rpm -ivh mysql.5.6.12.rpm

步骤都很常规。中间缺少什么库就安装什么库。安装完成之后发现,使用空密码无法登陆。

使用以前的改密码的方法都没有成功。

其中有

1.

[root@loaclhost] /usr/bin/mysqld_safe --usr=mysql --skip-grant-tables --skip-networking&
开启第二个终端

[root@loaclhost] /usr/bin/mysql -u root mysql 

2.

使用mysqladmin。输入  

mysqladmin -u root -p oldpassword newpasswd

&nbs...

阅读全文>>

centos6X 安装中文输入法

1.用root登录 ,或su root
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

阅读全文>>

linux定时任务的cromtab设置

为当前用户创建cron服务

1.  键入 crontab  -e 编辑crontab服务文件

      例如 文件内容如下:

     */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh 

     保存文件并并退出

     */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh

    */2 * * * ...

阅读全文>>