原创 LINUX chrony同步服務器時間

1、安裝 yum -y install chrony 2、啓動:systemctl start chronyd 開機啓動:systemctl enable chronyd 查看服務狀態:systemctl status chronyd 3

原创 LINUX 常用替換命令三種方法(perl、shell、sed)

1、perl:find/ls -name '要查找的文件名' | xargs perl -pi -e 's|被替換的字符串|替換後的字符串|g' xargs說明: -a    自動分隔模式,用空格分隔$_並保存到@F中。相當於@F = s

原创 HDP 225 packages excluded due to repository priority protections

rpm -qa | grep priorities vi /etc/yum/pluginconf.d/priorities.conf    

原创 HDP Authentication is not valid : /rmstore/ZKRMStateRoot

1、/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server `hostname -f`:2181

原创 Pycharm 更換地址源

清華: https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣: http://pypi.douban.com/simple/ 阿里: http://mirrors.aliyun.com/pypi/simp

原创 IPA ipa: ERROR: Host does not have corresponding DNS A/AAAA record

在IPA server機器上面添加報錯IP地址: ipa dnsrecord-add wanfeng16899.com ambari --a-rec 192.168.0.201; 點贊 收藏 分享 文

原创 MYSQL mysql: [Warning] Using a password on the command line interface can be insecure.

grant all privileges on *.* to 'root' @'%' identified by 'root'; flush privileges; mysql -uroot -pxxx登錄以後執行此命令OK  

原创 MYSQL InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 124885680

進入:cd /var/lib/mysql 刪除:rm -rf ib_logfile0 ib_logfile1  點贊 收藏 分享 文章舉報 與自己作戰 發佈了147 篇原創文

原创 MySQL Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

rpm --import /etc/pki/rpm-gpg/RPM* 

原创 ES head插件安裝方法

1、安裝node.js:setup_6.x   (5-11)版本自行修改 curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - 2、yum -y in

原创 ES max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [655360]

切換root用戶: vi /etc/sysctl.conf ,添加紅框內這句即可

原创 ES max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

首先查詢看看是否滿足需求: 如果不滿足,切換到root用戶:  vi /etc/security/limits.conf 

原创 ES head插件安裝方法如果遇到很多錯誤看這篇

1、更新nodejs版本: 先清除:sudo npm cache clean -f 更新最新版本:sudo n stable 2、更新npm版本: sudo npm install npm@latest -g 3、驗證: node -v

原创 JAVA 網絡編程總結

1、網絡編程中兩個主要問題:         ①如何準確定位網絡上一臺或多臺主機;定位主機上的特定應用         ②找到主機後如何可靠高效的進行數據傳輸     2、網絡編程中兩個要素:         ①對應問題一:IP和端口號