Linux环境的AMP安装 APACHE安装
2、APACHE的安装
1)当然还是下载源码包,如:httpd-2.0.55.tar.gz,地址自己找……
2)解压缩,>tar -zxvf httpd-2.0.55.tar.gz
3)进入解压后的httpd-2.0.55,>cd httpd-2.0.55
4)安装配置,>./configure --prefix=/opt/apache --enable-cgi
5)编译,>make
6)安装,>make install
7)启动,>/opt/apache/bin/apachectl start (restart 重启,stop停止)
现在打开浏览器,输入http://localhost,即可看到apache的欢迎界面。
注:
1)apache配置文件的修改,路径:/opt/apache/conf/httpd.conf,修改完配置文件记得重启apache
*修改默认首页:DirectoryIndex index.html index.html,改为:DirectoryIndex index.html index.html index.php
*添加执行PHP文件:AddType application/x-httpd-php .php
*修改默认编码:AddDefaultCharset utf-8
2)apache建立虚拟机
NameVirtualHost *:80
<VirtualHost *:80>
ServerName test.test.com
DocumentRoot /opt/htdocs/test
</VirtualHost>
相关文档:
一些常用的基本命令:
uname -a 查看内核版本
ls -al 显示所有文件的属性
pwd 显示当前路径
cd - 返回上一次目录 &nbs ......
一、从基础开始 常常有些朋友在Linux论坛问一些问题,不过,其中大多数的问题都是很基的。例如:为什么我使用一个命令的时候,系统告诉我找不到该目录,我要如何限制使用者的权限等问题,这些问题其实都不是很难的,只要了解了Linux的基础之后,应该就可以很轻易的解决掉这方面的问题。而有些朋友们常常一接触Linux就是 ......
linux目录架构
/ 根目录
/bin 常用的命令 binary file 的目錄
/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内
/boot/grub/menu.lst &n ......
参考《linux内核完全注释》和网上相关文章
/*
* 控制台显示操作
*/
/*
* linux/kernel/console.c
*
* (C) 1991 Linus Torvalds
*/
/*
* console.c
*
* This module implements the console io functions
* 'void con_init(v ......