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>
相关文档:
例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......
第一次写东东,要有不对的地方,还请高手指点。
虚拟机下的linux与windows互ping:
1。cmd下输入命令:ipconfig/all,找到windows正在使用的网卡的ip地址,记住当前的ip地址和网段。
2。在虚拟机下的网络设置中(虚拟机软件右下角的网卡图标)网络为桥接模式,这个很重要,一定记住。
3。在linux下输入以下命令, vi /e ......
一些常用的基本命令:
uname -a 查看内核版本
ls -al 显示所有文件的属性
pwd 显示当前路径
cd - 返回上一次目录 &nbs ......
根目录
/bin 常用的命令 binary file 的目錄
/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内
/boot/grub/menu.lst GRUB设置
/boot/vmlinuz 内核
  ......