黑猴子的家 Nginx 命令

2021-08-30 08:51:42 字數 1591 閱讀 9554

1、nginx啟動命令

[root@hadoop102 nginx]# cd /usr/local/nginx

[root@hadoop102 nginx]# pwd

/usr/local/nginx

[root@hadoop102 nginx]# ll

drwxr-xr-x. 2 root root 4096 11月 14 17:14 conf

drwxr-xr-x. 2 root root 4096 11月 14 17:14 html

drwxr-xr-x. 2 root root 4096 11月 14 17:14 logs

drwxr-xr-x. 2 root root 4096 11月 14 17:14 sbin

//-c 是 指定 配置檔案,也可以直接把配置檔案 複製過來

2、nginx無法啟動

nginx無法啟動: libpcre.so.1/libpcre.so.0: cannot open shared object file解決辦法

(1)64位 解決方法

[root@hadoop102 nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib64
(2)32位 解決方法

[root@hadoop102 nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib
3、nginx關閉命令

[root@hadoop102 ~]# cd /usr/local/nginx/

[root@hadoop102 nginx]# sbin/nginx -s stop

[root@hadoop102 ~]# cd /usr/local/nginx/

[root@hadoop102 nginx]# sbin/nginx -s reload

5、設定nginx為自啟動服務

[root@hadoop102 ~]# vim /etc/rc.d/rc 

/usr/local/nginx/sbin/nginx

6、平滑重啟nginx

[root@hadoop102 ~]# ps -ef | grep nginx

89673

[root@hadoop102 ~]# kill -hup 89673

7、完整有序的停止nginx

quit
8、重新開啟日誌檔案

[root@hadoop102 ~]# nginx -s reopen

黑猴子的家 HBase Shell 命令

1 基本操作 1 進入hbase客戶端命令列 victor hadoop102 hbase bin hbase shell2 檢視幫助命令 hbase main help3 檢視當前資料庫中有哪些表 hbase main list2 表的操作 1 建立表 hbase main create stud...

黑猴子的家 Hadoop Checkpoint機制

fsimage和edit log合併的過程如下圖所示 其實這個合併過程是乙個很耗i o與cpu的操作,並且在進行合併的過程中肯定也會有其他應用繼續訪問和修改hdfs檔案。所以,這個過程一般不是在單一的namenode節點上進行從。如果hdfs沒有做ha的話,checkpoint由secondname...

黑猴子的家 FileInputFormat切片機制

1 job提交流程原始碼詳解 waitforcompletion submit 1 建立連線 connect 1 建立提交job的 new cluster getconfiguration 2 判斷是本地yarn還是遠端 initialize jobtrackaddr,conf 2 提交job su...