Command
ctrl-z 挂起正在运行的进程
ctrl-d 发送EOF
ctrl-c 结束进程
redis-server -v
redis-cli 连接redis
ps -ef |grep AElf
ps命令将某个进程显示出来
grep命令是查找
中间的|是管道命令 是指ps命令与grep同时执行
PS是LINUX下最常用的也是非常强大的进程查看命令
grep命令是查找,是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。
grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。
以下这条命令是检查java 进程是否存在:ps -ef |grep java
字段含义如下:
UID PID PPID C STIME TTY TIME CMD
zzw 14124 13991 0 00:38 pts/0 00:00:00 grep --color=auto dae
UID :程序被该 UID 所拥有
PID :就是这个程序的 ID
PPID :则是其上级父程序的ID
C :CPU使用的资源百分比
STIME :系统启动时间
TTY :登入者的终端机位置
TIME :使用掉的CPU时间。
CMD :所下达的是什么指令
cat appsettings.json
redis-cli flushall
ps -ef |grep dotnet
dotnet ../AElfDebug/AElf.Launcher.dll
open . 打开显示所有打开的文件夹
cp ../AElfDebug/appsettings.MainChain.MainNet.json ./
cp ../AElfDebug/appsettings.json ./
cd Test
mkdir Test
cd ..
dotnet publish AElf.sln -o ../AElfDebug
cd AElf
mkdir AElfDebug
cd ..
cd /Users/duansale/Documents/github/AElf
cd AElf.Launcher/
dotnet build
cd /Users/duansale/Documents/github
aelf-command create
npm i -g aelf-command
brew unlink node && brew link node
brew link --overwrite --dry-run node
brew link --overwrite node
rm '/usr/local/include/node/common.gypi'
brew install node
sudo chown -R duansale /usr/local
sudo brew install node
vi NuGet.Config
cd /Users/duansale/Documents/github/AElf
cd NuGet
cd
cd ~/.nuget
sudo chown -R duansale /usr/local/include/google
sudo mv protoc3/include/* /usr/local/include
sudo mv protoc3/bin/* /usr/local/bin/
unzip protoc-3.11.4-osx-x86_64.zip -d protoc3
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-osx-x86_64.zip
dotnet -h
$ dotnet
cd /usr/local/Cellar/redis/6.2.3
brew install redis
sudo chown -R duansale /usr/local/share/zsh/site-functions
chmod u+w /usr/local/share/zsh
brew help
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
whoami
sodo chown -R 'whoami' :adm
brew install ssdb
choco install protoc --version=3.11.4 -y
ssdb-server /usr/local/stc/ssdb.conf
git clone https://github.com/AElfProject/aelf-automation-test.git
git clone https://github.com/AElfProject/AElf.git
cd /Users/duansale/Documents/github
//if(list.Exists(o=>o=="symbol"))//; 如果是对象 就改成对象,如果是值类型的就直接填写就好了。返回 true or false