第11章web服务器.pptVIP

  • 1
  • 0
  • 约4.05千字
  • 约 23页
  • 2018-05-04 发布于四川
  • 举报
Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 Web服务器 * * 安装 1、[root@localhost ~]# rpm -qa |grep httpd httpd-2.0.52-25.ent httpd-suexec-2.0.52-25.ent system-config-httpd-1.3.1-1 httpd-manual-2.0.52-25.ent 2、/download.cgi 3、添加删除程序 安装 1、安装mysql(备用) cp mysql-standard-5.0.1-alpha-snapshot-pc-linux-i686.tar.gz /usr/local/ tar -zxvf mysql-standard-5.0.1-alpha-snapshot-pc-linux-i686.tar.gz groupadd mysql? ?? ??? useradd -g mysql mysql cd /usr/local/ ln -s mysql-standard-5.0.1-alpha-pc-linux-i686/ mysql cd mysql?? ./scripts/mysql_install_db --user=mysql? ? chown -R root /usr/local/mysql? ?? ?? ?? ? chown -R mysql /usr/local/mysql/data? ?? ??? chgrp -R mysql /usr/local/mysql .? ?? ?? ??? ./bin/mysqld_safe --user=mysql ? ? 安装 2、安装ahache tar -zxvf httpd-2.0.52.tar.gz cd httpd-2.0.52 emacs INSTALL? ? 获得一些安装信息 ./configure --enable-so? ?--enable-so make ; make install cd /usr/local/apache2/bin ./apachectl start httpd: Could not determine the servers fully qualified domain name, using for ServerName ? ServerName :80 Alias /doc /usr/share/doc Directory /usr/share/doc Options Indexes FollowSymlinks AllowOverride None Order allow,deny Allow from all /Directory 设置别名目录索引 设置别名目录索引 创建各主机的工作目录 mkdir /var/www/test1.host /var/www/test2.host echo “host1” /var/www/test1.host/index.html echo “host2” /var/www/test2.host/index.html 配置hosts文件 C:\WINDOWS\system32\drivers\etc\hosts 23 23 修改httpd.conf NameVirtualHost 23:80 VirtualHost 23:80 ServerAdmin webmaster@ DocumentRoot /var/www/test1.host ServerName ErrorLog logs/-error_log CustomLog logs/-access_log common /VirtualHost VirtualHost 23:80 ServerAdmin webmaster@ DocumentRoot /var/www/test2.host ServerName ErrorLog logs/-error_log CustomLog logs/-access_log common /VirtualHost 重启服务器 # service httpd restart Stopping httpd:

文档评论(0)

1亿VIP精品文档

相关文档