2014年4月1日

rrdtool

摘要: yum-yinstallrrdtoolyum-yinstallnet-snmpyum-yinstallnet-snmp-utilsservicesnmpdstartservicerrdcachedstart/etc/yum.repos.d/dag.repo[dag]name=Dag RPM Repository for Red Hat Enterprise Linuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1gpgkey=http://dag.wieers.com/rpm/packages/R 阅读全文

posted @ 2014-04-01 20:39 明明知道 阅读(143) 评论(0) 推荐(0)

安装nginx

摘要: 1.linux 下面安装 1.下载pcre-8.10.tar.gz nginx-1.1.1.tar.gz 2.安装 pcre 让nginx支持rewrite pcre-8.10.tar.gz 上传到/home 目录下面 1) 解压pcre tar zxvf pcre-8.10.tar.gz 解压pcre 后 /home 下面会有pcre-8.10 文件夹 2)配置pcre cd /home/pcre-8.10 ./configure 输入该命令后屏幕会生成一堆文件,不用去管它 3)make 在linux 中输入 make 命令后屏幕会生成一堆文件,不用去管它 4)安装 在... 阅读全文

posted @ 2014-04-01 20:31 明明知道 阅读(128) 评论(0) 推荐(0)

linux运行级别

摘要: /etc/inittab# inittab is only used by upstart for the default runlevel.## ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## System initialization is started by /etc/init/rcS.conf## Individual runlevels are started by /etc/init/rc.conf## Ctrl-Alt-Delete is handled by /etc/init/con 阅读全文

posted @ 2014-04-01 20:28 明明知道 阅读(150) 评论(0) 推荐(0)

命令行提示符

摘要: echo $PS1\d :代表日期,格式为weekday month date,例如:"Mon Aug 1"\H :完整的主机名称。例如:我的机器名称为:fc4.linux,则这个名称就是fc4.linux\h :仅取主机的第一个名字,如上例,则为fc4,.linux则被省略\t :显示时间为24小时格式,如:HH:MM:SS\T :显示时间为12小时格式\A :显示时间为24小时格式:HH:MM\u :当前用户的账号名称\v :BASH的版本信息\w :完整的工作目录名称。家目录会以 ~代替\W :利用basename取得工作目录名称,所以只会列出最后一个目录\# :下达 阅读全文

posted @ 2014-04-01 20:26 明明知道 阅读(529) 评论(0) 推荐(0)

启动nginx+php

摘要: 1.启动nginxservice nginx start2.启动php模块/usr/sbin/php-fpm start3.启动mysqlservice mysqld start注:如果出现Another MySQL daemon already running with the same unix socket,就rm /var/lib/mysql/mysql.sock 阅读全文

posted @ 2014-04-01 20:25 明明知道 阅读(195) 评论(0) 推荐(0)

导航