netstat -nplt
service sshd start
ps -ef
reboot 重启
HTTP协议的HOST头域字段意义:
HOST字段可以使得在同一个web服务器提供多个站点的web服务成为可能
Apache的Virtualhost配置,配置文件最后加入:
<VirtualHost *:80>
ServerName
ServerAlias
DocumentRoot
ErrorLog
CustomLog combined
<Directory >
Options FollowSymlinks
AllowOverride none
Require all granted
</Directory>
//Directory - apache权限
</VirtualHost>
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
安装的服务路径
/usr/sbin/
nginx搭建的服务器,web虚拟主机的文档路径
/urs/share/nginx/
配置路径
/etc/nginx
环境服务:
-
php
-
mariadb-server mariadb
-
php-fmp
-
phpmysql
-
安装数据库web管理界面 epel-release -> phpadmin