我无法安装 RMagick,因为在 Ubuntu 10.0.4 上尝试sudo apt-get install libmagick9-dev(根据此需要)后出现以下依赖问题:
Note, selecting libmagickwand-dev instead of libmagick9-dev Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagickwand-dev:
Depends: libmagickwand2 (= 7:6.5.7.8-1ubuntu1.1) but it is …Run Code Online (Sandbox Code Playgroud) 如何在终端中使用 xkb 或其他一些工具将 Caps Lock 永久绑定到ctrl+ b?
(这是Caps Lock为 tmux制作默认前缀键。如果太困难,它也可以映射到特定键,例如功能键,然后可以将其设为 tmux 前缀。)
我已经根据它附带的 init.d 脚本为 memcached 编写了一个新贵脚本,因为我在任何地方都找不到任何示例。问题是当我终止进程时它不会自动重生。
env DAEMON=/usr/bin/memcached
env DAEMONBOOTSTRAP=/usr/share/memcached/scripts/start-memcached
start on started
stop on runlevel [!2345]
respawn
post-stop script
start-stop-daemon --stop --pidfile /var/run/memcached.pid --name memcached --chuid nobody --user nobody --exec $DAEMON --signal TERM
end script
exec start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP
Run Code Online (Sandbox Code Playgroud)