Fix the ‘Too Many Open Files’ Error in a systemd service in Linux
In short:
Change the service file, and add two lines after [Service] line,
[Service]
LimitNOFILE=65535
LimitNOFILESoft=65535
If you want to know more, read the Reference
In short:
Change the service file, and add two lines after [Service] line,
[Service]
LimitNOFILE=65535
LimitNOFILESoft=65535
If you want to know more, read the Reference
$ cat ~/.my.cnf
[client]
user=yourDbUserName
password=yourDbPassword
host=yourDbHost
#!/bin/bash
set -ex
variable=`TZ="Africa/Abidjan" date '+%Y-%m-%d %H:%M:%S'`
sql="Your SQL statement with ${variable}"
logDir=/data/Logs/`date '+%Y'`/`date '+%m'`
mkdir -p "${logDir}"
echo "${sql}" >> "${logDir}/`date '+%d'`.sql"
mysql -v -v -e "${sql}" >> "${logDir}/`date '+%d'`.result.txt"
the end.
这都是为了看《非正常人类异闻录》
iconv -c -f gbk -t utf-8 待转文件名 > target.txt
-c 的意思是在输出文本中忽略非法的字符序列
然而都弄好了,即没有认真看那本书。不喜欢那种风格,没办法
ps
apt install -y procps
ping
apt install -y iputils-ping
telnet
apt install -y telnet
first,
sudo dpkg --configure -a
followed by:
sudo apt --fix-broken install
The keyboard shortcuts setting in the Settings app can only support 4 workspaces. However, I want to use 8 workspaces to implement the goal of "everything in its right place". Solution:
sudo apt install dconf-editor
dconf-editor
org/gnome/desktop/wm/keybindings
# Then you can do what you want to do there
By the way, my final configuration is shown below:
Ctrl + 1-8
Switch to workspace 1-8
Ctrl+Alt+1-8
Move current window to workspace 1-8 and jump to that workspace