English 中文(简体)
Deno as-030 systemd service. 如何?
原标题:Deno as Linux systemd service. How?

出于我不理解的原因,Deno不是systemd的违约服务。 它有一个自动装置,在您的<代码>/home上放下可执行的文件。 页: 1 a 使用这种可起诉的打字文件,它装上你的手稿,而且你可以说,在别处使用ole。

How do I add deno as a systemd service to Ubuntu?

最佳回答

YES! 我把它说出来!

虽然,如果你能够帮助我说明为什么<代码>deno只有在你被贴上<代码>的root用户时才会执行。 我无法与自杀者站在一起。

Steps:

  1. Install deno using the .sh 他们在德诺兰提供的文字

  2. 页: 1

  3. Tell systemd about the application by creating the service file we will be using.

  4. http://www.un.org/Depts/DGACM/index_chinese.htm

  5. 最近利用以下模板建立了空档。

[Unit]
Description=Deno 1.1.1 service
Documentation=http://deno.land
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=user1
WorkingDirectory=/home
ExecStart=/home/user1/.deno/bin/deno run --allow-net --allow-read httpServer.ts
Restart=on-failure

[Install]
WantedBy=multi-user.target
  1. Then enable and start it.

  1. Check status of deno service.

www.un.org/sc/

放映

“entergraph

问题回答

当安装时,如果你使用Dédo装置,就会安装根基(/root/.deno),从而不允许你作为用户操作。

如果你作为用户操作安装,则安装为用户(~.deno),从而不允许你作为根基与 su。

如果你在使用Deno.serve时使用受保护的港口(< 1024),例如,你需要允许Deno使用这些港口,因此,你也需要从根源上安装Deno。





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签