Articles of vps

Ubuntunetworking服务器configuration错误

我们正试图将我们托pipe的网站移到我们自己的VPS。 我问公司我们在哪里托pipe服务器来build立networking服务器,因为它运行的是Ubuntu,我不是Linux专家,也不想搞乱我们的ERP和其他软件。 他们确实设置了networking服务器,但是它确实是错误的。 首先是有部分许可问题,但是当我上传网站(Presta Shop)时,几乎没有任何工作。 首页给了http 500错误,在后端的UTF-8字符被搞砸了,安装的模块没有出现等… 所以我开始调查,http 500是因为presta店铺没有看到主题文件夹。 该文件夹存在和权限是好的,所以这不是问题。 接下来,我重新安装了Presta Shop主题和模块。 主题起作用,但新创build的主题和模块文件夹无法在文档根目录中find。 至less在FTP用户访问。 我检查了Presta商店configuration,Presta商店看到了不同于FTP的doc根path。 我可以通过FTP / SFTP或SSH访问的path是/ sql / www_html /和Presta可以看到/ var / www / html /但是/ var中没有www文件夹 这是怎么回事? 为什么Presta看到不同的path? 新创build的主题,模块文件夹在哪里? 但是最大的问题是我该如何解决? 这是一个Apache错误configuration或其他?

Apache仅使用SSL的多个域名1

我有一个VPS与Apache2工作。 我的问题是,我有2个项目: 1. example.com 2. admin.example.com 我有一个SSL证书(只适用于)example.com我的问题是,当我访问admin.example.com,Web服务器正在为我的主项目(如我访问example.com)。 同样的问题,如果我通过IP访问。 我有2个虚拟主机可configuration。 我正在使用.htaccess文件redirect到https 我的example.com conf文件: <VirtualHost example.com:80> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com DocumentRoot "/var/www/example.com/public" ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> <IfModule mod_ssl.c> <VirtualHost example.com:443> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com DocumentRoot "/var/www/example.com/public" SSLEngine on SSLCertificateFile /etc/ssl/example.com/example.com.crt SSLCertificateChainFile /etc/ssl/example.com/example.com.intermediate.ca SSLCertificateKeyFile /etc/ssl/example.com/example.com.key </VirtualHost> </IfModule> 在这里input图像说明 我的admin.example.com conf文件 <VirtualHost admin.example.com:80> […]

(数字海洋)VPS液滴是否正品? 我怎样才能相信第三方VPS?

我有一些基于数字海洋debian的飞沫,我不知道他们从香草debian安装多远。 据我所知,在技术上可能的是一些额外的软件(恶意或不)已经安装在液滴。 我如何确定并相信新创build的Debian小程序只包含Debian免费软件? 要清楚,我没有理由怀疑数字海洋,同一个问题是有效的任何VPS提供商

如何保护Windows VPS,而访问它的唯一方法是RDP?

我曾经有Windows服务器2008和VPS提供者有VNC访问,我可以在本地login到VPS。 现在我将2008升级到Windows server 2016 Hyper-V。 然后我发现他们不提供VNC访问。 访问Windows Server 2016的唯一方法是远程桌面。 在过去,我通过防火墙策略和IP安全规则来保护RDP。 这些测量是非常有用的,它也可能locking我。 但是,由于我无法在本地login,所以我必须发出支持凭单,让他们禁用防火墙,并且周转时间很长。 当我制定这些规则时非常不方便。 你有什么build议保护暴力破解RDP攻击我的VPS? 如果我以某种方式阻止了攻击者的子网,如果他恰好与我在同一个子网中,我也被locking。 如何在VPS仍允许我login时阻止攻击者?

非常高的CPU负载低到中VPS上的RAM使用率(超过100%的CPU)

