vps

Can the GUI of an RDP session remain active after disconnect

寵の児 提交于 2020-12-28 07:42:33
问题 I'm running automated testing procedures that emulates keystrokes and mouseclicks 24/7. Although it runs fine locally, on an RDP session it stops running once minimized or disconnected. Apparently, the GUI doesn't exist if you can't physically see it on the screen. There is a registry work-around for keeping the GUI active for minimizing the window, but I know of no way to keep it alive after disconnect. Ideally, I would have this run on the server Windows console session which would not care

How to run MongoDB using PM2

旧街凉风 提交于 2020-12-04 08:53:40
问题 How do I run MongoDB using PM2? I'm using a Linux VPS (CentOS) and I tried doing this: pm2 mongod ^ and that works but the problem is I need to bind IP and DBPath name pm2 mongod -dbpath /home/[ommitted]/data/db --bind_ip [ommitted] -auth ^ But that doesn't work because of PM2 flags. So how can I run it using PM2 or at least make it so it doesn't shut down when I close the terminal 回答1: You can create an SH file that runs the command, then run the SH file. 1. For example, name it "run.sh" 2.

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

|▌冷眼眸甩不掉的悲伤 提交于 2020-08-20 18:08:27
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

情到浓时终转凉″ 提交于 2020-08-20 18:07:34
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

旧时模样 提交于 2020-08-20 18:05:32
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

服务器批量控制 批量管理vps

一世执手 提交于 2020-04-08 11:03:27
远程桌面是微软公司为了便于网络管理员管理维护服务器推出的一项服务。从windows 2000 server版本开始引入,网络管理员时候远程桌面连接器连接到网络任意一台开启了远程桌面控制功能的计算机上,就像是自己操作该计算机一样,运行程序,维护数据库等。远程桌面采用的是一种类似TELNET的技术,它是从TELNET协议发展而来的,通俗的讲远程桌面就是图形化的TELNET。那么如何批量管理我们的多台服务器呢?下面向大家介绍一款远程桌面连接工具——IIS7远程桌面连接工具。 查看地址: iis7远程桌面管理工具下载 首先,下载解压软件: 点击右上角的【添加】添加服务器的相关信息: 下面是你必须要添加的服务器信息: 【注意】 1 、 输入服务器端口后用冒号分隔再填写端口号(一般默认为 3389 ); 2 、 服务器账号一般默认为 administrator ; 3 、 服务器密码就是在购买服务器时所给的密码或者自己设置的密码。 其他信息是为了方便大批量管理服务器信息的时候添加的分组信息,根据个人情况和喜好做分类。 添加完毕核对无误后就可以点击右下角的添加,就可以看到添加的服务器信息,双击就可以打开啦! 添加多台服务器之后打开: 批量打开之后,最厉害的功能就是它可以同时控制全部的电脑: 同时鼠标操作,键盘操作等等: 这就是这个软件如何批量管理服务器,vps,云服务器的方法,以后还会做到更好

买VPS,CPU和内存哪个重要?

百般思念 提交于 2020-04-05 22:04:23
转载请注明出处: 买VPS,CPU和内存哪个重要? 许多新手,包括之前的我,买VPS时总有一个疑问:CPU和内存哪个重要?哪个对系统的性能影响更大? 内存比CPU重要 永远不会错的答案是:分用途和场景。然而根据本人多年的测试和实践,得出的答案是: 绝大部分情况下内存比较重要,尽量购买内存大/内存主频高的VPS 。 得出这样一个结论,有以下依据支持: 本人之前跑科学计算程序,同样的编译参数, 2.2G CPU、1600MHz DDR3内存 的Mac笔记本竟然比 3.5G CPU、1333MHz DDR3内存 的服务器运行更快。该程序不涉及到硬盘读写,只用到CPU和内存,(大概率)说明快的内存可能比高主频的CPU更重要(程序为memory-bounded型); 本人见过很多个人或小企业建网站,上来就买4核8G的服务器。然而大半年过去了,网站的日ip仅有寥寥几十不到百,白白浪费钱;本人也见过1核1G内存搭配swap的VPS, 配置好缓存后 ,稳稳承载日ip上万的网站;查看系统状态,除了内存紧张,cpu大多时间都比较空闲; cpu性能不够,最多只是慢;内存(加swap)不够,那可是会让服务崩盘的。内存不够时,OOM killer大概率就先把数据库、Redis等重要服务杀死,然后服务就GG了。前几天很火的新闻: Redis 官网昨日宕机,错误提示为无法连接 Redis ,就说明内存有多重要;

How to perform a cronjob only when a file is greater than a certain size?

旧城冷巷雨未停 提交于 2020-03-25 12:30:32
问题 The following script (credit to Romeo Ninov) selects the most recent directory and performs a cp operation: dir=$(ls -tr1 /var/lib/test|tail -1) cd /var/lib/test/$dir && cp *.zip /home/bobby/ Please see: How can I use a cronjob when another program makes the commands in the cronjob fail? for the previous question. I would like to modify this so that the cp only happens if the .zip file is larger than a defined byte size e.g. 28,000 bytes. If the .zip file is smaller, nothing is copied. As

vps新手登录教程,如何远程连接到vps

烈酒焚心 提交于 2020-03-17 15:59:59
某厂面试归来,发现自己落伍了!>>> vps新手登录教程 第一次使用vps?没有关系,用这个工具很简单就能登录上vps啦,祝你好运! 1、下载—— IIS7远程桌面 2、把工具解压,找到"IIS7远程桌面管理.exe",双击 打开工具。 3、在工具右上些的位置,找到【添加机器】,单击它。 4、输入电脑/服务器信息 (1)vps服务器IP和端口 (2)vps服务器账号 (3)vps服务器密码 5、信息添加完毕,检查无误后单击【添加】 6、添加服务器成功,我们可以看到显示的vps服务器信息,双击它,就可以打开登录到远程vps服务器上啦! 7、如果是管理多台服务器,找到【全选】,点它,然后找到【打开远程】。单击它就可以批量登录所有的服务器啦! 8、【打开远程】成功,进入vps远程桌面。 来源: oschina 链接: https://my.oschina.net/u/4249885/blog/3196700