原创 我的友情鏈接

51CTO博客開發龍哥小王

原创 Shell中的&&、 ||、 ()和 {}

  &&運算符: command1  && command2 &&左邊的命令(命令1)返回真(即返回0,成功被執行)後,&&右邊的命令(命令2)才能夠被執行;換句話說,“如果這個命令執行成功&&那麼執行這個命令”。 (cmd1;cmd2;

原创 Cookies 必須啓用才能登入。

Cookies 必須啓用才能登入的解決方法 “Cookies 必須啓用才能登入”或者“Cookies must be enabled past this point.”  這有多種原因造成:  1、firefox可以正常登陸,谷歌和36

原创 共享內存和信號量

共享內存:可以通過ipcs -lm命令查看目前系統共享內存的參數限制:# ipcs -lm—— Shared Memory Limits ——–max number of segments = 4096max seg size (kbyte

原创 hwclock

 功能說明:顯示與設定硬件時鐘。   語  法:hwclock [--adjust][--debug][--directisa][--hctosys][--show][--systohc][--test] [--utc][--version

原创 linux sudo 重定向,實現只有系統管理員纔有權限操作的文件中寫入信息

衆所周知,使用 echo 並配合命令重定向是實現向文件中寫入信息的快捷方式。 本文介紹如何將 echo 命令與 sudo 命令配合使用,實現向那些只有系統管理員纔有權限操作的文件中寫入信息。   比如要向 test.asc 文件中隨便寫入點

原创 升級python到2.7

tar xvf Python-2.7.2.tar.bz2 ./configure --prefix=/usr/local/python27 make make install mv /usr/bin/python /usr/bin/py

原创 linux查看進程的內存

  Linux性能測試pmap命令        pmap [ -x | -d ] [ -q ] pids...        pmap -V 選項含義        -x   extended       Show the extend

原创 apache,直接輸入網址不能列出目錄

 修改/etc/httpd/conf.d/welcome.conf Options -Indexes改爲Options Indexes

原创 shell:for和while用法

寫法一: ---------------------------------------------------------------------------- #!/bin/bash while read line do     ec

原创 #1045 - Access denied for user 'root'@'localhost' (using password: YES)

# /etc/init.d/mysql stop  # mysqld_safe --user=mysql --skip-grant-tables --skip-networking &  # mysql -u root mysql 

原创 ssh免密碼輸入

用root執行ssh 源機中: root用戶下執行: ssh-keygen -t rsa mv /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys 將源機的/root/.ssh/aut

原创 linux檢測硬盤壞道

 linux快速檢測硬盤壞道 smartctl -a   /dev/sda3 有問題的硬盤:(硬盤讀有問題) 無問題的硬盤:   上圖中最後一行: Non-medium error count 非介質錯誤。意思是說不是盤的問題,一般是電

原创 linux cache buffer

      buffer 與cache 的區別 A buffer is something that has yet to be "written" to disk. A cache is something that has been

原创 升級zabbix2.0.0

 1、停止zabbix-server   2、備份現在的zabbix數據庫   3、備份配置文件,php文件,zabbix二進制文件   4、安裝新的server二進制文件 ./configure --enable-server --wit