
Linux
hu炸炸
这个作者很懒,什么都没留下…
展开
-
linux创建一个服务
linux创建服务且是开机自动启动的原创 2022-10-11 22:48:29 · 543 阅读 · 1 评论 -
Linux-tail实时滚动显示log文件内容
Linux shell中有一个tail命令,常用来显示一个文件的最后n行文档内容但更多情况下,我们要在服务器端运行程序,并且需要实时监控运行日志,这时候有什么办法实时滚动显示log文件内容?这里可以利用tail命令加参数f实现,具体用法如下:tail -f ***.log参数说明-f, --follow[={name|descriptor}]:output appended data as the file grows; -f, --follow, and --follow=descriptor原创 2022-01-09 10:40:28 · 2578 阅读 · 0 评论 -
Ubuntu修改root/其他账号密码
sudo -ipasswd ubuntu. //这里也可以是root 可以是任何账号确认两次Enter new UNIX password:Retype new UNIX password:passwd: password updated successfully原创 2022-01-09 09:47:26 · 1320 阅读 · 0 评论 -
ubuntu让程序一直运行
前面加nohup。后面加&。让其后台运行nohup bash test.sh &#!/bin/shwhile truedops -ef | grep “xxxxx” | grep -v “grep”echo $?if [ $? -eq 0 ]then./xxxx. #启动应用,修改成自己的启动应用脚本或命令echo “process has been restarted!”elseecho “process already started!”fisleep 1原创 2022-01-08 20:49:21 · 1812 阅读 · 0 评论 -
ubuntu防火墙
连不上:1.服务器 提供商 防火墙2.服务器自身防火墙ubuntu防火墙关闭命令1、关闭ubuntu的防火墙ufw disable2、卸载了iptablesapt-get remove iptables3、关闭ubuntu中的防火墙的其余命令iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPTiptables -F3.记得127.0.0.1一定要测试!ps -aux |grep x原创 2022-01-08 18:33:09 · 2665 阅读 · 0 评论 -
Linux Shell学习手册
https://github.com/zxycode-2020/linux_shell_codeLinux 目录结构关机:shutdown -hhalt init 0重启shutdown -rreboot init 6ls-l 列表显示-a 显示所有 包括隐藏文件-h 人性化显示-d 显示目录,不查看内容cd. 当前目录… 上一级目录~ 用户家目录- 上一次切换的目录目录结构:和win不同,从’/'开始的 是根//root :r原创 2021-11-29 20:36:43 · 1089 阅读 · 0 评论