debian

Node.js script failed to start with systemctl

流过昼夜 提交于 2019-12-10 03:11:25
问题 I need to run my node.js script automatically from my remote machine with systemctl. I already made a .service file and put that into /etc/systemd/system/ . Here's the .service file: [Unit] Description=laporan [Service] ExecStart=/var/www/laporan/nodeserver/server.js Restart=always User=nobody Group=root Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production WorkingDirectory=/var/www/laporan/nodeserver [Install] WantedBy=multi-user.target But every time I try to start the

Debian 5.0.6升级FlashPlayer方法

人走茶凉 提交于 2019-12-10 01:18:42
在Ubuntu 9.04中,直接使用下面的命令 sudo apt-get install flashplugin-nonfree 按说在Debian中应该也可以,但却提示已经安装了9.0版本的Flash Player,无法安装且土豆等视频无法播放,升级方法: 点击链接 http://get.adobe.com/cn/flashplayer/到Adobe官方下载10.1版本的插件,下载时选择“ubuntu 8.04+ 版本的.deb文件”这种类型,下载后直接在终端中执行以下命令: sudo dpkg -i install_flash_player_10_linux.deb 来源: oschina 链接: https://my.oschina.net/u/1420/blog/8913

在Debian 7上配置Nginx + php-FPM + apc + MariaDB(翻译)

旧城冷巷雨未停 提交于 2019-12-09 22:50:01
配置 Debian 是作为Linux Web服务器,是一个非常不错的选择,她是当前仅次于Centos的最受欢迎的服务器操作系统。我非常喜爱在系统上使用apt/dpkg/gedbi命令去安装和更新软件包,这非常方便。 安装一个功能完善的php 服务器环境,你需要安装一整套的配套软件,包括一个网页服务器,一个数据库。在本篇文章中,我们将安装配置nginx, php, php-fpm, apc 和 MariaDB。 Nginx是一个新潮的网页服务器,它被设计成为能承受巨大网络流量而且使用最少的内存和CPU占用量。在Nginx出现之前,独步武林的网页服务器是Apache。然而,随着互联网的越来越流行,就需要一个更快速,效率更高的网页服务器。 Nginx vs Apache Apache 的设计是模块化的,具拥有很多的功能,但是大部的功能在常规的网站中都是用不上的,它的设计可能是为了迎合所有人的需求,但是最后的结果是制造了一个重量级的且包含大部分不常用功能的网页服务器。 Nginx 在另一方面是非常时髦和极速的网页服务器,主要集中在速度、扩展性及性能上。关于它的强大的技术已经超出了本文的范围。我们可能在后面作一些介绍。能告诉你的信息是,这个网站就是运行在Nginx上。 现在,抛开那些更深的讨论,让我们开始吧! 在Debian下安装Nginx Debian的官方包中已经有了Nginx包

debian下安装linux内核

谁说胖子不能爱 提交于 2019-12-09 20:38:26
apt serch linux-source 查看适合自己当前debian linux内核的linux源码 apt source linux-source-4.19 我这里下载的是4.19版本 sudo apt-get install dpkg-dev 别忘记安装debian开发环境 来源: CSDN 作者: 17岁boy想当攻城狮 链接: https://blog.csdn.net/bjbz_cxy/article/details/103463877

centos debian linux rsync数据同步

99封情书 提交于 2019-12-09 18:12:23
一、系统环境 本文服务器系统环境是:CentOS5.5,备份机系统环境是:Debian 2.6.32-5-amd64。 二、rsync的下载与安装 目前大部分Unix/Linux默认即安装了rsync。 三、服务端rsync的配置 rsync服务器的配置文件,默认是没有的,需要手工创建。 创建三个文件,具体如下。 /etc/rsyncd.conf #rsync服务器的主配置文件 /etc/rsyncd.secrets #rysnc用户密码文件 /etc/rsyncd.motd #定义rysnc服务器信息,此步骤对备份无任何影响,可以忽略。 1、主配置文件rsyncd.conf rsyncd.conf是rsync服务器主配置文件,比如我们要备份服务器上的/home/share。 vi /etc/rsyncd.conf #全局配置 strictmodes=yes #是否检查口令文件的权限 port=873 # TCP 873 uid=nobody #允许组 gid=nobody #允许用户 max connections=5 #最大连接数,0是无限制 motd file = /etc/rsyncd.motd log file = /var/log/rsync.log transfer logging = yes log format = %t %a %m %f %b timeout

choose python kernel in jupyter

本秂侑毒 提交于 2019-12-09 17:34:56
问题 I have installed on Debian Jessie: Python2.7 Python3.5 I have also installed Jupyter via pip2 and pip3 However when I launch jupyter-notebook I can only use python3 as kernel! How can I switch to pyhton2.7 when using Jupyter? 回答1: I tried this with a fresh Debian 8.5 machine on Digital Ocean. As root, install pip and jupyter from apt, and the development packages, too. apt-get install python-pip python-dev python3-pip python3-dev libzmq3 pip3 install jupyter Add the kernel for Python2 using

How do I package Mono applications for Debian/Ubuntu

纵饮孤独 提交于 2019-12-09 17:19:34
问题 Are there any guidelines or tools for packaging Mono applications for Debian/Ubuntu? Like where to put Assemblies that ship with the application etc. 回答1: Mono has some general guidelines about packaging, but these are not specific to Debian/Ubuntu who may do things differently: http://www.mono-project.com/Guidelines:Application_Deployment 回答2: There's, of course, the Debian CLI Policy. It's a dry read, but will probably clarify some details as to where are some files expected to be deployed.

What's the deal with rubygems on Debian? It's different and strange

橙三吉。 提交于 2019-12-09 16:14:02
问题 I've noticed at least the following oddities around rubygems on Debian (5.0 lenny in my case): Packages go into a different installation location: /var/lib/gems vs /usr/lib/ruby/gems The debian package is rubygems 1.3.6, and updating rubygems to the latest version (1.3.7) doesn't work: $ sudo gem update --system ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. Not all

Mono + apache2 = Service Temporarily Unavailable (503)

萝らか妹 提交于 2019-12-09 16:12:13
问题 For a week now I've been trying to get my mono configuration running with apache. I must have tried virtually anything, shamefully I notice no changes, the problem remains the same. When I try to connect to the server I get a 503 error: Service Temporarily Unavailable When I take a look at the errror log it appears empty and I'm quite sure it's not an permission problem. About apache: Package: apache2 Priority: optional Section: httpd Installed-Size: 36 Maintainer: Debian Apache Maintainers

Checking if a file is readable and exists in one if condition: if [[ -r -f “/file.png” ]]

廉价感情. 提交于 2019-12-09 15:55:27
问题 I was writing an if statement which checked if a file is readable and exists by doing the following: if [[ -r "$upFN" && -f "$upFN" ]]; then .... fi Then I thought, surly you can make this smaller, something maybe like this: if [[ -r -f "$upFN" ]]; then .... fi But this doesn't work, it returns errors: ./ftp.sh: line 72: syntax error in conditional expression ./ftp.sh: line 72: syntax error near `"$upFN"' ./ftp.sh: line 72: `if [[ -r -f "$upFN" ]]; then' 回答1: AFAICT, there is no way to