debian

How can I get PHP mail() to work? Need help configuring a MTA

∥☆過路亽.° 提交于 2020-01-03 08:13:29
问题 Update: I solved it. Documented everything below. I tried so many things, but it just would not work. I wouldn't mind using, postfix, exim4, or sendmail. I just need a step by step guide and explanation of what am I doing. I am also using Google Apps for e-mail. Edit: mail.log Nov 3 01:14:02 mugbear postfix[16615]: error: to submit mail, use the Postfix sendmail command Nov 3 01:14:02 mugbear postfix[16615]: fatal: the postfix command is reserved for the superuser What does this mean? Update

Problem with Gearman: GEARMAN_COULD_NOT_CONNECT

拜拜、爱过 提交于 2020-01-03 05:00:25
问题 I've installed gearman using "apt-get install gearman-server" and than build the PHP PECL. If i try the worker: $ gearman -w -f wc -- wc -l It starts waiting. right. But if i try to start a job (as descriped in the tutorial) $ gearman -f wc < /etc/passwd it says: gearman: gearman_client_run_tasks : flush(GEARMAN_COULD_NOT_CONNECT) 127.0.0.1:4730 -> libgearman/connection.cc:480 And if i try the PHP str_rev demo descriped in the tutorial it gives me the very same error. PHP Warning:

Unable to install Pip for Pypy on Debian

这一生的挚爱 提交于 2020-01-02 20:10:24
问题 I'm currently trying to use pypy but unfortunately unable to use pip the python package manager. I added the following mirror to my source.list: deb http://ftp.de.debian.org/debian jessie main I installed then the pypy package using apt-get: apt-get install pypy Then I followed the steps given by the pypy documentation to install pip : curl -O http://python-distribute.org/distribute_setup.py curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py pypy distribute_setup.py pypy get

Ruby 2.1 fails to install due to OpenSSL error

牧云@^-^@ 提交于 2020-01-02 11:02:44
问题 I can not seem to install Ruby 2.1 on Debian Wheezy. Every time, it throws an OpenSSL error. Here are my installation steps: apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties openssl cd /root wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz tar -xvzf ruby-2.1.0.tar.gz cd /root/ruby-2.1.0 ./configure prefix=/opt/rubies/ruby-2.1.0 make && make install & the resulting error: ossl_ssl.c

Ruby 2.1 fails to install due to OpenSSL error

删除回忆录丶 提交于 2020-01-02 11:01:32
问题 I can not seem to install Ruby 2.1 on Debian Wheezy. Every time, it throws an OpenSSL error. Here are my installation steps: apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties openssl cd /root wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz tar -xvzf ruby-2.1.0.tar.gz cd /root/ruby-2.1.0 ./configure prefix=/opt/rubies/ruby-2.1.0 make && make install & the resulting error: ossl_ssl.c

Tomcat server's JVM free memory not returned to OS

半腔热情 提交于 2020-01-01 19:53:20
问题 My tomcat server is behaving strange, it has allocated 6GB of memory from system, but more than 4GB is marked as "free". This is a screen from tomcat server status: I understand what "Free memory" in JVM means, but I do not understand why it is not returning lets say in this situation at least 3GB back to system. Env: Java 8 Tomcat 8 Debian 8.3 Total memory on machine: 64 GB 回答1: Since you haven't overridden any JVM options, Tomcat uses the default garbage collector which is ParallelGC in JDK

Enabling UART on Beaglebone Black

大憨熊 提交于 2020-01-01 18:53:49
问题 I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure? I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following: import Adafruit_BBIO.UART as UART UART.setup("UART1") I get the

Enabling UART on Beaglebone Black

我们两清 提交于 2020-01-01 18:53:08
问题 I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure? I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following: import Adafruit_BBIO.UART as UART UART.setup("UART1") I get the

[745]Debian打开关闭防火墙

不羁的心 提交于 2020-01-01 12:36:32
Debian原来用的是UFW防火墙,之前没接触过这种类型防火墙,这里记录一下简单的使用规则,后期在使用过程中慢慢完善UFW防火墙的使用操作方法; 安装ufw apt-get install ufw 查看防火墙现有规则: ufw status 开启/关闭防火墙: ufw enable //开启 ufw disable //关闭 开启指定tcp或者udp端口: ufw allow 22/tcp 同时开启tcp与udp端口: ufw allow 445 删除53端口: ufw delete allow 53 拒绝指定tcp或者udp端口: allow/deny 20/tcp allow/deny 20/udp 突出显示的输出表示网络接口名称。 它们通常被命名为eth0或enp3s2 。 因此,如果您的服务器具有名为eth0的公共网络接口,则可以使用以下命令允许HTTP流量(端口80 ): sudo ufw allow in on eth0 to any port 80 这样做将允许您的服务器从公共互联网接收HTTP请求。 或者,如果您希望MySQL数据库服务器(端口3306 )监听专用网络接口eth1上的连接,例如,您可以使用此命令: sudo ufw allow in on eth1 to any port 3306 这将允许专用网络上的其他服务器连接到MySQL数据库。 来源

Vim startup errors (invalid expression) Debian

我只是一个虾纸丫 提交于 2020-01-01 07:57:10
问题 I'm having issues setting up Vim. Firstly I'm having a bunch of errors when start up Vim, I get these errors: Error detected while processing /home/lee/.vimrc: line 5: E492: Not an editor command: generate helptags for everything in 'runtimepath' Error detected while processing /home/lee/.vim/plugin/fuf.vim: line 13: ***** L9 library must be installed! ***** Error detected while processing /home/lee/.vim/plugin/refactor.vim: line 45: E492: Not an editor command: ^M line 53: E492: Not an