vps

NodeJS is already installed but won't run

半世苍凉 提交于 2019-12-11 16:37:20
问题 I'm running Ubuntu 18 on my VPS server, and I'm trying to run NodeJS, however, this happens: seth@vps186104:~$ nodejs -v Command 'nodejs' not found, but can be installed with: sudo apt install nodejs seth@vps186104:~$ sudo apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest version (8.10.0~dfsg-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. seth@vps186104:~$ It says to install the package

Javamail: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException when sending mail from VPS

有些话、适合烂在心里 提交于 2019-12-11 15:25:54
问题 I have the following problem. I have a Seam web application which features e-mail composition and sending using Javamail. The application sends mail just fine in my local JBoss application server, but it doesn't work on the JBoss server installed in my myhosting.com VPS. I read that the issue may be because the web server or the URL to which I'm trying to connect does not have a valid certificate from an authorized CA, but I run an utility (http://cold-caffein.blogspot.com/2011/07/looks-like

Run NodeJs and Apache together with two separated domain

我的梦境 提交于 2019-12-11 14:39:45
问题 I have a Linux server (VPS) with two domains and two web applications, one programmed with NodeJS (chat app) whereas the another is PHP . So, what I want to do is running the two applications in separated domains on the same server. I've tried many methods to do this but all these methods working on single domain and multi URL path like : https://example.com & https://example.com/node . But what I want is like this: https://nodeappexample.com & https://apacheappexample.com . Greetings 回答1: If

Running Node from hostgator's vps

≡放荡痞女 提交于 2019-12-11 13:58:24
问题 Hi I'm new on setting up a VPS and I was wondering how to run nodejs on the server because I used ssh and run the node and it runs without a problem but as soon as I close the terminal and refreshed the page it was disconnected.. so I was wondering if there is a way on how to run node automatically let say similar to cronjob or something? I found this Stackoverflow article but I'm not sure if this is what I'm looking for. Can someone enlighten me on this issue or give me some tips on how to

Installing MySQL on a VPS server and connecting from other servers

喜夏-厌秋 提交于 2019-12-11 10:27:45
问题 I have few VPS servers and few Cloud servers across the globe (West US, South Us, Europe, China) and users are redirected to the nearest server with DNS IP Geolocation. My servers currently serve static content but I am changing my app so I am in need of a database, particularly MySQL. At first I was going to use Amazon RDS but I found out that installing my own MySQL on a VPS it will end up cheaper ($72 dollars for a small instance VS $40 dollars of a Linode 1024) So I bought a linode VPS in

小内存VPS建站方法116.211.145.8

心已入冬 提交于 2019-12-11 07:00:15
128MB小内存的VPS也可以用来建站,包括wordpress等内存大户也可以完全支持,方法如下: 1.降低php-cgi进程数 默认为5,一般的博客,动态访问量不大的话,开5个进程比较浪费,推荐减少为3或4,我开2个进程,因为我博客访问量很小。修改方法:编辑/usr/local/php/etc/php-fpm.conf,修改max_children数值,重启PHP-FPM(/etc/init.d/php-fpm restart)即可生效。 2.使用WP Super Cache缓存插件,并启用预缓存模式将全站静态化,网上教程很多,这里不详细阐述。 3.使用debian等内存消耗较少的Linux系统。 武汉网盾科技无视CC;扣97780861 116.211.145.1 116.211.145.2 116.211.145.3 116.211.145.4 116.211.145.5 116.211.145.6 116.211.145.7 116.211.145.8 116.211.145.9 116.211.145.10 116.211.145.11 116.211.145.12 116.211.145.13 116.211.145.14 116.211.145.15 116.211.145.16 116.211.145.17 116.211.145.18 116.211.145.19

mod_mono: Random CompilationException errors

冷暖自知 提交于 2019-12-11 03:12:51
问题 After a server restart I sometimes get random CompilationException errors like this: CompilationException: CS0006: Metadata file `/tmp/apache-temp-aspnet-0/ca373c84/assembly/shadow/10cad1cb/02cb7ade_1201ab15_00000001/ZedGraph.dll' could not be found -> HttpException: Single file build failed and you can't access the application. If I restart the server again then the problem disappears. The file that triggers the error can be one of my own dll's or a dependency, like mysql.dll for instance. I

Apache error: AH00526 Invalid Mutex directory in argument file:${APACHE_LOCK_DIR} (Apache2 Ubuntu VPS Server))

喜夏-厌秋 提交于 2019-12-11 00:10:58
问题 Whenever I run sudo apache2 -S on my server it throws the following error: [Sun Mar 04 16:17:22.303217 2018] [core:warn] [pid 31405] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Sun Mar 04 16:17:22.303414 2018] [core:warn] [pid 31405] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Sun Mar 04 16:17:22.303503 2018] [core:warn] [pid 31405] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Sun Mar 04 16:17:22.303577 2018] [core:warn] [pid 31405] AH00111:

which privileges should be set for website database user / client in mysql

谁都会走 提交于 2019-12-10 21:49:09
问题 So what privileges should be set for the mysql user that is to be used as 'main' user for the website? I'm thinking data and structure ( see below ) for the database that is used should be set. But do i need to add administration rights also? And would this be any different if you own a web server and grant privileges to a client that for example want you to host an website for them giving them rights to use phpmyadmin on there own databases. Data SELECT INSERT UPDATE DELETE FILE Structure

How do I allow users to map their domains to a url on my site?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:45:57
问题 How do I allow users to map their domains to a url on my site? (like how tumblr or blogger does) The app is being developed in Django. I want the users to be able to map their domains to mydomain.com/username (is this possible or do I need to have a format like username.mydomain.com?) Also my app runs on a VPS so I have my nameservers as ns1.mydomain.com and ns2.mydomain.com. 回答1: easiest way is through domain cloaking. most domain name providers will allow users this option. another easy