服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
列update_time和create_time在MYSQL的information_schema表中有值NULL。 值怎么能是NULL? 谁能解释一下吗?
我愚蠢地从我的公司域名删除我的笔记本电脑,但已经使用本地pipe理员帐户把自己放回去。 它的安装很好,但是我得到错误there are currently no logon servers available to service the logon request 。 我知道证书需要caching,而首先连接到networking,但我想知道是否有这样做,而不是在networking上,看到我已login帐户多年没有问题,但只是暂时敲自己脱离域名? 或者,这是caching清除,我需要再次login才能进入域? 我在Windows 7上。
我有一个网站http://someplace.acme.com ,我希望我的用户通过访问http://myplace.mycorp.com – 非常标准的反向代理设置。 特殊要求:任何js文件 – 要么由.js扩展名和/或MIMEtypes(如果可能的话)标识文本/ JavaScript需要从一个不同的位置,一个本地工具,检查js的潜在威胁。 所以我有 location / { proxy_pass http://someplace.acme.com; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_redirect off; proxy_buffering off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ~* \.(js)$ { proxy_pass http://127.0.0.1:8188/filter?source=$1; proxy_redirect off; proxy_buffering off; } JS仍然是从远程服务,我不知道如何检查MIMEtypes。 我错过了什么?
我如何设置域domain.tld转发到特定的端口,即端口2375(内部的灯configuration)侦听特定的docker集装箱? 我使用的服务器是Ubuntu 14.04,服务器pipe理软件是Webmin 1.700。
有什么办法让虚拟客户端只查询它的当前主机的NTP? 我不是在说在主机的IP上configurationntp.conf,因为VLAN和防火墙可能会阻止该stream量。 迁移到不同的主机也需要ntp reconfig&restart。 从客人到主机的直接(拦截?)查询。 我尝试了各种NTP解决scheme,理论上来说,对于一个guest虚拟机来说,最好只查询当前的NTP同步主机(尽pipeVMwarebuild议不要使用它的sync-with-host选项)。 它可能需要一个支持virt的NTP版本。 如果主机不可用,则只需要一个NTP源,因为guest虚拟机不会运行。
如何以特定用户身份执行Powershell cmdlet并将返回值保存在variables中? 我到目前为止是这个片段 Start-Process powershell.exe -Credential $credentials -NoNewWindow -ArgumentList "Get-Item Env:AppData" 问题是,任何返回值只能在进程中生效,并不会从我执行所述命令的位置进入PowerShell环境。
我试图创build一个系统DSN ODBC连接到DB2 9.5数据库,但我得到一个非常奇怪的问题。 我已经浏览了互联网,发现下面的页面有一些关于如何继续的说明: http : //www.ryslander.com/how-to-install-and-configure-db2-odbc-driver/ 。 我遵循这些说明,我能够创build一个新的系统DSN,但是当我尝试configuration它,似乎我的configuration根本不工作。 例如,当我点击我的系统DSN上的“configuration”button,并在“高级设置”选项卡上添加TCP / IP协议configuration,然后单击“确定”,则不会出现错误,但是当我单击“configuration”再次我的TCP / IP设置已经消失。 这发生在我所有的其他configuration,如数据库名称,用户名,密码等 你能帮我弄清楚我做错了什么吗? 注意:我的用户在pipe理员组中,而我正在使用Windows Server 2008 R2 Enterprise x64。 UPDATE 我设法创build一个用户DSN并连接到数据库。 但是系统DSN的问题仍然存在。
我正在尝试从我的DigitalOcean服务器( Ubuntu-14.04 64x )上运行的原始编译的Nginx服务器的源代码编译Nginx,但有一些额外的模块。 我可以安装一切顺利,但我无法启动它。 我确定ini是正确的,因为我将当前正在运行的Nginx服务器的原始源文件复制下来[尽pipe我看到Nginx现在在编译fron源文件时添加了ini。 下面是我正在执行的[漫长的过程] – 增加对不起,但我想为需要信息的人彻底。 因为我是Nginx的newB,所以我肯定我错过了一些东西,或者只是把它全错了。 如果你可以看看我已经做了什么,看看你是否需要改变任何东西,我将不胜感激。 日Thnx! 原始的Nginx服务器仍在运行: 我检查当前/正在运行的Nginxconfiguration,以便可以构build新的Nginx实例,但使用添加的模块: nginx -V # The out-put: configure arguments: –with-cc-opt='-g -O2 -fstack-protector –param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' –with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' –prefix=/usr/share/nginx –conf-path=/etc/nginx/nginx.conf –http-log-path=/var/log/nginx/access.log –error-log-path=/var/log/nginx/error.log –lock-path=/var/lock/nginx.lock –pid-path=/run/nginx.pid –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –with-debug –with-pcre-jit –with-ipv6 –with-http_ssl_module –with-http_stub_status_module –with-http_realip_module –with-http_addition_module –with-http_dav_module –with-http_geoip_module –with-http_gzip_static_module –with-http_image_filter_module –with-http_spdy_module –with-http_sub_module –with-http_xslt_module […]
我想逐个运行命令,以便更改服务器上目录的名称。 当我运行脚本时,在服务器1中重命名的目录。但是,在服务器2中找不到目录。 脚本中的错误可能是什么? 脚本; #!/bin/bash mach_directory=/home/user/example erase_dir1=cache erase_dir2=tmp for i in {0..10} do user=user server=$(ssh $user@server$i hostname) ssh $user@$server find $mach_directory -type d -name $erase_dir1 ! -path "*Admin/$erase_dir1*" -print0 | while IFS= read -r -d '' file ; do mv "$file" "${file}_$(date +%d%m%Y)"; done ssh $user@$server find $mach_directory -type d -name $erase_dir2 ! -path "*Admin/$erase_dir2*" […]
我做了这个新贵的脚本,启动一个Node.js服务。 但突然之间服务已经停止,而新贵却没有重新启动。 现在,我正尝试手动启动它,但无法识别我的服务: start: Unknown job: queue 该脚本正确放置在/etc/init ,并且应该具有正确的权限: -rw-r–r– 1 root root 200 Aug 7 13:30 queue.conf 当我用init-checkconf检查configuration文件时,它说它不能以root身份运行: root@production1:~# init-checkconf /etc/init/queue.conf ERROR: cannot run as root 什么原因导致这个错误,我该如何解决? debugging信息: Ubuntu 12.04.3 LTS root@production1:~# service –version service ver. 0.91-ubuntu1 编辑 这里是queue.conf : description "Echo.it command queue" author "Ronni Egeriis Persson <[email protected]>" stop on shutdown respawn respawn […]