B3log Solo

Aixe

Welcome to Aixe Blog

linux下搭建mysql+php+apache 有更新!

2011-12-01 10:24:09 c.beyondblack
2  评论    939  浏览

linux平台安装apache+php+mysql 既

httpd-2.2.21、mysql-5.0.22、php-5.3.8

httpd-2.2.21, mysql, php, LAMP

CentOS5安装花生壳 有更新!

2011-11-25 14:22:17 c.beyondblack
1  评论    863  浏览

   首先,非常感谢花生壳工作员的耐心指导,才使得我配置成功。在此深深的感谢!!!

1、安装必要的开发包

 


[root@localhost ~]# yum install gcc gcc-c++ autoconf automake

 


2、下载phddns-2.0.2.16556.tar.gz到某一个目录

centos5, 花生壳, phlinux, phddns

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  评论    284  浏览

超级进程(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

Samba服务器配置 有更新!

2011-10-22 17:04:22 c.beyondblack
0  评论    362  浏览

引言:
使用Samba服务器需要防火墙开放以下端口
UDP 137 
UDP 138 
TCP 139 
TCP 445
vi /etc/sysconfig/iptables #配置防火墙端口

-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT

/etc/rc.d/init.d/iptables restart 重启防火墙,使规则生效

1、检查Samba服务包是否已安装

Samba, SambaServer

解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 问题

2011-10-21 15:10:29 c.beyondblack
0  评论    435  浏览

最近新装好的mysql在进入mysql工具时,总是有错误提示:
# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
或者
# mysql -u root -p password 'newpassword'
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'

Access, password, 1045, MYSQL ERROR 1045, mysql

linux 查找包命令

2011-10-19 15:14:03 c.beyondblack
0  评论    300  浏览

linux 查找包命令

whatprovides, yum

SELinux 配置 有更新!

2011-10-19 13:29:29 c.beyondblack
3  评论    501  浏览

SELINUX关闭详细

SELinux, setenforce

linux 安装网卡驱动

2011-10-19 13:25:46 c.beyondblack
0  评论    430  浏览

   首先说明下,我的网卡是Atheros AR8132 PCI-E Fast Ethernet Controller(这类网卡缩写是ATHEROS ar8132)。系统是CentOS 5.3

大家可以在网上搜下AR81Family-linux-v1.0.1.14.tar.gz下载

U盘挂载(我U盘格式为FAT32,如果是NTFS 就改 -t ntfs)

ar8132, AR81, 网卡驱动

linux 配置VPN客户端 有更新!

2011-10-14 16:35:55 c.beyondblack
2  评论    437  浏览

1、 安装rpm命令的所有包 yum -y install rpm*(后面要用到rpmbuild命令,我也不没有具体去找是哪个包,所有安装了rpm全部包)

 

2、下载pptp

     wget http://nchc.dl.sourceforge.net/project/pptpclient/pptp/pptp-1.7.2/pptp-1.7.2-3.rhel5.src.rpm

3、编译,去掉pptp的依赖关系

rpmbuild --rebuild pptp-1.7.2-3.rhel5.src.rpm

 

4、cd /usr/src/redhat/RPMS/i386/目录下安装pptp (在网上查了很多资料都说编译后的pptp有2个包在这目录下,但是我始终只有一个包,不知道是不是人品不好,但是不影响vpn正常使用)

rpm -ivh pptp-1.7.2-3.i386.rpm 

pptp, pppd, vpn, 客户端

iptables 配置参数

2011-10-14 09:03:24 c.beyondblack
0  评论    212  浏览

总览
用iptables -ADC 来指定链的规则,-A添加 -D删除 -C 修改

iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定

iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]

iptables -[NX] chain
用 -NX 指定链

防火墙, man, iptables

选择适合自己的美国VPS 有更新!

2011-10-12 17:18:29 c.beyondblack
0  评论    249  浏览

vps虚拟化技术,xen,openvz,适合自己的vps

美国, VPS, 课外知识

CentOS--纯字符界面安装 有更新!

2011-10-12 17:17:19 c.beyondblack
4  评论    619  浏览

linux安装

安装, 字符界面, centos5.3

最新评论

评论最多的文章

访问最多的文章

分类标签

友情链接

存档

TOP