blog.masa23.jp
Relaxing Max Open Files for Specific Daemons with systemd
This content has been moved from Qiita.
There are times when you want to relax the Max open files setting for services like nginx.
Prior to CentOS7, which did not use systemd, we had to modify limits.conf. However, with systemd, the process is simpler.
Let’s assume we’re having trouble with nginx.
Checking the Current Settings # grep "^Max open files" /proc/`cat /var/run/nginx.pid`/limits Max open files 1024 4096 files Currently, the hard limit is 4096, meaning that a single process cannot open more than 4096 files.
…
2016-04-02Setting Up Vim for Writing Golang
This content has been moved from Qiita.
When coding in Go using Vim, you can make coding easier with syntax highlighting and tools like gofmt and goimports. However, I found various articles on this topic to be complex, so I decided to compile my own simplified guide.
Installing Golang OS X $ brew install golang CentOS $ sudo yum install golang --enablerepo=epel Ubuntu $ sudo apt install golang Creating a Directory for GOPATH $ mkdir $HOME/go Setting Environment Variables in .
…
2016-03-14NEC UNIVERGE IX 2010 Firmware Update
This guide briefly describes how to update the firmware.
Ensure you can retrieve the firmware from a tftp server beforehand.
Check the current version Router(config)# show version NEC Portable Internetwork Core Operating System Software IX Series IX2010 (DS) Software, Version 5.1.18, RELEASE SOFTWARE Compiled Jul 18-Fri-2003 13:32:49 JST #2, coregen-5.1 ROM: System Bootstrap, Version 5.5 System Diagnostic, Version 4.3 uptime is 1 minute System image file is "ix2010-ds-5.1.18.ldc" IX2010 (MPC8250) processor with 57344K bytes of memory.
…
2009-10-20NEC UNIVERGE IX 2010 Super Reset
What is a Super Reset? A super reset is a method to forcibly reset the router to its initial state, used when you forget the login password, for example.
Reset Procedure Prepare for the reset.
Connect a serial cable to the CONSOLE port and prepare to log in via serial connection.
Turn off the power and toggle the dip switch.
Ensure the BUSY lamp is not blinking, then turn off the power switch next to the power cable to shut down the router.
…
2009-10-20About This Site
About This Site This blog is a personal blog written by masa23 as a personal memo.
As I write casually every day, please do not have high expectations for the content.
The articles are translated using ChatGPT based on the original Japanese text.
Contact X (Twitter): @yamamasa23 GitHub: masa23 Mail: masa(at)masa23.jp
…
1970-01-01Hello World!
投稿テスト 投稿テスト2 投稿テスト3 #include<stdio.h> int main() { printf("%s\n", "Hello World!"); return 0; } #!/bin/sh echo "Hello World!" package main func main() { fmt.Println("Hello World") } test test2
…
1970-01-01