ubuntu-server

Error when building Mongodb on ubuntu server

只谈情不闲聊 提交于 2020-01-15 04:54:27
问题 I am trying to build mongodb (r2.4.8) with the --ssl option on a ubuntu server (13.10) I get these errors: scons --ssl --64 all src/third_party/boost/boost/date_time/posix_time/posix_time_io.hpp: In function 'std::basic_ostream<_CharT, _Traits>& boost::posix_time::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::posix_time::time_duration&)': src/third_party/boost/boost/date_time/posix_time/posix_time_io.hpp:183:51: error: typedef 'std_ptime_facet' locally defined but not used [

Script to start command in byobu tab

痴心易碎 提交于 2020-01-14 03:33:08
问题 I have used screen to start a server process, to witch I can later attach if needed and deatach again to carry on with other things. It worked fine but I have found byobu recently and I really love it. I want to use the same kind of scripts to run the server but instead of a screen sesson I would like to attach it to a byobu tab. I'm using byobu-tmux (because it looks better). How could I do it? My original scripts (they both do more, but these are the relevant parts): # Startup screen -a

How do i make my IP public, Externally can access my localhost

99封情书 提交于 2020-01-13 07:29:26
问题 I just want to make my IP public, so that it can be accessed from any where.I am using ubuntu 18.04 . Already installed apache2 and PHP. The index file located in /var/www/html/example.com/public_html/index.php . In local host it is running and with in the same network i am able to access my website. Also made some changes in firewall. here is my /etc/hosts file configuration 127.0.0.1 localhost 127.0.1.1 amal 127.0.0.1 www.example.com 127.0.0.1 example.com And etc/apache2/sites-avaliable

Accessing Pervasive Database via Node.js on a Linux Server

女生的网名这么多〃 提交于 2020-01-13 07:18:06
问题 Our business system uses a Pervasive 13 database. I want to query this database from node.js on an Ubuntu Linux 18.01 server, but I can't seem to find any tutorials that show how to do this. With other databases, I've been able to find npm packages that simplify database communication, but I've yet to locate one for Pervasive. Linux drivers are offered, but I'm not sure how to ultimately query the database from node.js. Any general advise or resources pointing me in the right direction would

The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed for Selenium

时间秒杀一切 提交于 2020-01-03 05:28:10
问题 I’m running a jupyter notebook on ubuntu server. I’m trying run the selenium code below using chromedriver. I’m getting the error below but if I run the line of code below in Ubuntu terminal it returns the output below. Does anyone know what the issue might be? I’m still pretty new to ubuntu. Ubuntu code: which google-chrome output: /usr/bin/google-chrome jupyter notebook code: driver = webdriver.Chrome(executable_path=os.path.abspath("/home/username/chromedriver"), chrome_options=chrome

Cannot access tomcat instance installed in EC2

放肆的年华 提交于 2020-01-02 04:15:19
问题 I have install tomcat 7 in an Ubuntu EC2 instance. It's up and running but I cannot access it using the public ip (54.213.225.148:8080). I have also setup the security groups as specified in the previous posts. But, still no luck. Any help on this would be really appreciated. 回答1: Make sure your Ubuntu Uncomplicated Firewall is controlling the traffic instead of iptables. sudo ufw enable Then to configure it to allow 8080. sudo ufw allow 8080 回答2: On Ubuntu 14.04 in EC2 #to save the rules you

Trying to connect to mysql database with jdbc

元气小坏坏 提交于 2019-12-24 09:58:59
问题 I have ubuntu server running on virtual machine locally and I need to connect to mysql database there. Database is in place and jdbc driver too. The only problem is that only way at the moment for my connection can be something like http://local/phpmyadmin/index.php?db=sandbox and that can't be used in jdbc connection string. Hope, that somebody can advise a solution. 回答1: String url = "jdbc:mysql://localhost:3306/mysql"; Connection con = DriverManager.getConnection(url,"username", "pwd");

Django Apache wsgi changes python version

末鹿安然 提交于 2019-12-24 08:12:00
问题 I've installed my Django app on an Ubuntu server with Apache2.4.7 and configured it to use py3.5.2 from a virtual environment. However, from what I can see in the errors, it's starting at 3.5 and defaulting to 3.4. Please explain why this is happening: /var/www/venv/lib/python3.5/site-packages /usr/lib/python3.4 See the full error below: SyntaxError at / invalid syntax (forms.py, line 2) Request Method: GET Request URL: http://intranet.example.com/ Django Version: 1.10.1 Exception Type:

PHP modules don't load after installing PHP 7 to my server

最后都变了- 提交于 2019-12-23 09:27:59
问题 I installed PHP 7 to my server (as a result, I have not /etc/php5 and /etc/php/7.0). When I run my web app, I cant see any of my previous CURL (or fork). at first I got this err msg: Message: Call to undefined function curl_init() and after installing php7-curl i get it enabled - approved on info() function and this test code: var_dump(_isCurl()); function _isCurl(){ return function_exists('curl_version'); } returning TRUE. but when having an actual CURL in my code I get this error: PHP

How to upload a WAR file on Tomcat 7 cookbook by Chef?

寵の児 提交于 2019-12-22 23:35:23
问题 I'm trying deploy a War file on my Tomcat 7 installed by a cookbook on CHEF. But, I can't find a single answer for my question at any forums. I don't have any idea how to do this! I'm using a Ubuntu server 12.10. The recipe that I'm using is https://github.com/solarvm/tomcat7-cookbook 回答1: The simple way to do is is to use the service resource to stop Tomcat, use the bash resource or a file resource to copy the WAR file, and then use the service resource to start Tomcat again. That cookbook