linux
鼠年大吉
这个作者很懒,什么都没留下…
展开
-
linux命令实时监控日志输出
tail -100f test.log #实时监控100行日志 tail-n10 test.log #查询日志尾部最后10行的日志; tail -n +10 test.log # 查询10行之后的所有日志;...原创 2019-10-16 10:55:15 · 2509 阅读 · 0 评论 -
Linux挂载共享盘
sudo yum install cifs-utilsvim /etc/fstab添加://10.10.*.*/share /mnt/data/share cifs rw,dir_mode=0777,file_mode=0777 0 0mount -a原创 2019-12-27 15:52:32 · 1036 阅读 · 0 评论 -
Linux设置共享文件夹
首先执行命令安装 sambayum -y install samba samba-client samba-common执行命令修改配置文件sudo vi /etc/samba/smb.conf上述文件修改为# See smb.conf.example for a more detailed config file or# read the smb.conf manp...原创 2019-12-27 15:28:47 · 1627 阅读 · 0 评论 -
执行命令 ./elasticsearch 出错
执行命令./elasticsearch 出错org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/newsroom/elasticsearch/inkstone-dev]] with lock id ...原创 2019-12-12 14:15:12 · 496 阅读 · 0 评论 -
linux 配置java环境变量 报错 `=': 不是有效的标识符
linux 配置java环境变量 运行source /etc/profile时 报错 `=': 不是有效的标识符解决办法export JAVA_HOME=/usr/local/java/jdk1.8.0_151的 “=”左右两边不能有空格。...原创 2019-12-09 15:32:44 · 2297 阅读 · 0 评论 -
linux部署服务常用命令(个人常用)
查看mongoDB进程:ps -ef|grep mongodb启动mongoDB服务service mongodb start解压压缩包tar –xvf file.tar //解压 tar包tar -xzvf file.tar.gz //解压tar.gztar -xjvf file.tar.bz2 //解压 tar.bz2tar –xZvf file.ta...原创 2019-12-05 09:14:18 · 417 阅读 · 1 评论