1.在安卓手机上安装AidLux ,点击2的位置,打开共享

2.在步骤1,3的位置,访问地址

3.找到终端,可以像linux一样操作

4.AidLux 本身具备nginx环境,直接在/etc/nginx/conf.d 里面创建gitbbook.nginx,指定静态文件目录

5.gitbbook.nginx
# gitbbook.nginx
# Here is the aided system configuration file
# Please do not modify
server {
set $internal_port 19800; # 自己写需要的端口
set $external_port 19800; # 自己写需要的端口
listen 19800;
underscores_in_headers on;
client_max_body_size 0;
chunked_transfer_encoding on;
location / {
root /home/_book; # 我放文件的目录
index index.html index.htm;
}
}
6.终端刷新nginx配置
nginx -s reload
7.本机访问
http://localhost:19800/
8.其它机器访问
http://192.168.1.103:19800/