V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ragnaroks  ›  全部回复第 4 页 / 共 166 页
回复总数  3308
1  2  3  4  5  6  7  8  9  10 ... 166  
154 天前
回复了 tux 创建的主题 Windows win10,11 居然内置 curl 了
dig 有一大堆东西,不太可能内置。

curl 行为也和 linux ( debian 11 )不同, [curl --header "Host: web.site" https://1.2.3.4] 将会报错证书错误,但 linux 下正常响应
不会用 linux 又不得不用的话,可以考虑装个桌面环境,操作起来与 windows 无异,起码不会被偷裤子
看起来需要增加一个参数用于指定挂载的 DOM 来让第三方做集成,直接使用 body 绝对不是好的选择
169 天前
回复了 qinyui 创建的主题 JavaScript js 生成 html 的 ui 界面有什么好的方式?
react 打包成 web-component ,可直出 componet-name.js
对了,如果开发时间宽裕的话,可以用 unity3D 做,挺多人用 unity3D 做跨平台图形界面应用程序的,但是个人账户发布的制品在启动时会显示 unity3D 的标识。
blazor-desktop ,纯 csharp ,发布到 edge-webview2 ,唯一的问题是新手大概要被 blazor 的一些特性绕几天
miniserve 即用即删,HFS 快捷稳定
第一眼像是静态版 node ,如果能有稳定的生态应该是不错的选择
186 天前
回复了 niurougan 创建的主题 Edge Edge 团队又搞什么鬼
@NSAgold 你说的这个问题,如果是关闭时候弹出的那个,除了卸载 edge 外别无他法
192 天前
回复了 jlak 创建的主题 分享发现 无对比无伤害,容器下测试 wp 和 next.js
@jlak 唯一有点不同的就是我是 ISG 增量生成,但理论上和 SSR 在峰值资源占用上没有差别
192 天前
回复了 jlak 创建的主题 分享发现 无对比无伤害,容器下测试 wp 和 next.js
@jlak 就是普通的 npm run build && npm run start ,点我头像进我网站可测速,我的容器甚至只给了 64M hard limit
192 天前
回复了 jlak 创建的主题 分享发现 无对比无伤害,容器下测试 wp 和 next.js
nextjs 容器( pod ?)内包含 mysqld 吗?一般来说 nextjs SSR 单个实例不会超过 40M 。
看第一页感觉楼主有点得理不饶人,看到后面发现是我跪久了。
root@cn1427:~# cat /var/lib/containers/storage/volumes/openresty-config/_data/nginx.conf
# nginx.conf -- docker-openresty
#
# This file is installed to:
# `/usr/local/openresty/nginx/conf/nginx.conf`
# and is the file loaded by nginx at startup,
# unless the user specifies otherwise.
#
# It tracks the upstream OpenResty's `nginx.conf`, but removes the `server`
# section and adds this directive:
# `include /etc/nginx/conf.d/*.conf;`
#
# The `docker-openresty` file `nginx.vh.default.conf` is copied to
# `/etc/nginx/conf.d/default.conf`. It contains the `server section
# of the upstream `nginx.conf`.
#
# See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files
#

user root;
worker_processes 2;
worker_rlimit_nofile 65535;
pcre_jit on;
error_log /logs/error.log;

events {
use epoll;
worker_connections 16384;
accept_mutex off;
multi_accept on;
}

http {
include mime.types;
default_type application/octet-stream;
log_format main '$time_local # $remote_addr => $http_x_real_ip[$http_x_forwarded_for] | $status | $http_referer | $http_user_agent | $request';
access_log /logs/access.log main;
client_body_temp_path /var/run/openresty/nginx-client-body;
proxy_temp_path /var/run/openresty/nginx-proxy;
fastcgi_temp_path /var/run/openresty/nginx-fastcgi;
uwsgi_temp_path /var/run/openresty/nginx-uwsgi;
scgi_temp_path /var/run/openresty/nginx-scgi;
sendfile on;
keepalive_timeout 65;
server_tokens off;
more_clear_headers Server;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
resolver 223.5.5.5;
include /etc/nginx/conf.d/*.conf;
}
1 virtual thread E5-2689 + 512 MiB RAM

root@cn1427:~# wrk -t2 -c100 -d10s http://localhost
Running 10s test @ http://localhost
2 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.61ms 2.49ms 13.74ms 80.17%
Req/Sec 18.19k 3.59k 21.09k 81.00%
362030 requests in 10.01s, 39.22GB read
Requests/sec: 36181.29
Transfer/sec: 3.92GB

root@cn1427:~# podman exec openresty nginx -V
nginx version: openresty/1.21.4.2
built with OpenSSL 1.1.1s 1 Nov 2022
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.2 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.33 --add-module=../ngx_lua-0.10.25 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.34 --add-module=../array-var-nginx-module-0.06 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../ngx_stream_lua-0.0.13 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-stream --with-http_ssl_module
205 天前
回复了 ragnaroks 创建的主题 分享创造 又一个 zerotier 第三方控制器
@yuantianwei 不支持多用户,因为从原理上无法只通过 zerotier controller API service 进行用户隔离,或者说所有人都是管理员。我就曾被 key-networks/ztncui 坑过。这种需求一般是通过多控制器实例来简单隔离,比如通过容器隔离,9993 端口并不需要对外开放。商业级别的应该是需要二次开发了,不过商业解决方案的话直接买 zerotier 官方的成本更低。
205 天前
回复了 ragnaroks 创建的主题 分享创造 又一个 zerotier 第三方控制器
@oneisall8955
@Leonkennedy2

稳定后会开源的,现在处于疯狗迭代期,一天提交几十次。
205 天前
回复了 ragnaroks 创建的主题 分享创造 又一个 zerotier 第三方控制器
@xu81020 只支持管理 controller ,不是一站式 central 。自建 zerotier planet 这种需求最好是自行整合开发。
2023-03-19 19:41:07 +08:00
回复了 foolishcrab 创建的主题 程序员 React 新文档骂战引发的的思考
next 就是 js 的 springboot
已经产生的订单不要去动它,创建一个新的以 id 为外键的退款表
1  2  3  4  5  6  7  8  9  10 ... 166  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3313 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 48ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.