linux-apache安装实现登陆身份验证-023
Apache 服务器 协议 "Times New Roman"">明文传递 版本 1) 1.0 一次连接一次请求 2) 1.1 一次连接多次请求 "Times New Roman"">使用 mod_ssl 加密传输的;端口号443
安装apache,实现登陆用户的身份验证 "Times New Roman";mso-hansi-font-family:"Times New Roman"">安装apache [root@apache-server ~]# vim /etc/hosts --给主机hostname定义个别名 # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost apacheserver ::1 localhost6.localdomain6 localhost6 [root@apache-server ~]# mount /dev/cdrom /mnt/cdrom [root@apache-server ~]# cd /mnt/cdrom/Server/ --需要安装包 [root@apache-server Server]# ll http* -r--r--r-- 55 root root 1270589 2008-12-11 httpd- -r--r--r-- 63 root root 151651 2008-12-11 httpd-devel- -r--r--r-- 55 root root 852783 2008-12-11 httpd-manual- [root@apache-server Server]# yum install httpd* [root@apache-server ~]# yum list installed |grep httpd*
2.查看安装形成的文件和配置文件 [root@apache-server Server]# rpm –ql httpd --查看可以编辑的配置文件 [root@apache-server Server]# rpm -qc httpd --配置文件包含conf.d/中的所有.conf 文件和conf/httpd.conf --访问日志存放地点 #cd /var/log/httpd/ #cd /etc/httpd/modules ==/usr/lib/httpd/modules/ [root@apache-server httpd]# ll /usr/sbin/httpd -rwxr-xr-x 1 root root 315284 Nov 12 2008 /usr/sbin/httpd
3.httpd进程号 [root@apache-server httpd]# pwd /etc/httpd [root@apache-server httpd]# cat run/httpd.pid 858 [root@apache-server httpd]# service httpd status httpd (pid 867 866 865 863 862 861 860 859 858) is running... [root@apache-server httpd]# [root@apache-server sbin]# grep apache /etc/passwd apache:x:48:48:Apache:/var/www:/sbin/nologin --防止被攻击 nologin [root@localhost ~]# ps -aux |grep apache Warning: bad syntax, perhaps a bogus ''-''? See /usr/share/doc/procps- apache 1556 0.0 0.5 10544 2700 ? S 22:53 0:00 /usr/sbin/httpd apache 1557 0.0 0.5 10544 2700 ? S 22:53 0:00 /usr/sbin/httpd apache 1558 0.0 0.5 10544 2648 ? S 22:53 0:00 /usr/sbin/httpd apache 1559 0.0 0.5 10544 2700 ? S 22:53 0:00 /usr/sbin/httpd apache 1560 0.0 0.4 10544 2104 ? S 22:53 0:00 /usr/sbin/httpd apache 1562 0.0 0.5 10544 2644 ? S 22:53 0:00 /usr/sbin/httpd apache 1563 0.0 0.5 10544 2648 ? S 22:53 0:00 /usr/sbin/httpd apache 1564 0.0 0.4 10544 2104 ? S 22:53 0:00 /usr/sbin/httpd root 1627 0.0 0.0 1836 504 pts/4 S 23:11 0:00 grep apache [root@localhost ~]#
4.apache的模块. --查看模块 [root@apache-server sbin]# cd /etc/httpd/ [root@apache-server httpd]# httpd -l Compiled in modules: core.c prefork.c http_core.c
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |