ubuntu-server

Default password of mysql in ubuntu server 16.04

我的未来我决定 提交于 2019-12-02 17:04:10
I have installed ubuntu 16.04 server. Mysql server was installed by default in it. When I am trying to access the mysql with mysql -u root -p , I am unable to log in to mysql because I dont have the password. Is there any default password? I have also tried with --skip-grant-tables , even this does not work. Even trying to log in with just mysql -u root is a failure. This is what you are looking for: sudo mysql --defaults-file=/etc/mysql/debian.cnf MySql on Debian-base Linux usually use a configuration file with the credentials. Harper Mysql by default has root user's authentication plugin as

Deploying Django project with Gunicorn and nginx

余生长醉 提交于 2019-12-02 16:32:06
I am new to django, i would like to know how to set up my django project with nginx and gunicorn. I read this guide: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ but it doesn't work for my project. I think that it is due to the particular structure of my project, that is: ├──icecream │ ├── settings │ | ├── __init.py │ | ├── base.py │ | ├── local.py │ | ├── production.py │ ├── __init__.py │ ├── urls.py │ ├── wsgi.py ├── manage.py I got this layout from: https://github.com/twoscoops/django-twoscoops-project . Can anyone help me, please? thank you I'll

How do I add a remote Git repository to an Ubuntu Server?

自古美人都是妖i 提交于 2019-12-02 14:22:49
I have created a Git repository on my Desktop machine (Windows 7) with: git init git add <all my files> git commit -m "added my files" Now I have installed a new Ubuntu Server 10.10 on a machine on my LAN and installed OpenSSH. My home directory is /home/jonas and I created a directory ~/code/ to contain my projects. I can log in to the Ubuntu Server from Windows 7 with Putty. I installed Git on the server with sudo apt-get install git Adding a remote repository Now I want to add my Git repository on my Desktop to the Server. I tried to follow the instructions from Pragmatic Version Control

Poor performance on a PostgreSQL query

半腔热情 提交于 2019-12-01 21:44:05
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 SATA HD) running on Arch Linux 64bit I can run a simple "SELECT * FROM sometable" query in 0.4ms (I am

How to install bcmath in Ubuntu for PHP 7.1

◇◆丶佛笑我妖孽 提交于 2019-11-30 14:56:49
问题 I'm using an Ubuntu 16 server for testing with php7.1 . One of my app uses bcadd function. I know that I need to install bcmath module for that but I'm unable to find php7.1-bcmath . When I tried to install apt install php-bcmath , it simply installed php7.0-bcmath module. I was unable to find php7.1-bcmath module anywhere to install on my server. Does anybody has an idea? apt install php7.1-bcmath returned following, E: Unable to locate package php7.1-bcmath E: Couldn't find any package by

MariaDB cannot start after update: [Warning] Can't create test file /home/mysql/beta.lower-test

孤人 提交于 2019-11-30 13:01:32
问题 I've just updated MariaDB using apt-get dist-upgrade. Now it won't start using service mysql start anymore. I can however, run it as root or do: sudo -u mysql mysqld_safe then MariaDB starts up fine. The folder /home/mysql is owned by the mysql user and group. I've found the error to be thrown in this function: https://github.com/MariaDB/server/blob/7ff44b1a832b005264994cbdfc52f93f69b92cdc/sql/mysqld.cc#L9865 I can't figure out what to do next. Any pointers? 回答1: To run MariaDB SQL from /home

Can't find Python executable “python”

≯℡__Kan透↙ 提交于 2019-11-30 12:58:05
问题 When i install iconv with npm got the following error: iconv@2.1.0 install /root/Dropbox/nodeApps/nodeApp/node_modules/iconv node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:103:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:11 gyp ERR! stack at F (/usr

What Folder(s) Can My Tomcat Application Write To on Ubuntu Server

Deadly 提交于 2019-11-30 04:45:21
问题 I'm not sure if the fact that i'm using Ubuntu Server matters in this case. When I am trying to create folder using the File.mkdirs() method, it doesn't throw an exception, just never works. A larger explanation of my problem with specific code references can be found here: Cannot Create Directory On Server. Permission Issue? The reason i'm writing a new question is because i'm wondering if i'm having issues creating directories on the server because of permissions. String path = /home

Remote access to webserver in docker container

自作多情 提交于 2019-11-30 04:02:06
I've started using docker for dev, with the following setup: Host machine - ubuntu server. Docker container - webapp w/ tomcat server (using https). As far as host-container access goes - everything works fine. However , I can't manage to access the container's webapp from a remote machine (though still within the same network). When running docker port <container-id> 443 output is as expected, so docker's port binding seems fine. 172.16.*.*:<random-port> Any ideas? Thanks! I figured out what I missed, so here's a simple flow for accessing docker containers webapps from remote machines: Step

Remote access to webserver in docker container

柔情痞子 提交于 2019-11-29 01:38:47
问题 I've started using docker for dev, with the following setup: Host machine - ubuntu server. Docker container - webapp w/ tomcat server (using https). As far as host-container access goes - everything works fine. However , I can't manage to access the container's webapp from a remote machine (though still within the same network). When running docker port <container-id> 443 output is as expected, so docker's port binding seems fine. 172.16.*.*:<random-port> Any ideas? Thanks! 回答1: I figured out