apache

set up
service network restart
ifup
vim /etc/sysconfig/networkscripts
vim /etc/res
hostname
vim /etc/sysconfig/network
etc/hosts
service sshd start
status
etc/ssh/sshd_config
-------------------------------------------------------------------
scp [email protected] [email protected]
rsyns 用法同上,同步
---------------------------------------------------
var/www/html
netstat nltp???
vim /etc/httpd/conf/httpd.conf
etc/hosts 127.0.0.1 www.hailou.net


在var下创建目录,为别人服务 milo
基于域名分开『虚拟主机』


改啊葩器的配置文件
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.milo.com
DocumentRoot /var/milo
</VirtualHost>
<VirtualHost *:80>
ServerName www.baidu.com
DocumentRoot /var/www/html
DirectoryIndex qx.html
ErroLog logs/.....
</VirtualHost>






-----------------------------------------
ssh 22
ftp 21
apache 80
client server
--------------------------------------
虚拟目录
alias /admin "/var/admin"
<Directory /var/admin>
AuthName "root admin"
AuthType "Basic"
AuthUserFile "/apache"
Require User milo zhou
Options FollowSymLinks
AllowOverride None

</Directory>




最重要的,千万别忘了,修改host

/etc/hosts !!!!!!!!

你可能感兴趣的:(apache)