Windows的Cygwin速度很慢/很慢

85fce

突然,我从Windows命令行启动的所有Cygwin命令在执行之前都有大约10-20秒的延迟,因此Cygwin变得完全不可用。我已经尝试过重新安装,但没有成功。

从Bash shell窗口中执行命令可以正常工作(启动Bash时我看到了滞后)。从本地PATH变量中删除所有条目不会产生影响。我使用Windows 7 x64和Cygwin x64 v 1.7.34(0.285 / 5/3)。

波波哥

有时,我在具有数千个用户的Windows域中工作。

我不想做任何猜测。我希望Cygwin根据需要缓存用户信息。事实证明,这很容易做到。

只需cygserver在登录时运行即可

要正确设置,请cygserver-config运行一次。这将设置cygserver为使用正确的凭据作为Windows服务运行。管理员Cygwin窗口执行此操作

$ cygserver-config
Generating /etc/cygserver.conf file

Warning: The following function requires administrator privileges!

Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes

The service has been installed under LocalSystem account.
To start it, call `net start cygserver' or `cygrunsrv -S cygserver'.

Further configuration options are available by editing the configuration
file /etc/cygserver.conf. Please read the inline information in that
file carefully. The best option for the start is to just leave it alone.

Basic Cygserver configuration finished. Have fun!

什么是cygserver对我做什么?

看看Cygwin网站上的文档基本上,它负责用户缓存内容,并确保IPC在所有Cygwin进程之间都能正常工作

当然,您的里程可能会有所不同,但这是我首选的工作方式。我应该在多年前完成。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章