安装 vagrant_1.6.3.msi
VirtualBox-4.3.12-93733-Win.exe
x shell
其中出现了2个错误
1. virtualBox 运行的虚拟机时候 提示 核心驱动没有安装,找多对应的驱动 右键安装,不管用的话 重启一下电脑
2. xshell 安装时 报确实dll,找到对应的dll下载放到system32 或者dll修复工具即可
下载指定的 box文件 如(centos.box)
vagrant init
vagrant box add boxname centos.box (boxname 随意起的, box文件在当前命令的 目录下)
vagrant up boxname 可能会报错的原因 如上第一个错误
cmd命令模式下
vagrant -h
Usage: vagrant [options] <command> [<args>]
-v, --version Print the version and exit.
-h, --help Print this help.
Common commands:
box manages boxes: installation, removal, etc.
connect connect to a remotely shared Vagrant environment
destroy stops and deletes all traces of the vagrant machine
global-status outputs status Vagrant environments for this user
halt stops the vagrant machine
help shows the help for a subcommand
init initializes a new Vagrant environment by creating a Vagrantfile
login log in to Vagrant Cloud
package packages a running vagrant environment into a box
plugin manages plugins: install, uninstall, update, etc.
provision provisions the vagrant machine
rdp connects to machine via RDP
reload restarts vagrant machine, loads new Vagrantfile configuration
resume resume a suspended vagrant machine
share share your Vagrant environment with anyone in the world
ssh connects to machine via SSH
ssh-config outputs OpenSSH valid configuration to connect to the machine
status outputs status of the vagrant machine
suspend suspends the machine
up starts and provisions the vagrant environment
version prints current and latest Vagrant version
For help on any individual command run `vagrant COMMAND -h`
Additional subcommands are available, but are either more advanced
or not commonly used. To see all subcommands, run the command
`vagrant list-commands`.
常用的几个vagrant命令
$ vagrant init # 初始化
$ vagrant up # 启动虚拟机
$ vagrant halt # 关闭虚拟机
$ vagrant reload # 重启虚拟机
$ vagrant ssh # SSH 至虚拟机
$ vagrant suspend # 挂起虚拟机
$ vagrant resume # 唤醒虚拟机
$ vagrant status # 查看虚拟机运行状态
$ vagrant destroy # 销毁当前虚拟机
$ vagrant box list # 查看本地box列表
$ vagrant box add # 添加box到列表
$ vagrant box remove # 从box列表移除
X-Shell help 命令集合
Internal Commands:
new: Creates a new session.
open: Opens a session or the session dialog box.
edit: Opens the Session Property dialog box for a session.
list: Lists information of all available sessions.
cd: Changes the current working directory.
pwd: Shows the current working directory.
set: Sets options.
clear: Clears the screen/address/command history.
help: Displays this help. '?' does the same.
quit: Quits Local Shell. 'exit' does the same.
ssh: Connects to a host using the SSH protocol.
telnet: Connects to a host using the TELNET protocol.
rlogin: Connects to a host using the RLOGIN protocol.
sftp: Connects to a host to transfer files securely.
ftp: Connects to a host to transfer files.
disconnect: Closes connection of this session.
reconnect: Reconnects this session.
centos help 命令集合
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.
A star (*) next to a name means that the command is disabled.
job_spec [&] history [-c] [-d offset] [n] or history >
(( expression )) if COMMANDS; then COMMANDS; [ elif COMMA>
. filename [arguments] jobs [-lnprs] [jobspec ...] or jobs -x c>
: kill [-s sigspec | -n signum | -sigspec]>
[ arg... ] let arg [arg ...]
[[ expression ]] local [option] name[=value] ...
alias [-p] [name[=value] ... ] logout [n]
bg [job_spec ...] mapfile [-n count] [-O origin] [-s count>
bind [-lpvsPVS] [-m keymap] [-f filename]> popd [-n] [+N | -N]
break [n] printf [-v var] format [arguments]
builtin [shell-builtin [arg ...]] pushd [-n] [+N | -N | dir]
caller [expr] pwd [-LP]
case WORD in [PATTERN [| PATTERN]...) COM> read [-ers] [-a array] [-d delim] [-i te>
cd [-L|-P] [dir] readarray [-n count] [-O origin] [-s cou>
command [-pVv] command [arg ...] readonly [-af] [name[=value] ...] or rea>
compgen [-abcdefgjksuv] [-o option] [-A > return [n]
complete [-abcdefgjksuv] [-pr] [-DE] [-o > select NAME [in WORDS ... ;] do COMMANDS>
compopt [-o|+o option] [-DE] [name ...] set [--abefhkmnptuvxBCHP] [-o option-nam>
continue [n] shift [n]
coproc [NAME] command [redirections] shopt [-pqsu] [-o] [optname ...]
declare [-aAfFilrtux] [-p] [name[=value] > source filename [arguments]
dirs [-clpv] [+N] [-N] suspend [-f]
disown [-h] [-ar] [jobspec ...] test [expr]
echo [-neE] [arg ...] time [-p] pipeline
enable [-a] [-dnps] [-f filename] [name .> times
eval [arg ...] trap [-lp] [[arg] signal_spec ...]
exec [-cl] [-a name] [command [arguments > true
exit [n] type [-afptP] name [name ...]
export [-fn] [name[=value] ...] or export> typeset [-aAfFilrtux] [-p] name[=value] >
false ulimit [-SHacdefilmnpqrstuvx] [limit]
fc [-e ename] [-lnr] [first] [last] or fc> umask [-p] [-S] [mode]
fg [job_spec] unalias [-a] name [name ...]
for NAME [in WORDS ... ] ; do COMMANDS; d> unset [-f] [-v] [name ...]
for (( exp1; exp2; exp3 )); do COMMANDS; > until COMMANDS; do COMMANDS; done
function name { COMMANDS ; } or name () {> variables - Names and meanings of some s>
getopts optstring name [arg] wait [id]
hash [-lr] [-p pathname] [-dt] [name ...]> while COMMANDS; do COMMANDS; done
help [-dms] [pattern ...] { COMMANDS ; }
Git help 命令集合
[root@vagrant-centos64 ~]# git --help
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[--help] COMMAND [ARGS]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and merge with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
See 'git help COMMAND' for more information on a specific command.