配置NetBeans和Nginx搭建网站
-
配置NetBeans
- 配置文件(beaver.conf):
- 服务器配置:
server=192.168.1.1,client=192.168.1.1,serviceorem=nag,port=8,user=naguser,password=nagpass,database=mem。
- 数据库配置:
dbtype=sqlite,dbname=mem,columns=1,comdb=sqlite,checkdb=1,pool=1,driver=sqlite。
- 网络配置:
firewall=,rootuser=naguser,rootpass=nagpass,scriptconfig=nag,lax=,maxdisk=1mb,nag=,nagfile=nag,nt=,ntlog=.
- 服务器配置:
- 生成beaver.php:
file:beaver.php,server,client,rootuser=naguser,rootpass=nagpass.
- 配置文件(beaver.conf):
-
启动NetBeans和生成网站
- 以命令行运行:
netbeans -c --server 192.168.1.1 --client 192.168.1.1
- 然后配置Nginx:
nginx -s -g -b 8 -b 8 -t 0 -T 8
- 然后启动Nginx:
nginx -T
- 生成网站:
nginx -m -c /path/to/beaver.php -c /path/to/https://www.example.com
- 以命令行运行:
配置Nginx和Ntty搭建HTTP服务器
-
配置Nginx
- 服务器配置:
nsglmod -n 8 -G 1 -t 0 -T 8
- 客户端配置:
ntmod -n 8 -G 1 -t 0 -T 8
- 配置Ntty:
ntmod -n 8 -G 1 -t 0 -T 8
- 服务器配置:
-
启动Nginx和Ntty
- 启动Nginx:
nginx -T
- 启动Ntty:
ntty -T
- 启动Nginx:
-
生成网站
- 配置Nginx作为服务器:
nsglmod -n 8 -G 1
- 配置Ntty作为客户端:
ntmod -n 8 -G 1 -t 0 -T 8
- 启动Ntty:
ntty -T
- 配置Nginx作为服务器:
使用Netty实现HTTP服务器
- 配置Netty
- 配置文件(netty.conf):
file:netty.conf
- 服务器配置:
server=192.168.1.1,192.168.1.11,192.168.1.12,192.168.1.13 port=8 user=naguser password=nagpass db=mem schema=mem driver=netty scriptconfig=nag lax= maxdisk=1 Nag= Nagfile=nag Nt= Ntlog= https=True debug= allow-queue=yes allow-queue-max=1 allow-queue-noscript=yes allow-queue-attachment=yes allow-queue-attachment-yes allow-queue-attachment-yes
- 客户端配置:
client=192.168.1.14,192.168.1.15 port=443 user=naguser password=nagpass http=True https=True debug= allow-queue=yes allow-queue-max=1 allow-queue-noscript=yes allow-queue-attachment=yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-noscript=yes allow-queue-attachment=yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-attachment-yes allow-queue-
- 服务器配置:
- 配置文件(netty.conf):


