ubuntu-server

A virtual display for ubuntu server

社会主义新天地 提交于 2019-12-22 08:02:00
问题 My question is: is there a way to set up a virtual display as default display on a linux server (so that all GUI application launched will be displayed on that display, if no counter indication is made)? I tried using this: xvfb-run java -jar autoclick.jar , which produces the following output : searching graphic devices is Headless:false screen N°1 width:1600 height:900 just 1 robot click: Magic button clicked ! and here's the autoclick code : System.out.println("searching graphic devices");

How to execute a php script every day [duplicate]

微笑、不失礼 提交于 2019-12-22 00:28:46
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Cron job on Ubuntu for php I am running and ubuntu server and wanted to run a php script every day. I have done some research and found that cron is the best way of doing this however, this is where i got stuck, a lot of the information on the internet about cron is very hard to follow and understand. So i wanted to execute a simple php script once a day, the script i made for testing simply just deletes a

Unable to connect to mongo on remote server

*爱你&永不变心* 提交于 2019-12-20 12:06:11
问题 I have installed mongo on machine1( Ubuntu 14.04.3 LTS server ) in my local network. I have also opened the port 27017 as mentioned in this guide using following commands: sudo iptables -A INPUT -p tcp --destination-port 27017 -m state --state NEW,ESTABLISHED -j ACCEPT sudo iptables -A OUTPUT -p tcp --source-port 27017 -m state --state ESTABLISHED -j ACCEPT Current rules are ( iptables -L ): Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt

Poor performance on a PostgreSQL query

谁都会走 提交于 2019-12-20 02:34:40
问题 UPDATE: Just occurred to me: Is it possible that pgAdmin counts not the actual time of the query, but the time required to draw the results in the grid? I just executed the query using the command line (psql) and output the results in a txt file and it was very swift (1-2 seconds tops). In that case, the issue is not a postgresql / ubuntu server configuration; it is rather a display adapter's problem. Am I right or searching in the wrong direction? On my "old" PC (Core 2 Duo, 4GB RAM, 250GB

Error loading oci8.so with Ubuntu server 17.04 php 7 and apache2

陌路散爱 提交于 2019-12-18 07:12:52
问题 I have gone through the whole process of downloading Oracle instant client, SDK, etc. in a Ubuntu Server 17.04. Then converted rpm packages to deb with alien, installed, set the paths, downloaded pecl oci8, compiled and installed (w/o errors), etc. and then added the line: extension=/usr/lib/php/20151012/oci8.so And restarted. When I check the /var/log/apache2/error.log I see: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/oci8.so' - libmql1.so: cannot open

conda fails to create environment from yml

和自甴很熟 提交于 2019-12-12 12:06:35
问题 I’m trying to run the code below to create a virtual Python environment from a YAML file. I’m running the code in the command line on Ubuntu server. The virtual environment is named py36. When I run the code below, I get the message below. The environment also doesn’t get created. Is this problem caused because I have several packages that I had to install using pip instead of Anaconda? Does anyone know how to solve this issue? I created the YAML file following the example from: https:/

How to setup glassfish 4.1.1 behind apache on Ubuntu 16.04 server

倖福魔咒の 提交于 2019-12-12 10:24:12
问题 I want to setup Apache and Glassfish on Ubuntu 16.04 server. I have installed apache2 libapache2-mod-jk glassfish The following are the steps I have followed Configuring the MPM module Set MaxRequestWorkers to 400 in /etc/apache2/mods-available/mpm_event.conf Configuring the JK Module <IfModule mod_jk.c> JkWorkersFile /usr/share/glassfish4/glassfish/domains/<domain-doamin1>/config/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel error JkLogStampFormat "[%a %b %d %H:%M:%S %Y

Nginx unable to serve the node.js POST requests

放肆的年华 提交于 2019-12-12 05:24:32
问题 I've a VM Ubuntu15.04 server and I've configured nginx to listen requests on port 80 and forward them to respective applications on different ports. I have a simple node.js service running over port 3000 which has one GET and POST service. I have started it by using PM2 and added a proxy_pass to localhost:3000/ in my nginx default conf. The problem is when i try to use a GET request it is working fine but in case of POST it is showing 404 error. I've tried to use the POST service through

LXC running php application

会有一股神秘感。 提交于 2019-12-12 04:46:12
问题 I have this code in file called index.html in directory /var/www/html/index.html . <html> <body> <?php echo phpinfo(); ?> </html> </body> But when I try to see what it prints on the browser it doesn't show anything at all, or sometimes it downloads a file. This is what browser prints (Nothing). If I try to look the source code and it seems like this. I'm not sure what I'm doing wrong. I searched a lot and tried a few things, but nothing really seemed to work. I'd really appreciate if someone

crontab not running java

折月煮酒 提交于 2019-12-12 03:37:54
问题 I have a .jar which I can run perfectly via the command line. I need this to be running continuosly every 5 mins, so i did crontab -e where I added this line */5 * * * * java -jar /var/www/java/executable.jar if I go grep CRON /var/log/syslog I do see where the job was executed, but it never was since I have a logger inside the java file and the first thing it does is append to the logger the time, which is not doing so. What can be the possible error? 回答1: The most common error is that the