1. 首先將自己的域名解析到服務器IP上
如圖所示:
lnmp vhost add ?#添加域名
操作如下圖:
到此就把網站添加好了
現在進入/home/wwwroot/vcomer中新建一個index.php
cd /home/wwwroot/vcomer && vim index.php
index.php
<?php
phpinfo();
效果圖
到此,網站綁定和lnmp環境已配置好,下一節開始配置nginx來適應ThinkPHP
1. 首先將自己的域名解析到服務器IP上
如圖所示:
lnmp vhost add ?#添加域名
操作如下圖:
到此就把網站添加好了
現在進入/home/wwwroot/vcomer中新建一個index.php
cd /home/wwwroot/vcomer && vim index.php
index.php
<?php
phpinfo();
效果圖
到此,網站綁定和lnmp環境已配置好,下一節開始配置nginx來適應ThinkPHP