Nginx安裝啟動過程中的一些錯誤

2021-09-27 02:58:59 字數 475 閱讀 6669

參考教程安裝nginx的過程**現下面兩個錯誤

1、-bash: nginx: command not found

解決:vim /etc/profile  按i 編輯profile檔案,新增如下**,新增完成後 按esc退出編輯,按:wq退出儲存文件,最後source /etc/profile 使得修改立即生效

path=$path:/usr/local/nginx/sbin

export path

2、nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: no such file or directory)

解決:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf,輸入此命令即可解決

安裝mysql並啟動過程中錯誤排查

1 安裝mysql 這位老兄的方法非常棒 推薦 2 安裝完成之後啟動,然後檢視mysql是否啟動,出現error表示mysql沒有正確啟動,找到原因並解決之後重新啟動mysql etc init.d mysqld status error mysql is not running,but lock ...

關於android啟動過程中logo

android開機啟動會有3個logo出現 1.bootable啟動,出現android機械人影象 修改目標 用自定義的ppm替代 drivers video logo logo linux clut224.ppm,同時刪除logo linux clut224.c logo linux clut22...

linux核心啟動過程中 set

set up是乙個巨集 define setup str,fn setup param str,fn,fn,0 define setup param str,unique id,fn,early static char setup str unique id initdata str static ...