Ubuntu*
$ sudo apt -y install libidn11-dev
$ gem install idn-ruby # Rails で使用する場合はプロジェクトディレクトリ内で bundle install
macOS
First, install latest Ruby Example:
rbenv install 2.6.0
rbenv global 2.6.0
rbenv rehash
After that I redid the following:
Squid is available in the Ubuntu repositories. To ensure your system is up to date and then to install Squid, run the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install squid
Copy the original configuration file to keep as a backup:
find . -name "node_modules" -exec rm -rf '{}' +
That will delete the folder and files even if there is a space in the name.
That saved me about 10GB over several hundred node projects which I had not touched in a while.
If I need the node modules back, I can simply run npm install
If you are setting up nginx,chances are you will discover your worker_connections is at some low number, such as 1024.
You can’t increase this number unless you increase kernel limit as well.
First of all run cat /proc/sys/fs/file-max
to discover your maximum limit.
abc@ubuntu:~$ cat /proc/sys/fs/file-max
1048576
abc@ubuntu:~$ ulimit -n
1024