Articles of centos

添加一个新域名到我的VPS无法正常工作(CentOS / Apache)

我想要做的是添加一个新的域到我的VPS。 所以我给我的httpd.conf添加了一个新域名,并更新了我的注册商的相应域名服务器。 我在httpd.conf文件中使用了这个代码: <VirtualHost *:80> ServerAdmin emanuel@*****.net DocumentRoot /var/www/example.ro ServerName www.example.ro ServerAlias example.ro ErrorLog /var/www/example.ro/error.log CustomLog /var/www/example.ro/requests.log common <Directory /var/www/example.ro> <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> </Directory> </VirtualHost> 我等了一天,以确保DNS传播是好的,但似乎这个域没有绑定到任何DNS。 当我尝试ping域名时,得到“Ping请求未find主机example.ro,请检查名称并重试”。 我错过了什么吗? 我是服务器configuration的初学者

SSH工作,但隧道或SFTP不。 为什么?

自2014年以来,我从SoYouStart和Centos 7获得了一台服务器。它运行良好,但是现在我不得不再次安装操作系统。 现在我正在configuration所有的服务再次工作。 我需要使用SSH隧道连接到服务器到Mysql(现在是MariaDB)并使用SFTP传输文件。 问题是,我可以成功地连接SSH到服务器(从任何主机),但当我尝试使用Cyber​​duck或Navicat连接到服务器使用SSH隧道时,我得到一个错误(“服务器意外closuresnetworking连接”或“有在连接到端口22上的服务器时出现问题。“)。 我尝试从iPhone与SSH壳,我可以成功连接与SSH和SFTP,但不是与SSH隧道的数据库。 我不明白问题在哪里。 我已经禁用了iptables,firewalld(我用iptablesreplace了它)和selinux直接连接到允许远程连接的数据库。 服务器有一个静态的IP地址,从提供商,我的作业netwkor在最后几个小时没有改变,所以我不认为这个问题在这里。 谁能帮我? 非常感谢你 安德里亚 编辑@TheCompWiz sshd_config已经允许Tcp转发。 这些是未注释的行: PermitRootLogin yes PasswordAuthentication yes ChallengeResponseAuthentication no AllowTcpForwarding yes X11Forwarding yes UsePrivilegeSeparation sandbox PermitTunnel yes Subsystem sftp /usr/libexec/openssh/sftp-server 而奇怪的是,我可以从一个移动应用程序SFTP,但我不能从电脑做.. MySQL的SSH隧道仍然无法正常工作 非常感谢你

在CentOS上安装PHP 5.3.3的Zend Server

我有两个Linux服务器 CentOS 6.5 CentOS 6.6 我有这些服务器上的PHP 5.3.3 我应该将Zend Server的哪个版本安装到这些服务器上?

“在VNC服务器上无法打开显示”“”错误

我试图为我的CentOS 6服务器运行一个GUI。 我已经安装了VNC,并且我已经遵循了这个指南到最后 – http://wiki.centos.org/HowTos/VNC-Server 一旦VNC服务器启动,我尝试通过命令访问它: vncviewer -via [email protected] localhost:1 就像导游说的 一旦运行,它会要求我的帐户密码,然后显示此错误: vncviewer:无法打开显示“” 我已经按照指南中的说明安装了GNOME显示器,方法是使用以下命令: yum groupinstall Desktop 有任何想法吗? 编辑:我在问题的CentOS服务器,目前看起来像terminal。 我试图得到一个GUI显示器上运行,我已经进入命令启动服务器vncviewer -via user@ip localhost:1但它导致了相同的错误: vncviewer: unable to open display "" 在我的/etc/sysconfig/vncservers文件中,我有: VNCSERVERS="1:user" VNCSERVERARGS[1]="-geometry 800×600 -localhost" netstat -plunt | grep 5901输出 netstat -plunt | grep 5901 : tcp 0 0 127.0.0.1:5901 0.0.0.0:* LISTEN 29577/Xvnc 编辑#2:安装新软件包并运行“startx”后,运行了一段时间。 然后我收到了一些错误: 致命的服务器错误: […]

无法在CentOS 6.5上安装IBM安装pipe理器

