运行 Xvfb 在远程后台 linux
running Xvfb in background on remote linux
我在远程 linux 上遇到 Xvfb 问题。当我 运行 命令
Xvfb :99 &
我在命令行上收到此消息
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension GLX
而且我必须使用 ctrl+c 暂停它,它仍然会在后台 运行ning,我正在编写一个 shell 脚本来自动化它,但是这个命令 Xvfb :99 &
运行ning 不在后台!有什么帮助吗?
我的 shell 脚本:
system("sudo yum -y install Xvfb");
system("sudo yum -y install firefox");
system("sudo yum -y install ImageMagick");
system("Xvfb :99 &");
system("export DISPLAY=:99");
而不是 & 尝试在下面使用:
输入 Xvfb 后发出 ctrl+z 命令:99
然后输入bg在后台将进程发送到运行,后续会在后台继续运行ning。
编辑:下面也应该有帮助:
nohup Xvfb :99 > /dev/null 2>&1 &
或者干脆 nohup Xvfb :99 &
我在远程 linux 上遇到 Xvfb 问题。当我 运行 命令
Xvfb :99 &
我在命令行上收到此消息
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension GLX
而且我必须使用 ctrl+c 暂停它,它仍然会在后台 运行ning,我正在编写一个 shell 脚本来自动化它,但是这个命令 Xvfb :99 &
运行ning 不在后台!有什么帮助吗?
我的 shell 脚本:
system("sudo yum -y install Xvfb");
system("sudo yum -y install firefox");
system("sudo yum -y install ImageMagick");
system("Xvfb :99 &");
system("export DISPLAY=:99");
而不是 & 尝试在下面使用:
输入 Xvfb 后发出 ctrl+z 命令:99
然后输入bg在后台将进程发送到运行,后续会在后台继续运行ning。
编辑:下面也应该有帮助:
nohup Xvfb :99 > /dev/null 2>&1 &
或者干脆 nohup Xvfb :99 &