Lua snippet: copy file Source: https://forum.cockos.com/showpost.php?&p=2360581&postcount=3 In this snippet we see method to get file size: new_file_sz = new_file:seek( "end" )
Example: we use docker to install nodes for mongodb replica set : http://tutorialspots.com/use-docker-to-run-mongodb-replica-set-6859.html But we can access port 27017 any where !!! how to fix…
Sample code: Check log: tail /var/log/nginx/error.log Reason: lua-resty-string v0.15 remove EVP_CIPHER_CTX_init Check here Check version in file: /usr/local/share/lua/5.1/resty/string.lua lua-resty-string Version 0.09 You must update to…
Example error: Fix: run this command first: git config --global url."https://".insteadOf git:// Done, retry: now, we have two files xmodem.lua rediscluster.lua in folder /usr/local/share/lua/5.1/resty/
Step 1: install luarocks Step 2: install libbson and libmongoc Step 3: install Lua Mongo Done! now we have file /usr/local/lib/lua/5.1/mongo.so Note: to use with…
Step 1: remove old versions: sudo apt-get remove docker docker-engine docker.io containerd runc Step 2: Update the apt package index and install some packages sudo…