Created
September 6, 2019 13:01
-
-
Save leewin12/119c7189440a506b38a0242bccff21c7 to your computer and use it in GitHub Desktop.
Revisions
-
leewin12 created this gist
Sep 6, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ $ vim /etc/systemd/system/mysql.service [Service] LimitNOFILE = infinity LimitCore = infinity LimitMEMLOCK = infinity $ systemctl daemon-reload $ service mysql restart $ ps -ef | grep mysql | awk '{print $2}' | head -n1 | xargs -I{} cat /proc/{}/limits