Command
dijk
这个作者很懒,什么都没留下…
展开
-
VirtualBox: CentOS7.5 install VBoxLinuxAdditions
VirtualBox: CentOS7.5 install VBoxLinuxAdditions# yum install gcc# yum install gcc-c++// 版本要根据具体情况# yum install kernel-devel-3.10.0-862.el7.x86_64# reboot// 在桌面上打开增强功能包光盘,将VBoxLinuxAdditions....原创 2018-11-21 08:08:31 · 261 阅读 · 0 评论 -
Command: Linux: disk space
Command: disk space[root@abc ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 40G 2.2G 36G 6% /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9G 0 ...原创 2018-12-15 22:30:43 · 300 阅读 · 0 评论 -
MySQL: 查看root用户的权限
MySQL: 查看root用户的权限mysql> show grants for root;+-------------------------------------------+| Grants for root@% |+-------------------------------------------+| GRANT ALL...原创 2018-12-15 22:40:44 · 5697 阅读 · 0 评论 -
Git: set up global user name and email
Git: set up global user name and emailAdministrator@PC2018 MINGW64 /$ git config --global user.name "dijk"Administrator@PC2018 MINGW64 /$ git config --global user.email abc@163.com原创 2018-12-15 22:45:05 · 939 阅读 · 0 评论 -
Git: Override Local Version
Git: Override Local VersionF:\trunk>git fetch --allFetching originWarning: Permanently added the RSA host key for IP address 'xxx.xx.xxx.xx' to the list of known hosts.F:\trunk>git reset --...原创 2018-12-15 22:51:32 · 264 阅读 · 0 评论 -
Win10: MINGW64: install zsh & git
Win10: MINGW64: install zsh & git// update$ pacman -Syu// install zsh & git$ pacman -S zsh git$ git --versiongit version 2.19.2$ zsh --versionzsh 5.6.2 (x86_64-pc-msys)// install ...原创 2018-12-16 13:13:04 · 1560 阅读 · 0 评论 -
Alpine: get system info
Alpine: get system infolocalhost:~# cat /proc/versionLinux version 4.14.85-0-virt (buildozer@build-3-8-x86_64) (gcc version 6.4.0 (Alpine 6.4.0)) #1-Alpine SMP Tue Dec 4 17:35:30 UTC 2018localhost...原创 2018-12-16 13:38:21 · 343 阅读 · 0 评论 -
Problem: Alpine: apk add docker ERROR: unsatisfiable constraints
Problemapk add docker ERROR: unsatisfiable constraints:...Solution// update repositoriesvi /etc/apk/repositories#/media/cdrom/apkshttp://mirrors.tuna.tsinghua.edu.cn/alpine/v3.8/mainhttp://...原创 2018-12-16 13:44:22 · 5229 阅读 · 2 评论 -
Problem: Docker: Is docker daemon running?
ProblemIs docker daemon running?Solution// start docker daemon# dockerd原创 2018-12-16 14:31:53 · 690 阅读 · 0 评论 -
Alpine: Docker commands
Alpine: Docker commands// update repositoriesvi /etc/apk/repositories// add mirrors below#/media/cdrom/apkshttp://mirrors.tuna.tsinghua.edu.cn/alpine/v3.8/mainhttp://mirrors.tuna.tsinghua.edu.c...原创 2018-12-16 14:38:47 · 255 阅读 · 0 评论 -
Mac: install MacPorts
Mac install MacPortsInstall Xcode and the Xcode Command Line ToolsAgree to Xcode license in Terminalsudo xcodebuild -licenseInstall MacPorts for your version of the Mac operating system[pkg]Con...原创 2018-12-15 21:08:31 · 286 阅读 · 0 评论 -
Mac: install homebrew
Mac install homebrewInstall/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Check➜ ~ brew -vHomebrew 1.5.10Homebrew/homebrew-core (git revisi...原创 2018-12-15 17:59:54 · 265 阅读 · 0 评论 -
Win10: generate ssh key
Win10: generate ssh key// 邮箱替换成自己的ssh-keygen -t rsa -C "123456789@example.com"原创 2018-11-21 08:14:57 · 472 阅读 · 0 评论 -
CentOS: install jdk1.8
CentOS: install jdk1.8DownloadDecompress# mkdir /usr/local/java/// Decompress to '/usr/local/java/' directory# tar -zxvf jdk-8u151-linux-x64.tar.gz -C /usr/local/java/Environment variable# ...原创 2018-11-21 08:33:05 · 230 阅读 · 0 评论 -
Linux: 修改指定目录下所有文件的权限
修改指定目录下所有文件的权限// 修改指定目录下所有文件的权限为全体可读、可修改、可执行# chmod -R 777 apache-tomcat-8.5.20/原创 2018-11-21 08:39:37 · 1962 阅读 · 0 评论 -
Win10: 命令行查看文件的MD5/SHA1/SHA256
Win10 命令行查看文件的MD5/SHA1/SHA256certutil -hashfile yourfileaddress MD5certutil -hashfile yourfileaddress SHA1certutil -hashfile yourfileaddress SHA256原创 2018-11-21 08:47:45 · 4984 阅读 · 0 评论 -
Gradle: install & config
Gradle install & configWin10Step 1. Download the latest Gradle distributionStep 2. Unpack the distributionStep 3. Configure your system environmentSystem Variables --> Path --> Edi...原创 2018-11-25 17:08:26 · 224 阅读 · 0 评论 -
Problem: Git: fatal Not a git repository
Git fatal: Not a git repositoryProblemfatal: Not a git repository (or any of the parent directories): .gitSolutiongit init原创 2018-11-25 19:12:51 · 248 阅读 · 0 评论 -
Git: 强制覆盖本地工程命令
Git: 强制覆盖本地工程命令git强制覆盖本地工程命令git fetch --all// 不一定是origin/master,看之前是从哪里取代码的git reset --hard origin/mastergit pullgit强制覆盖本地工程命令(合成单条执行)git fetch --all && git reset --hard origin/mast...原创 2018-11-25 14:52:37 · 216 阅读 · 0 评论 -
Git: git add
git addGit Version 1.xGit Version 2.xhttps://www.cnblogs.com/skura23/p/5859243.html原创 2018-12-03 20:39:17 · 240 阅读 · 0 评论 -
Win10: install Chocolatey
Win10 install ChocolateyInstall with cmd.exe[Administrator]@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Ob...原创 2018-12-15 17:50:27 · 381 阅读 · 1 评论 -
Alpine: install docker compose
Alpine install docker compose// seems there is a problem with Alpine 3.8.1 virtual, can not work!# apk add curl# curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-...原创 2018-12-16 14:44:40 · 453 阅读 · 0 评论 -
Alpine: change current shell
Alpine change current shell// change current shell# vi /etc/passwd# change by dijkroot:x:0:0:root:/root:/bin/ash#root:x:0:0:root:/root:/bin/bash// see current shell# echo $0or# echo $SHELL...原创 2018-12-16 14:49:17 · 731 阅读 · 0 评论 -
Command: MINGW & Cygwin go to f disk
Command: MINGW & Cygwin go to f disk1. MINGW64: go to F disk// on d diskAdministrator@PC201809191156 MINGW64 /d$ cd f:// changed d disk to f diskAdministrator@PC201809191156 MINGW64 /f$...原创 2019-02-19 08:49:12 · 219 阅读 · 0 评论 -
Ubuntu: Command: 设置root密码
Ubuntu设置root密码终端输入sudo passwd root,在[sudo] password for landry:后输入当前用户的密码当前用户密码验证通过后输入需要设置的root超级管理员账户密码Enter new UNIX password:验证输入的密码Retype new UNIX password:出现passwd: password updated succe...原创 2019-02-19 09:08:53 · 298 阅读 · 0 评论 -
MySQL: Problem: 远程连接2003-can't connect to MYSQL server on ''(10060)
ProblemMySQL: 远程连接2003-can’t connect to MYSQL server on ‘’(10060)Solution1. 远程服务器上没有打开3306端口 #/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT #/etc/rc.d/init.d/iptables save # service ipt...原创 2019-02-19 12:46:30 · 596 阅读 · 0 评论 -
MySQL: Skill: Add all privileges for user abc on database basic_data
MySQL: Add all privileges for user abc on database basic_dataSHOW GRANTS FOR abc;//resultsGRANT USAGE ON *.* TO 'abc'@'%' IDENTIFIED BY PASSWORD '*38E573FEE0457F38F79B14E4E5381EAA895B5FC1'GRANT SE...原创 2019-02-19 14:29:04 · 235 阅读 · 0 评论 -
MySQL: Skill: 查看root的权限
MySQL: 查看root的权限mysql> show grants for root;+-------------------------------------------+| Grants for root@% |+-------------------------------------------+| GRANT ALL P...原创 2019-02-19 14:33:19 · 458 阅读 · 0 评论 -
WebLogic: Skill: install & start & login
WebLogic: install & start & login1. installjava -jar D:\ChromeDownload\fmw_12.2.1.3.0_wls_Disk1_1of1\fmw_12.2.1.3.0_wls.jar2. startC:\Oracle\Middleware\Oracle_Home\user_projects\domains\b...原创 2019-02-19 14:41:39 · 318 阅读 · 0 评论 -
Command: Maven: 执行jar包中指定main方法
Command: Maven: 执行jar包中指定main方法pom.xml中指定main方法1. pom.xml配置<build> <finalName>first-server</finalName> <plugins> <plugin> ...原创 2019-03-04 07:59:07 · 925 阅读 · 0 评论 -
Redis: Mac: install and config
Redis install and config in Mac1. Downloadhttps://redis.io/download redis-5.0.4.tar.gz2. Make~ tar xzf redis-5.0.4.tar.gz~ sudo mv redis-5.0.4 /usr/local~ cd /usr/local/redis-5.0.4~ make...原创 2019-06-10 07:41:08 · 366 阅读 · 0 评论 -
Zookeeper: connect to server
Connect to the zookeeper server1.Start serverλ cd C:\zookeeper-3.4.14\binλ zkServer.cmd2.Client connect to the serverλ cd C:\zookeeper-3.4.14\binλ zkCli.cmd -server 127.0.0.1:2181orλ cd C:...原创 2019-06-10 07:54:43 · 391 阅读 · 0 评论 -
MySQL: Problem: [Err] 1153 - Got a packet bigger than 'max_allowed_packet' bytes [Err] /*
ProblemMySQL: [Err] 1153 - Got a packet bigger than ‘max_allowed_packet’ bytes [Err] /*Solutionmysql> show VARIABLES like '%max_allowed_packet%';+--------------------------+------------+| Va...原创 2019-02-19 08:42:02 · 942 阅读 · 0 评论 -
gitignore: Problem: gitignore不起作用
Problemgitignore 不起作用Solutiongit rm -r --cached .git add .[seems command below can be omitted, just use above two commands]git commit -m 'update .gitignore'https://www.cnblogs.com/sloong/p/...原创 2019-02-18 13:38:19 · 216 阅读 · 0 评论 -
Alpine: install zsh and oh-my-zsh
Alpine: install zsh and oh-my-zsh# cat /etc/shells# valid login shells/bin/sh/bin/ash/bin/bash# apk add zsh# cat /etc/shells# valid login shells/bin/sh/bin/ash/bin/bash/bin/zsh// chang...原创 2018-12-16 14:53:44 · 1582 阅读 · 0 评论 -
Win10: cmder terminal commands
Win10 cmder terminal commandsgoto c,d,e,f disk:λ c:λ d:λ e:λ f:ExampleC:\Usersλ f:f:\λ原创 2018-12-16 15:12:25 · 417 阅读 · 0 评论 -
Linux: see file size command
Linux: see file size command// see file size# ls -lht原创 2018-12-16 15:14:44 · 359 阅读 · 0 评论 -
VirtualBox: Installing Alpine 3.8.1
VirtualBox Installing Alpine 3.8.1Install启动虚拟机,用光盘启动,然后用root登录AlpineLinux,没有密码敲入命令setup-alpine跟随命令行向导一步一步执行在选择安装源时,敲入“f”让系统自己寻找一个最快的源在选择安装目标盘时,敲入“sda”在选择分区类型时,敲入“sys”装完了,退出光盘,重启虚拟机Confi...原创 2018-12-10 20:28:42 · 437 阅读 · 0 评论 -
Alpine: install docker
Alpine install dockerInstall docker// 安装docker,并使其服务端随系统启动# apk add docker# ln -s /etc/init.d/docker /etc/runlevels/default/dockerDocker mirror acceleration// Docker国内镜像加速# touch /etc/docker...原创 2018-12-10 20:39:41 · 516 阅读 · 0 评论 -
CentOS: install git
CentOS install git// install gityum –y install git原创 2018-12-17 00:03:14 · 187 阅读 · 0 评论