原创 Ubuntu 16 手動安裝sbt

1.上官網下載壓縮包官網地址:https://www.scala-sbt.org/download.html我下載的是sbt-0.13.15.tgz2、解壓 $ sudo tar zxvf sbt-0.13.15.tgz -C /home

原创 MySQL視圖操作命令詳解

創建視圖 在MySQL中,創建視圖的完整語法如下: CREATE [OR REPLACE] [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] VIEW view_name [(colu

原创 k8s failed to watch file "/var/log/pods/xxx.log": no space

kubernetes 集羣在查看日誌 kubectl logs -f <pod> 報錯 failed to watch file "/var/log/pods/xxxx/xxxxxx.log": no space left on devi

原创 mysql 5.5 互爲主從服務器

主機A(Ubuntu16.04):192.168.1.11 主機B(Ubuntu16.04):192.168.1.22 一、主機A上 1、vi /etc/my.cnf,添加: [mysqld] # master-slave log-bi

原创 數據庫-----catalog與schema簡介

 在SQL環境下Catalog和Schema都屬於抽象概念,主要用來解決命名衝突問題     一個數據庫系統包含多個Catalog,每個Catalog包含多個Schema,每個Schema包含多個數據庫對象(表、視圖、字段等)  

原创 linux安裝apache2.4.23

 一、下載文件 1、下載apache(現在版本都是以這樣的方式表達的:httpd-*.*.*.tar.gz),去apache.org官網:http://apache.org/dist/httpd/        ( 例如,下載的就是最新版

原创 遠程連接mysql錯誤1130

ERROR 1130: Host 192.168.1.23 is not allowed to connect to this MySQL server  在本機登入mysql後,更改 “mysql” 數據庫裏的 “user” 表裏的 “

原创 Linux平臺卸載MySQL

RPM包安裝方式的MySQL卸載   1: 檢查是否安裝了MySQL組件。 [root@DB-Server init.d]# rpm -qa | grep -i mysql   MySQL-devel-5.6.23-1.linu

原创 Struts2的struts.xml中配置及通配符的使用

對於通配符的使用還真是現在才明白一些,以一個簡單的例子做示範.         在一個普通的小型項目中可能會,寫很多個配置文件,然後include進struts.xml文件中,這是沒有通配符的時候的用法。         對於一個比

原创 Ubuntu16.04 docker 安裝bigbluebutton1.1

安裝docker的就不說了,我是直接安裝的deb文件。 1、docker拉取ubuntu16.04鏡像  docker pull ubuntu:16.04  2、docker運行,進入容器 docker run -d -i -t -

原创 Ubuntu16.04安裝mysql5.5

本文實在網上找的資料的基礎上修改的 未修改的原文地址http://blog.sina.com.cn/s/blog_672b419f0102y5yf.html 下面是安裝過程 1、編輯/etc/apt/sources.list和/etc/a

原创 Requesting Java AST from selection報錯

最近新換了一個電腦,重新安裝eclipse,在官網下載的4.7 (Oxygen)這個版本的,下載安裝,svn等插件都沒有問題,然後用到groovy插件,安裝後就報錯了,隨便將光標放在哪行代碼上,都會出現這個錯誤“Requesting Ja

原创 mysql重連,連接丟失

報錯內容: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure Last packet sent to the serv

原创 Linux 防火牆開放特定端口 (iptables)

service iptables status查看防火牆狀態 service iptables start開啓防火牆 service iptables stop關閉防火牆 service iptables restart重啓防火牆   防

原创 mysql 查看當前使用的配置文件my.cnf

命令 mysql --help|grep 'my.cnf' 輸出  order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/my.cnf /etc/mysql/my.cnf /usr/loca