对于可以修改数据的Ajax和HTTP请求方法(通常是GET以外的HTTP方法,或者用于某些MIME类型的POST使用),规范要求浏览器“预先执行”请求,使用HTTP的OPTIONS方法从服务器请求受支持的方法,然后在服务器“批准”后,使用实际的HTTP请求方法发送实际请求。服务器还可以通知客户端是否应该通过请求发送“凭据”(包括Cookies和HTTP身份验证数据)。 cors
你会跳转到一个只有你可以修改的全新站点 You can find and modify your site’s content in data/[yoursiteaddress] directory
你可以在data/[你的地址]目录找到和修改你的站点内容 After the modifications open your site, drag the topright “0” button to left, then press sign and publish buttons on the bottom
当你修改好你的站点后,拖动右上的”0”按钮到左边,然后点击底部的签名和发布按钮。
手动方式:使用命令行
创建站点结构
如果ZeroNet在运行需要关闭
进入ZeroNet的安装目录,然后运行:
1 2 3 4 5 6 7 8
$ zeronet.py siteCreate ... - Site private key: 23DKQpzxhbVBrAtvLEc2uvk7DZweh4qL3fn3jpM3LgHDczMK2TtYUq - Site address: 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2 ... - Site created! $ zeronet.py ...
ZeroNet is built for dynamic, real-time updated websites, but you can serve any kind of files using it. (VCS repositories, your own thin-client, database, etc.)
ZeroNet comes with a built-in SQL database. This makes content-heavy site development easy. The DB is also synced with hosting nodes with incremental updates.