#kill -9 3829
#yum
Enable userdir, users can create websites with this setting.
# line 17: comment out
#
# line 24: uncomment
UserDir public_html
# line 31 - 35
<Directory "/home/*/public_html"> AllowOverride
All
# change
Options
None
# change
Require method GET POST OPTIONS </Directory>
[cent@www ~]$
mkdir public_html
[cent@www ~]$
chmod 711 /home/cent
[cent@www ~]$
chmod 755 /home/cent/public_html
[cent@www ~]$
vi ./public_html/index.html
<html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> UserDir Test Page </div> </body> </html> 要關selinux
0727
Find the section that begins with
<Directory "/var/www/html">.
Change the line from AllowOverride none to AllowOverride AuthConfigAllowOverride AuthConfig
Save and close the file.
2.
Create a password file with htpasswd
postfix 1.預備動作 nano /var/named/named.ccna16 加入 mail A 192.168.40.253 ccna16.edu MX 10 mail.ccna16.edu. 重啟 named systemctl restart named 測試 Microsoft Windows [版本 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>nslookup
預設伺服器: dns.hinet.net
Address: 168.95.1.1
> server 192.168.40.253
預設伺服器: [192.168.40.253]
Address: 192.168.40.253
> set type=mx
> ccna16.edu
伺服器: [192.168.40.253]
Address: 192.168.40.253
ccna16.edu MX preference = 10, mail exchanger = mail.ccna16.edu
ccna16.edu nameserver = ccna16.edu
mail.ccna16.edu internet address = 192.168.40.253
ccna16.edu internet address = 192.168.40.253
2.firewall-cmd --permanent --add-service=smtp
|








