合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
# 通用平台的搭建 * 从git上clone代码到本地 ![](https://img.kancloud.cn/ab/d1/abd1dbe239e125ef47c6fbe7e0429759_1408x86.png) * 配置host文件 ~~~ # 通用平台配置 127.0.0.1 xk.hnlat.com f.xk.hnlat.com i.xk.hnlat.com 127.0.0.1 wdkj.xk.hnlat.com wd.wdkj.xk.hnlat.com ~~~ * 配置php站点,即修改apach的vhost文件或用phpstudy添加站点 ~~~ <VirtualHost _default_:80> DocumentRoot "E:\phpStudy\PHPTutorial\WWW" <Directory "E:\phpStudy\PHPTutorial\WWW"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "F:\projects\journal-web" ServerName www.journal.cc ServerAlias <Directory "F:\projects\journal-web"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "F:\projects\newprojects\crs-web" ServerName crs.hnlat.tpl ServerAlias <Directory "F:\projects\newprojects\crs-web"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "E:\www\library\de" ServerName xk.hnlat.com ServerAlias *.hnlat.com <Directory "E:\www\library\dev"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "E:\www\library\dev\templates" ServerName xk.hnlat.com ServerAlias *.hnlat.com <Directory "E:\www\library\dev\templates"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> ~~~ * 导入数据库,数据库名libary,账号root,密码123456 * 复制cache文件夹和uploadfie文件夹到git的项目中,随后即可访问