---
title: "Linux日常使用记事"
author: "liusu"
date: "2011-12-29T00:13:24Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2011-12-29T23:35:37Z"
id: 1329072
url: "https://liusu.iteye.com/blog/1329072"
---

天天记一点，把日常使用命令和心得记录下来，省的用完就忘记了。

OS环境

```bash

seanye@liusu:~$ uname -a
Linux liusu.iteye.com 2.6.32-5-686 #1 SMP Thu Nov 3 04:23:54 UTC 2011 i686 GNU/Linux

```



```java

apt-cache search
apt-get install

```



```bash
apt-get install vi

```

 to support the stnyax highlighting.

edit the /etc/vim/vimrc

一个非常好的配置VIM的WIKI：<http://wiki.kartbuilding.net/index.php/Vi/vim>
-------------------------
配置Http服务


```java
apt-get install apache2

apt-cache show apache2
```


如果想要查看软件信息安装到哪里去了，使用dpkg命令



```java
seanye@nimypopo:~$ dpkg -L apache2
/.
/usr
/usr/share
/usr/share/doc
/usr/share/bug
/usr/share/bug/apache2
/usr/share/bug/apache2/control
/usr/share/doc/apache2
/usr/share/bug/apache2/script

```


root用户登录启动:

```java
apachetcl start
```


启动后，测试性能

```java
ab -n 10000000 -c 20 -w http://localhost/fcgi-bin/echo.fcg
```