記錄一些linux上安裝的東西

一、安裝supervisor
1、確保有Python及pip后,執(zhí)行pip install supervisor
2、之后執(zhí)行echo_supervisord_conf > /etc/supervisor/supervisord.conf生成一個(gè)配置文件
3、編輯/etc/supervisor/supervisord.conf文件最后的[include]部分,(注意:[include]前面的分號(hào)要去掉)
4、執(zhí)行supervisord -c /etc/supervisor/supervisord.conf(如果啟動(dòng)不了,可能是要先結(jié)束掉已經(jīng)在運(yùn)行的該進(jìn)程)
5、啟動(dòng)一個(gè)項(xiàng)目的示例

[program:lotto-socket]
process_name=%(program_name)s_%(process_num)02d
directory=/www/wwwroot/lotto
command=laravel-echo-server start
autostart=true
autorestart=true
user=www
numprocs=4
redirect_stderr=true
stdout_logfile=/var/log/supervisor/laravel-lotto-socket.log

6、執(zhí)行supervisorctl,在supervisorctl的命令行下,執(zhí)行rereadupdate更新配置

二、安裝frp內(nèi)網(wǎng)穿透
參考https://github.com/fatedier/frp/blob/master/README_zh.md

三、安裝node
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs

四、運(yùn)行laravel-echo-server
ssl證書相關(guān)的兩個(gè)配置,在寶塔面板中生成的證書,先查看網(wǎng)站配置文件,獲得兩個(gè)pem文件的路徑,進(jìn)到該路徑發(fā)現(xiàn)兩個(gè)pem文件都是快捷方式,這里要填寫兩個(gè)原文件的路徑,之前填的兩個(gè)pem文件的路徑,一直不成功。
參考配置:
該示例對(duì)應(yīng)的服務(wù)器地址為:https://test.domain.com

{
    "authHost": "",
    "authEndpoint": "/broadcasting/auth",
    "clients": [],
    "database": "redis",
    "databaseConfig": {
        "redis": {},
        "sqlite": {
            "databasePath": "/database/laravel-echo-server.sqlite"
        }
    },
    "devMode": false,
    "host": null,
    "port": "6001",
    "protocol": "https",
    "socketio": {},
    "sslCertPath": "/www/server/panel/vhost/cert/test.domain.com/fullchain.cer",
    "sslKeyPath": "/www/server/panel/vhost/cert/test.domain.com/test.domain.com.key",
    "sslCertChainPath": "",
    "sslPassphrase": "",
    "apiOriginAllow": {
        "allowCors": false,
        "allowOrigin": "",
        "allowMethods": "",
        "allowHeaders": ""
    }
}

五、安裝Monaco字體
git clone https://github.com/cstrap/monaco-font
./install-font-ubuntu.sh http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
參考:Install monaco font on Ubuntu

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容