B3log Solo

Aixe

Welcome to Aixe Blog

存档: 2011 年 11 月 (9)

sendmail 邮件服务器搭建 有更新!

2011-11-25 10:39:09 c.beyondblack
0  评论    348  浏览

一、sendmail搭建SMTP

     1、安装相关软件

          安装m4、sendmail、sendmail-cf、sendmail-doc、sendmail-devel软件,这些软件系统光盘都自带有

     2、了解sendmail主要配置文件

         1)sendmail主要配置文件位于/etc/mail/目录下,例

             [root@CentOS5 ~]# ls /etc/mail/
             access                helpfile                   Makefile          submit.mc
             access.db           local-host-names   sendmail.cf      trusted-users
             domaintable       mailertable            sendmail.mc    virtusertable
             domaintable.db  mailertable.db       submit.cf          virtusertable.db

sendmail, dovecot, 邮件系统

vmstat 命令详解

2011-11-23 22:31:19 c.beyondblack
0  评论    237  浏览

[root@mkk ~]# vmstat 2 5
procs ---------------memory-----------------swap-- ---------io-------- --system------ -----cpu------
r    b     swpd    free      buff     cache     si   so   bi    bo    in       cs    us   sy    id   wa  st
0   0       0       23304   8320  125808    0    0   198  30  1037   144   2     3    90   4    0
0   0       0       23304   8320  125808    0    0     0     0   1004    76    0     1   100  0    0
0   0       0       23304   8328  125808    0    0     0    16  1005    59    0     1   100  0    0
0   0       0       23304   8328  125808    0    0     0     0   1004    62    0     0   100  0    0
0   0       0       23304   8328  125808    0    0     0    10  1006    67    0     1     99  0    0

系统性能, 抚琴煮酒, vmstat

linux sort 命令(转) 有更新!

2011-11-16 17:10:08 c.beyondblack
0  评论    185  浏览

sort是在Linux里非常常用的一个命令,管排序的,集中精力,五分钟搞定sort,现在开始!

sort的工作原理

 

sort将文件的每一行作为一个单位,相互比较,比较原则是从首字符向后,依次按ASCII码值进行比较,最后将他们按升序输出。

[rocrocket@rocrocket programming]$ cat seq.txt
banana
apple
pear
orange
[rocrocket@rocrocket programming]$ sort seq.txt
apple
banana
orange
pear

命令集

linux wc命令(转) 有更新!

2011-11-16 17:09:57 c.beyondblack
0  评论    231  浏览

今天的内容是Linux的wc命令,这个名字很好记,因为什么,你也知道。

这个命令的功能也很好记,因为它功能很有限:

wc -c filename:显示一个文件的字节数

 

wc -m filename:显示一个文件的字符数

wc -l filename:显示一个文件的行数

wc -L filename:显示一个文件中的最长行的长度

wc -w filename:显示一个文件的字数

命令集

free 命令

2011-11-16 17:09:42 c.beyondblack
0  评论    233  浏览

   大家都知道free命令是linux下查看使用情况的,那么查看出来的结果具体是什么意思呢,内容有规律吗

废话不多说,大家看了就懂了。

[root@CentOS5 ~]# free -m
              total           used           free     shared     buffers     cached
Mem:      804               695          108          0            72             501
-/+ buffers/cache:       121           683
Swap:    1631               0            1631

 
命令集

Linux 服务器架设流程(笔记)

2011-11-08 14:55:49 c.beyondblack
0  评论    188  浏览

一、             架站基本流程

 

1、  了解网络环境

2、  了解架站的目的

3、  Linux硬盘规划

4、  了解要架设站点的原理

5、  服务的软件安装,漏洞修补,升级

6、  主机设置、启动、观察与调试

linux架站流程

top进程查看

2011-11-08 10:56:47 c.beyondblack
0  评论    172  浏览

top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。

top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 191272k total, 173656k used, 17616k free, 22052k buffers
Swap: 192772k total, 0k used, 192772k free, 123988k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1379 root 16 0 7976 2456 1980 S 0.7 1.3 0:11.03 sshd
14704 root 16 0 2128 980 796 R 0.7 0.5 0:02.72 top
1 root 16 0 1992 632 544 S 0.0 0.3 0:00.90 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0

linux进程, 进程管理, top

Linux进程详解

2011-11-05 09:23:31 c.beyondblack
0  评论    285  浏览

超级进程(Super daemon

一、linux系统启动的过程及顺序:

1、  计算机加电,并调用bois 设置

2、  bois 调用硬盘主引导记录 mbr中的grub引导器

3、  grub 引导器将调用内核,进行硬件检测与初始化

4、  内核将调用linux 中的第一个进程init 进程

5、  init进程称为linux系统的父进程,即由该进程调用linux系统中的其它所有的子进程

6、  最终提示输入用户名与密码、

 

linux进程, linux服务级别, init, 进程

nginx 加入系统服务(转)

2011-11-01 17:52:58 c.beyondblack
0  评论    287  浏览

1、编写脚本,名为nginx
#!/bin/sh 

# nginx - this script starts and stops the nginx daemon 

# chkconfig: - 85 15 
# description: Nginx is an HTTP(S) server, HTTP(S) reverse 
# proxy and IMAP/POP3 proxy server 
# processname: nginx 
# config: /etc/nginx/nginx.conf 
# config: /etc/sysconfig/nginx 
# pidfile: /var/run/nginx.pid

# Source function library. 
. /etc/rc.d/init.d/functions

# Source networking configuration. 
. /etc/sysconfig/network

# Check that networking is up. 
[ "$NETWORKING" = "no" ] && exit 0

nginx="/usr/local/nginx/sbin/nginx" 

系统服务, nginx

最新评论

评论最多的文章

访问最多的文章

分类标签

友情链接

存档

TOP