服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我可以使用-D在SSH连接的本地创build一个SOCKS代理,但有没有办法在远程端创build一个代理? 如果没有,为什么不呢? -L和-R分别在本地和远端进行端口转发。 我不明白为什么远程SOCKS代理不存在。
我刚刚在Azure上创build了一个Ubuntu虚拟机。 它说使用SSH连接到虚拟机。 当我尝试从命令行第一次SSH时,它会要求validationECDSA密钥指纹,但在Azure门户中的任何位置都无法看到它,无论它是我创build的计算机的正确密钥。 任何帮助在Azure Portal中find将不胜感激。 谢谢。
我想问一下,如果从下面的日志中我们可以说Mysql的崩溃是因为我们为Mysql定制的库吗? Sep 26 15:24:30 mysqld: /usr/lib/mysql/plugin/my_lib_discounts.so(_ZN13CDiscountCalcD1Ev+0x52)[0x7f5da35439da] Sep 26 15:24:30 mysqld: /usr/lib/mysql/plugin/my_lib_discounts.so(my_lib_discountsAgg_deinit+0x31)[0x7f5da35431be] 整个日志: Sep 26 15:24:30 mysqld: Thread pointer: 0x7f5d980ab690 Sep 26 15:24:30 mysqld: Attempting backtrace. You can use the following information to find out Sep 26 15:24:30 mysqld: where mysqld died. If you see no messages after this, something went Sep 26 15:24:30 mysqld: terribly […]
Cisco Catalyst 2960交换机的电源究竟是什么? 这可能是一个非常愚蠢的问题。 我买了一个,而它有2个电源适配器terminal,它没有电源线包装。 我向经销商询问这件事,他们告诉我 本机不使用电源线。 它有一个内部电源。 就她而言,我确实在数据表中看到这样说: ●客户可以通过内部电源为交换机供电。 连接器位于交换机的后部。 这些交换机没有冗余电源端口。 ●内部电源是自动量程单元 ●内部电源支持100到240 VAC之间的input电压 我很抱歉,但是这对我来说是非常新的(我只是买了它来帮助我学习),我正在努力去理解它。 多次提到“内部电源”似乎支持经销商的声明。 然而,(a)当我将它连接到路由器和主机时,似乎并不工作;(b)数据表也在讨论“连接器”和“input电压”,这听起来像仍然需要电源适配器而这种“内部供电”并不是经销商所暗示的。 我认为答案是这样的 经销商误解了被称为内部电源的硬件(他们应该给我一根电缆) 它确实需要一个适配器, 这是一种可能性 但是,我仍然不是100%肯定,我想了解这个“内部电源”的概念。
我好像在CentOS -7上试图安装openjdk-1.8.0(&-devel),而yum无法find软件包(没有包java-1.8.0-openjdk可用)。 http://mirror.centos.org/centos/7/updates/x86_64/Packages/甚至没有从这里。 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tripadvisor.com * epel: s3-mirror-us-east-1.fedoraproject.org * extras: mirror.vtti.vt.edu No package java-1.8.0-openjdk available. Error: Nothing to do CentOS的-Base.repo内: [base] name=CentOS-$releasever – Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever – Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that may be […]
在我之前的问题中 ,SSL证书不适合我,直到我使用相对path而不是绝对path工作。 问题:为什么我的VirtualHost / httpd不接受绝对path? 有一些configuration什么的? 我的VirtualHost(非工作); <VirtualHost *:80> ServerName www.example.com ServerAlias example.com RewriteEngine on RewriteRule ^/?(.*) https://example.com/$1 [R,L] </VirtualHost> <VirtualHost *:443> ServerName example.com DocumentRoot /var/www/msdfw ErrorLog /var/iwww/logs/e-msdfw CustomLog /var/iwww/logs/c-msdfw combined DirectoryIndex index.php SSLEngine on SSLCertificateFile /var/iwww/certs/msdfw/c.pem SSLCertificateKeyFile /var/iwww/certs/msdfw/p.key SSLCertificateChainFile /var/iwww/certs/msdfw/b.pem <Directory /var/www/msdfw/> Require all granted </Directory> </VirtualHost> 错误日志: Sep 26 17:00:11 localhost systemd[1]: Starting […]
我有3个服务器作为代理负载平衡。 有人已经获得了他们的访问,并以某种方式创buildindex.html在我的webroot包含广告和我的主要index.php文件的iframe。 我不确定他们是怎么做到这一点的,因为即使我在整个服务器上删除了index.html文件,我可以在半天后返回,看看它已经完成了。 我注意到在服务器上有一个web shell脚本,并将其删除。 我也改变了sshd_config,以便只有一个用户能够login,所有其他帐户不能。 不知何故,他们仍在访问服务器并进行这些更改。 历史不显示任何东西。 我需要尽快解决这个问题。 任何人都可以提出build议吗? 谢谢!
甚至需求https://docs.ansible.com/ansible/devel/docker_volume_module.html python> = 2.6(2.7.13) docker-py> = 1.10.0(1.10.6) 我不能在剧本中使用docker_volume。 其他docker模块已经安装: bash-4.3# ansible-doc -l | grep docker docker manage docker containers docker_container manage docker containers docker_image Manage docker images. docker_image_facts Inspect docker images docker_login Log into a Docker registry. docker_network Manage Docker networks docker_service Manage docker services and containers. 我知道我可以使用shell命令,但是我想知道是否有方法来安装docker_volume。 操作系统是在这个pourpose创build的docker图像高山3.6。 关于docker-py的信息: bash-4.3# sudo pip show docker-py […]
我经常需要在varios位置创build文件的副本(并且希望避免过多的input)。 (然后我会编辑它们) 基本上命令是这样的: cp very/long/path/to/file/my-file_with-long.name very/long/path/to/file/my-file_with-long-another.name vim very/long/path/to/file/my-file_with-long-another.name cp even/longer/path/to/other/location/with_another-file_and-stupid.name even/longer/path/to/other/location/with_another-file_and-stupid-copy.name vim even/longer/path/to/other/location/with_another-file_and-stupid-copy.name 我真的想避免用cd更改workdir并input相同的path两次。 基本上我可以将命令添加到像mydup这样的bashrc ,所以它会创build新文件并返回它的名字,所以我使用: vim $(mydup very/long/path/to/file/my-file_with-long.name -another) vim $(mydup even/longer/path/to/other/location/with_another-file_and-stupid.name -copy) 但也许我发明了自行车,还有更简单的方法来做同样的事情吗?
我正在努力在我们的环境中标准化不同的位,并且希望转向基于ssh密钥的身份validation。 目前我们在每台服务器上都有个人帐户(大约150-200个),幸好我们在大多数服务器上保持uid / gid / username相同。当有人join或离开时,很难在每台主机上添加/删除用户公司。 通常情况下,每个团队和团队成员都有一个软件帐户,通过input帐户密码ssh到服务器作为软件帐户。 为了方便我们的pipe理,我将在环境中引入puppet,并且想用ssh_authorized_key puppet资源用用户的公钥更新软件账户授权密钥文件。 在我的理解中,这将是: ssh_authorized_key {'Ram':user =>'',type =>'ssh-rsa',key =>'',} ssh_authorized_key {'Shyam':user =>'',type =>'ssh-rsa',key =>'',} 那么,如何确保这个公钥在所有服务器上都是相同的? 例如,如果用户'Ram'尝试从任何服务器ssh到服务器'hostA',则应该使用相同的公私密钥对。 任何指针,我怎么能保持? 请让我知道,如果有什么不清楚。 提前致谢。 -内存