当前位置: 首页> 文旅> 旅游 > 建站之星模板下载网站_seo优化培训学校_网络营销包括哪些_青岛seo

建站之星模板下载网站_seo优化培训学校_网络营销包括哪些_青岛seo

时间:2025/8/11 17:29:02来源:https://blog.csdn.net/weixin_52767345/article/details/143020320 浏览次数:0次
建站之星模板下载网站_seo优化培训学校_网络营销包括哪些_青岛seo

jar命令

运行jar包:java -jar xxx.jar
后台运行jar包:java -jar xxx.jar &
运行内容重定向输出到x.txt文件中:nohup java -jar demo.jar >x.txt &
关掉命令窗口依旧运行:nohup java -jar demo.jar &
切换jdk版本运行: nohup /安装jdk地址/bin/java -jar /项目地址/project.jar >/项目地址/nohup.out 2>&1 &

systemctl命令

重载systemd的配置文件:systemctl daemon-reload
开机自启动配置添加:systemctl enable xxx.service
禁用开机自启动:systemctl disable xxx.service
启动:systemctl start xxx.service
关闭:systemctl stop xxx.service
重启:systemctl restart xxx.service
状态:systemctl status xxx.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled

防火墙命令

关闭防火墙命令:systemctl stop firewalld.service
开启防火墙:systemctl start firewalld.service
开启防火墙:systemctl status firewalld.service
关闭开机自启动:systemctl disable firewalld.service
开启开机启动:systemctl enable firewalld.service
重启防火墙: firewall-cmd --reload
查看所有打开的端口:firewall-cmd --list-all --zone=public
添加放行某ip端口规则:firewall-cmd --permanent --add-rich-rule=“rule family=“ipv4” source address=“xxx.xxx.xx.x” port protocol=“tcp” port=“xxxx” accept”
移除放行某ip端口规则:firewall-cmd --permanent --remove-rich-rule=“rule family=“ipv4” source address=“xxx.xxx.xx.x” port protocol=“tcp” port=“xxxx” accept”

history命令

查看某命令历史:history | grep xxx
查看历史:history

mysql命令

登录:mysql -u root -p

ps命令

查看指定进程:ps -ef |grep xxx
查看所有进程:ps -ef

kill命令

杀死某进程:kill -9 pid
批量杀死进程:pkill -f 进程名

rm命令

强制删除:rm -rf xxx
普通删除:rm -r xxx

mkdir命令

创建目录:mkdir xxx
创建多级目录:mkdir -p /xxx/xxx/xxx/xxx

curl命令

发送json格式体:
curl -l -H “Content-type: application/json” -X POST -d ‘{
“ip”: “10.10.10.32”,
“username”: “admin”,
“password”: “heyitem@”,
“port”: 8000
}’ http://127.0.0.1:10000/xxx/xxxxx
发送多个查询参数
curl -v -X GET https://xxxx.xxx.com/rest?accessToken=xxxxxxxxx&appId=xxxxxxxx&method=xxxxxxxxx&timestamp=xxxxxxxx

关键字:建站之星模板下载网站_seo优化培训学校_网络营销包括哪些_青岛seo

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: