随笔 - 137  文章 - 1  评论 - 3  阅读 - 14万 

随笔分类 -  linux

linux 安装 php
摘要:1.libxml2安装 tar -zxvf libxml2-2.6.26.tar.gz cd libxml2-2.6.26 ./configure --prefix=/usr/local/libxml make make install make cl... 阅读全文
posted @ 2014-04-17 13:06 ヽ坚强的蘑菇 阅读(310) 评论(0) 推荐(0) 编辑
linux 安装 apache
摘要:1. 系统基本信息 CentOS 6.4 内存2G 硬盘 200G cpu 4核 (cat /proc/cpuinfo |grep 'processor'|wc -l 查看cpu核数命令) 2. apache版本 httpd-2.2.17.tar.gz 3. 检... 阅读全文
posted @ 2014-04-17 10:13 ヽ坚强的蘑菇 阅读(382) 评论(0) 推荐(0) 编辑
linux 系统安装 mysql
摘要:安装mysql所需要的依赖环境yum -y install gcc gcc-c++ gcc-g77 autoconf automake zlib* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* mysql的版本是 mysql:5.1.55 ... 阅读全文
posted @ 2014-03-05 21:20 ヽ坚强的蘑菇 阅读(217) 评论(0) 推荐(0) 编辑
linux 新增挂载新硬盘
摘要:1.添加磁盘,查看磁盘状况[root@db1/]#fdisk-lDisk/dev/sda:10.7GB,10737418240bytes255heads,63sectors/track,1305cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sda1*15113059277537+83Linux/dev/sda211501204843+82LinuxswapPartitiontableentriesarenotindiskorderDisk/dev/sdb:5368MB,5 阅读全文
posted @ 2014-03-05 20:26 ヽ坚强的蘑菇 阅读(248) 评论(0) 推荐(0) 编辑
linux copy
摘要:cp -ri 131115-6/* /web/www/attachment/ 把13这个文件夹下面所有的文件和文件夹复制到 /web/www/attachmentcp -a a /web/www 把a文件夹复制到 /web/www下面 阅读全文
posted @ 2013-11-28 11:48 ヽ坚强的蘑菇 阅读(145) 评论(0) 推荐(0) 编辑
linux tar 增量备份命令
摘要:tar --newer-mtime "2013-09-17 00:00:00" -zcvf /var/www/good.tar.gz spider/ 阅读全文
posted @ 2013-09-17 11:02 ヽ坚强的蘑菇 阅读(346) 评论(0) 推荐(0) 编辑
nginx phpcms rewrite规则
摘要:location / { rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last ; rewrite ^/show-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last ; rewrite ^/list-([0 阅读全文
posted @ 2013-03-27 13:48 ヽ坚强的蘑菇 阅读(310) 评论(0) 推荐(0) 编辑
nginx启动,重启,关闭命令
摘要:停止操作 停止操作是通过向nginx进程发送信号(什么是信号请参阅linux文 章)来进行的 步骤1:查询nginx主进程号 ps -ef | grep nginx 在进程列表里 面找master进程,它的编号就是主进程号了。 步骤2:发送信号 从容停止Nginx: kill -QUIT 主进程号 快速停止Nginx: kill -TERM 主进程号 强制停止Nginx: pkill -9 nginx 另外, 若在nginx.conf配置了pid文件存放路径则该文件存放的就是Nginx主进程号,如果没指定则放在nginx的logs目录下。有了pid文 件,我们就不用先查询Nginx的主进程号. 阅读全文
posted @ 2013-03-27 13:35 ヽ坚强的蘑菇 阅读(182) 评论(0) 推荐(0) 编辑
Linux下zip unzip的用户示例 解压到指定目录
摘要:1.unzip解压到制单目录[root@localhost cactiplugins]# mkdir monitor[root@localhost cactiplugins]# unzip monitor-0.8.2.zip -d monitorArchive: monitor-0.8.2.zip inflating: monitor/wz_tooltip.js inflating: monitor/index.php inflating: monitor/LICENSE inflating: monitor/sounds/index.php inflating: ... 阅读全文
posted @ 2013-03-27 10:57 ヽ坚强的蘑菇 阅读(2477) 评论(0) 推荐(0) 编辑
服务器配置 隐藏apache和php的版本
摘要:第一个隐藏apache和php版本的经典,隐藏apache和php版本是服务器管理人员和程序员必回的,多的不说了,现在我们就开始自己动 手学习怎样隐藏apache版本和隐藏php版本吧!其实隐藏apache版本和php版本很简单,简单的就是两句话,那为什么我还要写这么多呢?那是因 为我写了很多废话,好了,我们现在进入正题,开始学习隐藏apache和php版本了,O(∩_∩)O哈哈哈~ 第一讲开拍: 隐藏apache和php的版本信息,web server避免一些不必要的麻烦,可以把apache和php的版本信息不显示隐藏 Apache 版本信息/etc/apache2/apach... 阅读全文
posted @ 2012-12-05 11:27 ヽ坚强的蘑菇 阅读(440) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示