当我尝试将IBM安装pipe理器安装到CentOS 6.5中时遇到问题。 我试图安装所有版本的IBM安装pipe理器(都远离窗口和GUI模式),但同样的错误发生。 在命令行上: Xlib: extension "RANDR" missing on display "localhost:11.0" 在GUI中: Install: JVM terminated. Exit code=13 /ftp/im//jre_6.0.0.sr9_20110208_03/jre/bin/java -Xms40m -Xmx512m -Xquickstart -Xgcpolicy:gencon -jar /ftp/im/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /ftp/im/install -name Install –launcher.library /ftp/im/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so -startup /ftp/im/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar –launcher.overrideVmargs -exitdata 18000 -toolId install -accessRights admin input @osgi.install.area/install.xml -vm /ftp/im//jre_6.0.0.sr9_20110208_03/jre/bin/java -vmargs -Xms40m -Xmx512m -Xquickstart -Xgcpolicy:gencon […]

Apache不会将HTTPS请求代理到tomcat

Centos 7,Apache 2.4,TomCat 7.0.52,Java 1.7 我正在尝试使用HTTPSconfigurationApache来代理一个tomcat服务器(运行Jira / Confluence): (HTTPS:443) – > ApacheServer – >(HTTP:8090或HTTPS:8091)TomCat 目前HTTP代理工作完美,但我想获得HTTPS的工作。 我不介意Apache和Tomcat之间的连接是SSL(在同一台服务器上)。 当我访问https://confluence.company.co.uk/我得到/var/www/html/index.html而不是代理。 这里是tomcat的Server.xml: <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="200" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" /> <Connector port="8091" proxyPort="443" proxyName="confluence.company.co.uk" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" scheme="https" secure="true" /> 行从Apache的默认/etc/httpd/conf.d/ssl.conf中更改: ServerName confluence.company.co.uk:443 SSLCertificateFile /etc/pki/tls/certs/company.pem SSLCertificateKeyFile /etc/pki/tls/private/company.key Apache VHostconfiguration(在/etc/httpd/conf.d/proxy_vhost.conf中): […]

ip6tables端口下降和默认值

在CentOS 6上,ip6tables实际上给这台机器带来了一场噩梦。 有 ip6tables -P INPUT ACCEPT ip6tables -P OUTPUT ACCEPT ip6tables -P FORWARD ACCEPT 同 ip6tables -A INPUT -p tcp -m multiport ! –dports 21,22,80,443 -j DROP ip6tables -A INPUT -p udp -m multiport ! –dports 21,22,80,443 -j DROP ip6tables -A INPUT ! -p ipv6-icmp -j DROP ip6tables -A OUTPUT -p tcp -m multiport […]

需要Dracut-Kernel更新,但在Centos 6.6上运行Yum时不会

当谈到Linux的时候,我是一个公平的新手,但是在更新之前一直工作正常并且更新的小型Centos 6.6盒子时遇到问题。 当运行yum更新时,我得到下面的错误。 我已经尝试运行yum -clean所有在另一个类似的问题上的post,但没有帮助。 –> Processing Dependency: dracut-kernel >= 004-388.el6 for package: kernel-2.6.32-573.1.1.el6.x86_64 –> Finished Dependency Resolution Error: Package: kernel-2.6.32-573.1.1.el6.x86_64 (updates) Requires: dracut-kernel >= 004-388.el6 Installed: dracut-kernel-004-256.el6.noarch (@anaconda-CentOS-201112091719.x86_64/6.2) dracut-kernel = 004-256.el6 You could try using –skip-broken to work around the problem You could try running: rpm -Va –nofiles –nodigest

当试图连接到我的后缀服务器remotley“503错误:validation未启用”

我有以下几点: postfix-2.10.1-6.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 cyrus-sasl-plain-2.1.26-17.el7.x86_64 cyrus-sasl-2.1.26-17.el7.x86_64 我的postconf -n是: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man […]

卷毛,山猫等不接受本地证书,但远程可以

当我连接到我的networking服务器通过HTTPS查看网站时,我在地址栏中获得了漂亮的绿色电动车事件。 当我使用curl本地连接时,它会抱怨证书并死亡。 我知道我可以跳过证书检查,但我想解决这个问题,因为有些时候这些证书将在本地检查。 我的主机文件(在服务器上)将www.domain.com映射到192.168.100.62。 哪个Apache正在监听(通过对cURL执行相同的地址来确认): root@web3:~# curl -v https://www.domain.com * About to connect() to www.domain.com port 443 (#0) * Trying 192.168.100.62… connected * Connected to www.domain.com (192.168.100.62) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * Peer's certificate issuer is not recognized: 'CN=Symantec Class 3 EV SSL CA – […]