答:小皮,由于我所有的网站都是使用WordPress开源系统搭建,WordPress对于安全性,扩展性,稳定性都比较好,唯一就是占用服务器资源。虽然WordPress安全性高,被入侵的几率低,但是服务器的安全性也会导致WordPress被挂。所以,我现在,所有的网站都是在本地运行,服务器端,只上传:静态HTML文件。没有后台。这样可以保障网站的安全性。而且对网站的访问速度也提升了,基本上都是秒开。
WordPress静态HTML发布软件,可联系本人购买!
正题开始:
由于我所有的网站都是在本地运行,目前使用广泛的网站环境软件,有:小皮,还有就是 宝塔。我2样都测试了一段时间,宝塔管理方便,但是本地电脑基本上每天都是宕机状态,特别占用资源,而且本地WIN系统安装的宝塔,数据库经常出错。小皮,在本地WIN系统使用稳定,占用资源小。所以果断选择小皮,小皮在本地使用需要注意的有几个地方:
小皮下载地址:
https://www.xp.cn/download.html
1、小皮在使用WordPress是需要写伪静态的,规则如下:
location / { try_files $uri $uri/ /index.php?$args;} # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent;
2、PHP版本选择系统默认的php7.3.4nts 版本,数据库管理使用phpMyadmin4.8.5 即可,选择其他版本会报错。
3、创建网站的时候一定要勾选:同步hosts 如果没有勾选,可以访问路径,在C盘:
C:\Windows\System32\drivers\etc
如果WIN10系统修改不了hosts文件,可以复制文件到桌面,用记事本打开,手工添加内容:
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 www.abc.com 127.0.0.1 www.123.com
前面的1-21行都是hosts默认的,后面127.0.0.1开始就是你需要添加的本地域名。这样你在本地测试网站,才能正常访问!