上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 43 下一页

2012年9月11日

crontab: command not found解决方法

摘要: crontab命令是大多数系统都有的命令,有不排除由于有些系统被精简而没有的,这时对于CentOS系统,我们可以通过下面两个命令来安装。yum-yinstallgccgcc-c++autoconfvixie-cronyum-yinstallgccgcc-c++autoconfcrontabsvixie-cron软件包是cron的主程序;crontabs软件包是用来安装、卸装、或列举用来驱动 cron 守护进程的表格的程序。 阅读全文

posted @ 2012-09-11 20:35 cn三少<script></script> 阅读(378) 评论(0) 推荐(0) 编辑

shell 下 用mail 发送邮件

摘要: 停掉sendmail/etc/init.sendmailstop;chkconfigsendmailoff;yum-yinstallpostfix*servicepostfixstartyum-yinstalldovecot*配置postfixvim/etc/postfix/main.cfmyhostname=mail.g.cnmydomain=g.cnmyorigin=$myhostnamemyorigin=$mydomain//监听端口inet_interfaces=all#inet_interfaces=$myhostname#inet_interfaces=$myhostname,lo 阅读全文

posted @ 2012-09-11 14:53 cn三少<script></script> 阅读(272) 评论(0) 推荐(0) 编辑

Nagios3.0.5在CentOS5.2中安装(一)

摘要: 1.系统:CentOS 5.22.安装前准备:1).安装好apache,GD库(我的GD库安装在/usr/local/libgd)。2).下载Nagios3.0.5,Nagios-plugins1.4.11,nrpe2.12,nsclient++# http://www.nagios.org/download/wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.5.tar.gzwget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plug 阅读全文

posted @ 2012-09-11 10:10 cn三少<script></script> 阅读(174) 评论(0) 推荐(0) 编辑

2012年9月10日

Nagios远程监控软件的安装与配置详解

摘要: 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://evolution.blog.51cto.com/3343305/660082Nagios是 一款功能强大的网络监视工具,它可以有效的监控windows、linux、unix主机状态以及路由器交换机的网络设置,打印机工作状态等,并将状态出 现异常的服务及时以邮件、msn短信等形式第一时间通告管理员。由于它是一款遵循GPLv2的开源网络监控软件,以其出色的性能低廉的使用成本,深受广大 用户的好评。nagios的主要监控功能有:1)监控网络服务(HTTP、POP3、SMTP、PIN 阅读全文

posted @ 2012-09-10 11:27 cn三少<script></script> 阅读(197) 评论(0) 推荐(0) 编辑

2012年9月6日

Linux自动更新时间

摘要: Can use ntpdate or rdate command to sync the datetime with remote server.i.e.:# ntpdate remote_serveror# rdate -s remote_serverAlso, sync the remote server periodically is a good idea!# crontab -e# auto sync with time server at 0:00 everyday0 0 * * * rdate -t 60 -s stdtime.gov.hk 阅读全文

posted @ 2012-09-06 11:15 cn三少<script></script> 阅读(197) 评论(0) 推荐(0) 编辑

2012年9月2日

Android开发环境搭建全程演示(jdk+eclip+android sdk)

摘要: 一 相关下载(1) java JDK下载:进入该网页: http://java.sun.com/javase/downloads/index.jsp (或者直接点击下载)如下图: 选择 Download JDK 只下载JDK,无需下载jre. (2)eclipse下载 进入该网页: http://www.eclipse.org/downloads/ (或者直接点击下载:BT下载 HTTP下载) 如下图: 我们选择第一个(即eclipse IDE for java EE Developers)(3)下载Android SDK 说明: Android SDK两种下载版本,一种是包含具体版本的SDK 阅读全文

posted @ 2012-09-02 18:06 cn三少<script></script> 阅读(152) 评论(0) 推荐(0) 编辑

Android开发之旅:环境搭建及HelloWorld

摘要: ——工欲善其事必先利其器引言本系列适合0基础的人员,因为我就是从0开始的,此系列记录我步入Android开发的一些经验分享,望与君共勉!作为Android队伍中的一个新人的我,如果有什么不对的地方,还望不吝赐教。在开始Android开发之旅启动之前,首先要搭建环境,然后创建一个简单的HelloWorld。本文的主题如下:1、环境搭建1.1、JDK安装1.2、Eclipse安装1.3、Android SDK安装1.4、ADT安装1.5、创建AVD2、HelloWorld1、环境搭建1.1、JDK安装如果你还没有JDK的话,可以去这里下载,接下来的工作就是安装提示一步一步走。设置环境变量步骤如下: 阅读全文

posted @ 2012-09-02 16:46 cn三少<script></script> 阅读(172) 评论(0) 推荐(0) 编辑

2012年8月31日

CentOS 6.3安装配置LAMP服务器(Apache+PHP5+MySQL)

摘要: 准备篇:1、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败,正确的应该是添加到默认的22端口这条规则的下面如下所示:系统运维 www.osyu... 阅读全文

posted @ 2012-08-31 17:17 cn三少<script></script> 阅读(249) 评论(0) 推荐(0) 编辑

2012年8月30日

CentOS下设置Mysql的root密码

摘要: 很郁闷,MYSQL装完了,PHPMyadmin也装完了,发现不知道密码。在网上找了些贴子,有很多没用的,不过最后还是弄好了,归纳了一下(去除了不少失败的操作)。123/etc/init.d/mysql stopmysqld_safe --user=mysql --skip-grant-tables --skip-networking &mysql -u root mysql进入mysql命令界面123mysql&gt; UPDATE user SET Password=PASSWORD('newpassword') where USER='root 阅读全文

posted @ 2012-08-30 20:48 cn三少<script></script> 阅读(12581) 评论(0) 推荐(1) 编辑

CentOS yum安装LAMP环境

摘要: 本文适用于所有的vps,测试环境为NordicVPS 256M XEN非LNMP,非一键安装包yum -y update yum -y install gcc gcc-c++ autoconf make automake libtool libevent libevent-devel yum -y install ncurses ncurses-devel gd gd-devel freetype freetype-devel fontconfig fontconfig-devel libjpeg libjpeg-devel zlib zlib-devel pcre pcre-devel yu 阅读全文

posted @ 2012-08-30 20:38 cn三少<script></script> 阅读(319) 评论(0) 推荐(0) 编辑

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 43 下一页

导航