Nginx: worker_connections are not enough, reusing connections
We meet an error log on nginx: worker_connections are not enough, reusing connections. To resolve this issue, here is my working solution according to the references:
Tag
31 posts
Linux (pronounced Listeni/ˈlɪnəks/ lin-əks or, less frequently, /ˈlaɪnəks/ lyn-əks) is a Unix-like and mostly POSIX-compliant computer operating system (OS) assembled under the model of free and open-source software development and distribution. The defining component of Linux is the Linux kernel, an operating system kernel first released on 5 October 1991 by Linus Torvalds. The Free Software Foundation uses the name GNU/Linux to describe the operating system, which has led to some controversy.
We meet an error log on nginx: worker_connections are not enough, reusing connections. To resolve this issue, here is my working solution according to the references:
It is becoming pretty slow in SSH to a CentOS server.
Trying to print a verbose log:
$ ssh -vvvv my-host
....
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/user/.ssh/id_rsa RSA SHA256:XXXXX/gNY explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
..... <<<-- long long long silence here
debug3: receive packet: type 51 <<<-- and then continue to access the server
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred publickey,keyboard-interactive,passwordSSH Port Forwarding is a mechanism in SSH for tunneling application ports from the client machine to the server machine, or vice versa.
Suppose we wish to visit a port on a remote machine that is behind a firewall; we can use SSH port forwarding to bind that port to our local machine.
This post lists a few examples to check the status of your system in macOS and Linux
sudo allows a system administrator to delegate authority to give certain users—or groups of users—the ability to run commands as root or another user while providing an audit trail of the commands and their arguments. It plays a vital role in user controlling.
Here documents are indeed a powerful feature in Unix-like operating systems, allowing for the efficient creation and manipulation of files from within a shell script. They are particularly useful when you need to insert multiple lines of text into a file without having to resort to looping constructs or temporary files.
Changing the name of your os could be the first step after initialized you server -- at least it works for me.
linux 下,我们有时候会想要给某个文件打 patch。若不使用 git 等工具,利用 linux 现成的工具,我们也能很容易搞定。
一般情况下, 我们有很多工具可以安装字体, 即便在 linux 下, Gnome 等也提供了很多工具来这么做.
不过有时候会有些特殊需求. 比如我们要在某个远程服务器上添加一个字体.
有一些简单的方法可以处理.
命令行下全是一个颜色未免有点单调, 通过 ANSI escape code 可以输出一些带颜色的字符串.
效率上说和c++差不多,作为一个函数式程序,看起来也挺美观.官方的tutorial也做得很不错.目前为止,rust刷版本号已经刷到了1.1了,个人觉得可以试着做点东西了.
arch 是一个轻量的 linux 操作系统, 安装基本控制台命令搞定. 记录如下:
我们通常编辑 /etc/fstab 来确定启动时候挂载的硬盘, swap 等. 若文件内容有误, 重启后的效果就是直接挂了, 然后必须通过安全模式或者单用户模式进去修改, 这很麻烦.
可否不重启就检查下 fstab 呢? 答案是可以的.