vi /etc/httpd/conf.d/userdir.conf
mkdir public_html
echo "<h1>iamaaaa</h1>" >/home/aaa/public_html/index.html
chmod o+x aaa/
systemctl restart httpd.service
访问测试
http://192.168.1.142/~aaa/
vi /etc/httpd/conf.d/userdir.conf
mkdir public_html
echo "<h1>iamaaaa</h1>" >/home/aaa/public_html/index.html
chmod o+x aaa/
systemctl restart httpd.service
访问测试
http://192.168.1.142/~aaa/