openwrt 一般采用dropbear 作为ssh 客户端/服务端。 但一般都是使用password 的形式登录ssh. 我们使用public/private key 的形式来跳过需要password的验证。
1. 客户端
使用如下命令,生成public keys1
dropbearkey -y -f /etc/dropbear/dropbear_rsa_host_key
将图中pulibc key 复制到服务端。
Siege is an open source regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users, or it can read many URLs into memory and stress them simultaneously. The program reports the total number of hits recorded, bytes transferred, response time, concurrency, and return status. Siege supports HTTP/1.0 and 1.1 protocols, the GET and POST directives, cookies, transaction logging, and basic authentication. Its features are configurable on a per user basis.
Detail see https://github.com/JoeDog/siege
Decompressing Siege source code archive, and run1
2
3./utils/bootstrap
./configure
make && make install
Note: If we have ssl or zlib support, please point out when we make the configuration.1
2--with-ssl=$(SSL_include_dir) \
--with-zlib=$(ZLIB_include_dir)
We need to use lighttpd as webserver to servive two web page:
After we study OpenWrt wiki docs, we know how to make lighttpd support luci.
Two key steps:
1 | # Ensure we have to enable mod_cgi, which is in conf.d |
Detail see OpenWrt Wiki about LuCI on lighttpd
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment