人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動態(tài)

apache服務(wù)器

發(fā)布日期:2019-09-12 10:35 | 文章來源:網(wǎng)絡(luò)

軟件包目錄

apache
軟件包:
httpd-2.2.15-26.el6.x86_64.rpm
配置文件:
/etc/http/conf/httpd.conf
/etc/http/conf.d/*.conf
服務(wù)數(shù)據(jù)目錄:
/var/www/html
端口:80443
切換進(jìn)程和線程模式
vim/etc/sysconfig/httpd
HTTPD=/usr/sbin/httpd.worker
發(fā)布目錄
cp-r/boot/var/www/html
測試:
elinks192.168.1.254
elinks--dump192.168.1.254
elinks192.168.1.254/boot
基于用戶家目錄發(fā)布網(wǎng)頁
1.useraddrobin
useraddzorro
2.vim/etc/httpd/conf/httpd.conf

#UserDirdisabled
UserDirpublic_html

3.創(chuàng)建
mkdir/home/zobin/public_html
mkdir/home/zorro/public_html
echo"robin'shome">>/home/robin/public_html/index.html
echo"zorro'shome">>/home/rorro/public_html/index.html
4.該權(quán)限
chmod777/home/robin/
chmod777/home/zorro/
5.servicehttpdrestart
測試
elinks192.168.1.254/~robin
elinks192.168.1.254/~zorro
虛擬主機(jī)
基于域名
1mkdir/var/www/baidu/
mkdir/var/www/google/
2.vim/etc/httpd/conf/httpd.conf
NameVirtualHost*:80

documentroot/var/www/baidu
servername
echo"google">>/var/www/google/index.html
4.設(shè)置解析/etc/hosts
192.168.1.254

Tags:軟件包目錄,apache服務(wù)器

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實時開通

自選配置、實時開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時在線

客服
熱線

400-630-3752
7*24小時客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部