debian

nginx on Ubuntu: Permission denied

冷暖自知 提交于 2019-12-20 08:34:34
问题 I am new to system administration. After installing nginx via puppet on Ubuntu I get the following output: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) [warn] 1898#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 [emerg] 1898#0: open() "/var/log/nginx/access.log" failed (13: Permission denied) How do I get rid of all of these messages? I don't want to

Installing node.js on Debian 6.0

回眸只為那壹抹淺笑 提交于 2019-12-20 08:01:06
问题 So well, I have a vserver with Debian 6.0. Now I would like to install Node.js, but none of the tutorials on the web seem to work. I have tried all of the results google gives me when I enter "install node.js on linux" I mostly failed because I had no idea how to install the dependencies (I'm new to linux btw) How to install node.js on a Debian system that was just setup (so no programs already installed on it and such)? 回答1: Although, as ArjunShankar says, you should normally use a pre-built

How do I download a package from apt-get without installing it? [closed]

ε祈祈猫儿з 提交于 2019-12-20 07:59:47
问题 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 8 years ago . I have a computer without a NIC, and I want to install some programs in it via USB memory, but how can I download a program from apt-get without installing it? 回答1: There are a least these apt-get extension packages that can help: apt-offline - offline apt package manager apt-zip - Update a non-networked

Hibernate fails with NullPointerException in EntityTuplizerFactory.constructTuplizer? Why?

点点圈 提交于 2019-12-20 07:36:09
问题 I have a problem when I try to instantiate Hibernate and connect with a MySQL database (see error message below). Curiously enough the connection works fine using the exact same hibernate.cfg.xml file when running Junit tests but it refuses to work when run from Tomcat... I am starting to run out of ideas. Any clues or tip where to look? Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.DynamicMapEntityTuplizer] at org.hibernate

How can I install a R package on a offline Debian machine?

狂风中的少年 提交于 2019-12-20 06:05:02
问题 I have an Debian VM which is not connected to internet. Yet, I can still scp any file from my local machine which does have internet connection. To provide a little bit context, I am trying to host an shiny app on the VM. I can still install an old version of R 3.1.1 with the "apt-get" command: sudo apt-get update sudo apt-get install r-base sudo apt-get install r-base-dev Yet, still can't find the "shiny" package when check the list: sudo apt-cache search "^r-.*" | sort So, I am thinking

Expect: No such variable [closed]

我是研究僧i 提交于 2019-12-20 05:54:52
问题 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 4 years ago . I started using expect. I have a simple script. But I have a problem. I want to init a variable which has a $ an first character: set mystring "$THIS_IS_MY_STRING%" So I get an error, because expect expects a variable. How can I fix this? 回答1: Escape any special characters such as the dollar sign by proceeding

How to install the latest version of Mono and MonoDevelop on Ubuntu?

故事扮演 提交于 2019-12-20 04:15:29
问题 I'm trying to install the latest version of the Mono framework and MonoDevelop on my system. Yesterday I tried the installation on Ubuntu (14.04 LTS) and on Debian (V8.2) today. Both installations failed. I used this official installation guide. http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives I executed this commands. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http:/

debian下搭建邮件服务器

一个人想着一个人 提交于 2019-12-20 03:16:27
第一步 #apt-get update #apt-get upgrade #apt-get install postfix libsasl2-2 sasl2-bin libsasl2-modules dovecot-imapd dovecot-pop3d dovecot-common 第二步 配置邮件服务器 首先,停掉这三项服务:   #postfix stop   #service dovecot stop      接下来,修改postfix的配置文件/etc/postfix/main.cf   由于采用了sasl做认证,同时用dovecot作为pop3、imap和smtp的服务,所以需要修改postfix的配置文件以适应需求。   在/etc/postfix/main.cf文件中增加以下信息以支持sasl认证和dovecot服务。   smtpd_sasl_type = dovecot   smtpd_sasl_path = private/auth   smtpd_sasl_auth_enable = yes   smtpd_sasl_local_domain = yourdomain.com smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth

Basic Docker container reports runlevel unknown

荒凉一梦 提交于 2019-12-20 01:04:02
问题 When I run a basic Docker container (from within Google Cloud Shell) like so docker pull debian docker run -i -t debian:wheezy /bin/bash and then type runlevel at the running container's shell prompt, the run level is unknown . Am I supposed to install ( apt-get ) particular packages in order to add support for run levels. If so, which ones, or what else could be wrong? 回答1: Docker is an application isolation tool, not an OS virtualization tool. Runlevels are at the OS level, the OS comes up,

Phusion Passenger Nginx module installer v3.0.17 issue on Debian 6.0.5 amd64 due to broken package

可紊 提交于 2019-12-19 11:44:14
问题 I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie to linux and ruby on rails , so guys please help me if i am doing wrong or something is wrong, upto my knowledge some package is broken in debian 6.0.5 or passenger nginx module. I am using REE ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 from http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2012.02_amd64