zoukankan      html  css  js  c++  java
  • CentOS7 安装frp与开机启动

    1. 下载frp程序文件

    https://github.com/fatedier/frp/releases

    2. 解压文件

    下载后解压到自己的目录,我这里解压到/usr/local/frp:

    3. 添加systemd配置文件:

    vim /usr/lib/systemd/system/frp.service

    文件内容如下:

    [Unit]
    Description=The nginx HTTP and reverse proxy server
    After=network.target remote-fs.target nss-lookup.target
    
    [Service]
    Type=simple
    ExecStart=/usr/local/frp/frps -c /usr/local/frp/frps.ini
    KillSignal=SIGQUIT
    TimeoutStopSec=5
    KillMode=process
    PrivateTmp=true
    StandardOutput=syslog
    StandardError=inherit
    
    [Install]
    WantedBy=multi-user.target

    ExecStart的内容请根据自己frp安装目录修改。

    4. 设置开机启动

    systemctl daemon-reload
    systemctl enable frp

    5. 启动 frp

    systemctl start frp

    6. 查看frp是否启动

    ps aux | grep frp

    看到这里就说明启动成功了。

  • 相关阅读:
    分苹果
    马拉车算法(求最长回文子串)
    KMP
    字典树
    关于子类和父类中的this的用法
    最长上生子序列LIS
    sass
    黑马程序员----java基础笔记下(毕向东)
    DOM
    ajax教程
  • 原文地址:https://www.cnblogs.com/hxun/p/10877795.html
Copyright © 2011-2022 走看看