server

How to keep elastic search running on linux server

假装没事ソ 提交于 2019-12-03 04:51:18
I am accessing my server using ssh via Putty client but when my putty goes inactive or I close it elastic search stops. I want to keep it running all the time. How can I achieve this? The issue you have is that elasticsearch is not being started as a daemon (server). Instead you starting it as you would a normal program. Therefore when you stop your SSH session, the program stops running. In order to get elasticsearch to start when the server itself is rebooted, you need to add elasticsearch to the server startup. You didn't say which operating system you are running on the server. Let's

how to disable direct access to a web site by ip address

时光总嘲笑我的痴心妄想 提交于 2019-12-03 04:14:11
问题 I have a website on a VPS. The issue I am having is that when I enter the IP of the server, it links to the website. Even when entering mail.domain.com, it does the same thing. How do I disable that, so a visitor would get a message or be directed to the domain? I tried disabling the IP and mail a record on cloud flare but it didn't work. My setup is: VPS on Linux Debian Nginx no control panel just command line Cloudflare DNS setup with BIND 回答1: You can use redirect, nginx config: server {

How to add a new node.js version for the Node.js Manager on Plesk?

扶醉桌前 提交于 2019-12-03 03:56:12
Plesk Onyx supports Node.js. My Node.js Manager (from the Plesk extensions) currently supports two nodejs Versions. Installing a new version with the centos package manager yum did not change anything. Copying one of the versions, that are installed and putting them to a new folder e.g. 4/ in the directory structure used by the Node.js Manager also did not lead to results. I need the version Node 4.6.2 for Meteor 1.4.x applications. Thank you. Enable Node support in Plesk Onyx: Install the "Node support" simply from your "update and updates" Plesk interface. Go to your "Node extension" page

Retrofit2 Authorisation with Bearer Token

孤街浪徒 提交于 2019-12-03 02:57:34
问题 I'm trying to use Retrofit2 , I want to add Token to my Header Like this: Authorization: Bearer Token but the code below doesn't work: public interface APIService { @Headers({"Authorization", "Bearer "+ token}) @GET("api/Profiles/GetProfile?id={id}") Call<UserProfile> getUser(@Path("id") String id); } My server is asp.net webApi . Please help what should I do? 回答1: You have two choices -- you can add it as a parameter to your call -- @GET("api/Profiles/GetProfile?id={id}") Call<UserProfile>

push notifications with django and GCM

断了今生、忘了曾经 提交于 2019-12-03 02:43:57
I have a android client app, and my server is in django. I want to implement push-notifications in the server, to notify the specific users when changes in data related to them are happening, for example. I have found those links: https://django-gcm.readthedocs.org/en/latest/quickstart.html https://github.com/bogdal/django-gcm https://github.com/jleclanche/django-push-notifications Not really sure what which link I need and for what. An example for what I want is: A user makes a request to server and changes data, and the server sends a push notification to another user. So what package should

How do I solve the “server DNS address could not be found” error on Windows 10? [closed]

亡梦爱人 提交于 2019-12-03 00:35:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . After installing Windows 10, I am continuously getting the " server DNS address could not be found " error. I will be able to use the Internet for 4-5 minutes, and after that for 20-25 min I will get the above error. How do I resolve this issue? 回答1: There might be a problem with your DNS servers of the ISP. A

[转载]:Java连接SQL Server:jTDS驱动兼容性问题

烂漫一生 提交于 2019-12-03 00:34:13
Java连接SQL Server 2000数据库时,有两种方法: (1)通过Microsoft的JDBC驱动连接。此JDBC驱动共有三个文件,分别是mssqlserver.jar、msutil.jar和msbase.jar。但是Microsoft官网上已经找不到这些驱动,其提供的sqljdbc.jar和sqljdbc4.jar并不支持SQL Server 2000。 驱动程序名称: com.microsoft.jdbc.sqlserver.SQLServerDriver (即下面的 classforname ) 数据库连接URL: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname (即下面的 url ) (2)通过jTDS驱动连接。下载地址: http://sourceforge.net/projects/jtds/files/jtds/ 驱动程序名称: net.sourceforge.jtds.jdbc.Driver (即下面的 classforname ) 数据库连接URL: jdbc:jtds:sqlserver://localhost:1433/dbname (即下面的 url ) 采用第二种方法连接时,可能报错: java.lang.UnsupportedClassVersionError: net

Standalone WebSocket server without JEE/application server

别来无恙 提交于 2019-12-03 00:04:19
I need to implement a fairly simple WebSocket server in Java SE. All it needs to do is accept connections and store the respective sessions, then send a message to all connected client whenever a certain event is fired. I cannot find a single tutorial for how to do this in regular Java SE. All of them require running with Maven, or deploying it as a WAR - which are all out of the question for this project. I need to run this as a Java SE desktop app. The tutorials I have found show how to implement an endpoint using annotations like @OnOpen , @OnMessage , and @OnClose . However, none of them

php server ERR_CONNECTION_REFUSED

倾然丶 夕夏残阳落幕 提交于 2019-12-02 23:15:04
问题 I can't make a php server run on my local computer. I tryed with wampserver and Easy PHP. I checked the usage of my port:80 , I changed the port from :80 to :8080 , I gave Apache and mysql the permissions required on the firewall settings... I did everything, but when a type http://localhost with or without the port number browser answer is always the same: ERR_CONNECTION_REFUSED Can you help me, please? 回答1: While I think this questions is off-topic, I will try to answer it. I have had

How to add JBoss Server in Eclipse?

别说谁变了你拦得住时间么 提交于 2019-12-02 22:41:56
I am new to JBoss and have just installed Eclipse. I have added a project to the workspace and now I want to deploy it to a Jboss server. However, in the New Server Runtime Environment list, JBoss is not available: I am using the below Eclipse version: Java EE IDE for Web Developers. Version: Mars Release (4.5.0) Why is JBoss not listed as a runtime environment? What do I have to do to add JBoss to the list of available runtime environments? Since Eclipse Mars 2 (JEE edition), JBoss Tools can be directly dowloaded from the New Server interface: Selecting JBoss AS, WildFly, & EAP Server Tools