版本:CentOS 7 首先: [root@localhost test]# cat /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFF ...
分类:
其他好文 时间:
2020-07-02 16:08:49
阅读次数:
72
frp 开机自启动 进入 frp 根目录的 systemd 文件夹 vim frps.service [Unit] Description=Frp Server Service After=network.target syslog.target [Service] Type=simple User ...
分类:
其他好文 时间:
2020-07-02 13:10:49
阅读次数:
53
1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:
其他好文 时间:
2020-06-30 22:12:40
阅读次数:
56
sudo pm2 start xxxx // 启动服务 sudo pm2 save // 保存服务 sudo pm2 startup // 把已启动服务加到systemd中 sudo systemctl reboot // 重启,发现之前的服务都已经启动 sudo pm2 unstartup sys ...
分类:
其他好文 时间:
2020-06-29 18:37:12
阅读次数:
263
环境 系统:CentOS 7.5软件:prometheus-2.18.1.linux-amd64.tar.gz 安装 下载二进制包地址:https://prometheus.io/download/ 安装 # tar -xzvf prometheus-2.18.1.linux-amd64.tar.g ...
分类:
其他好文 时间:
2020-06-29 17:09:15
阅读次数:
88
centos7中设置nginx的systemctl启动方式 1.建立服务文件 (1)文件路径 vim /usr/lib/systemd/system/nginx.service (2)服务文件内容 [Unit] Description=nginx - high performance web ser ...
分类:
其他好文 时间:
2020-06-27 00:19:54
阅读次数:
192
Linux安装Redis 6.0.5 ./install_server.sh报错 linux 安装Redis6.0.5时 进行到./install_server.sh时报错, This systems seems to use systemd. Please take a look at the p ...
分类:
系统相关 时间:
2020-06-26 12:35:09
阅读次数:
904
程序安装在/usr/local/freeswitch目录,root用户。 1、在目录/usr/lib/systemd/system下创建文件freeswitch.service,内容如下: [Unit] Description=FreeSWITCH After=syslog.target netwo ...
分类:
其他好文 时间:
2020-06-24 18:09:13
阅读次数:
69
find / -name postgresql-12.service res:/usr/lib/systemd/system/postgresql-12.service [Service]Environment=PGDATA=/data/pgsql/data2 修改数据存放目录修改后重启 登录数据库 ...
分类:
数据库 时间:
2020-06-22 18:45:00
阅读次数:
71
vim /etc/systemd/system/node_exporter.service [Unit] Description=node_exporter Documentation=https://prometheus.io/ After=network.target [Service] Typ ...
分类:
系统相关 时间:
2020-06-22 17:16:37
阅读次数:
107