我在VPS Virtuozzo服务器上使用: 8GB内存 6个CPU SSD硬盘 Debian 8.8 PHP 5.6.30 MySQL 5.5.55 只有一个网站是服务的。 它是一个带有SSLfunction的网站,大约有22000篇文章。 它获得中等stream量,大约8k用户,每天18k的综合浏览量。 由于网站的性质,我们得到了很多不好的机器人请求和黑客攻击。 fail2banconfiguration和报告良好。 顶部-i报告有时mysql的CPU%为200。 Virtuozzo报告 CPU使用率99.9% CPU负载平均7.13,7.42,6.97 内存42% 结果在某些时候apache暂停并重新启动。 my.cnf文件: [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = […]

连接到我的VPS时出错,ssh_exchange_identification:读:连接重置

AM试图login到我的vps使用ubuntuterminalbuit这个失败,使用腻子连接工作 我的本地桌面运行的是Ubuntu 16.04 打字后在terminal上 ssh -vvv [email protected] 我得到了 OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /home/geowan/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "xx.xxx.xx.xxx" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to xx.xxx.xx.xxx [xx.xxx.xx.xxx] port 22. debug1: Connection established. debug1: identity file […]

更新Ubuntu VPS返回错误

请有人帮忙 我刚刚购买了这个VPS,安装了Ubuntu-16。 以root用户身份login并发出apt-get update 。 我得到了下面的错误。 什么可能是错的。 错误日志 : Read-only file system) W: Problem unlinking the file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_binary-amd64_Packages – TransactionAbort (30: Read-only file system) W: Problem unlinking the file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_binary-i386_Packages – TransactionAbort (30: Read-only file system) W: Problem unlinking the file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_i18n_Translation-en – TransactionAbort (30: Read-only file system) W: Problem unlinking the file /var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_xenial-updates_multiverse_binary-amd64_Packages – […]

如何将子域redirect到Windows Server 2008 VPS中的特定本地端口?

我有一个运行Windows server 2008 datacenter的VPS ,带有一个静态IP地址。 我可以通过特定的端口从Internet访问我的Web服务,例如mydomain.com:3000/api和mydomain.com:4000/api 。 我想将此Web服务访问地址更改为子域方法(子),如App1WS.mydomain.com/api和App2WS.mydomain.com/api 更新 我将这一行添加到host文件 127.0.0.1 mobileapp.myrealdomain.com 然后在nginx中,我在最后添加这些行 server { listen 80; #root html; root c:/apps/web; server_name mobileapp.myrealdomain.com; location / { proxy_pass "http://127.0.0.1:3000"; } } 然后我开始了我的回环项目,可以通过以下方式访问: C:\apps\mobileapp>node . Web server listening at: http://localhost:3000 Browse your REST API at http://localhost:3000/explorer 然后,我将Alias(CNMAE)logging添加到DNS: alias name: mobileapp FQDN: mobileapp.myrealdomain.com FQDN for target host: 127.0.0.1:3000. […]

从分区安装操作系统

正如在主题中所说,我想从一个特定的分区安装操作系统。 因为我打算在低成本的vps服务器上做这个,因为没有像挂载外部CD-ROM,VHDS甚至软盘(!)这样的选项,我不得不执行“离线”(on-harddrive)操作。 VPS在VMware vSphere上运行,SCSI控制器作为主HD。 我试图安装的系统是基于CentOS 7的Rockstor 3.9.1。我一直试图在ext2中创build新分区,从.iso安装程序中提取所有文件,并在启动之前从GRUB启动ram磁盘和内核操作系统,但不幸的是,它没有工作。 我也尝试dd ISO分区和尝试chainloader +1,但它返回一个“isolinux.bin丢失或损坏”的错误。 我想要做的是:将文件(或文件系统)复制到分区,从GRUB启动,将系统安装到另一个分区,不要触及安装程序,系统启动时删除安装分区,调整主分区的大小。 现在的主要问题是:我该怎么做?

使用Google 2因素authentication可以密码保护apache目录吗?

我知道如何用htaccess密码保护apache目录。 是否可以使用Google 2因素authentication受保护的目录?