返回顶部
扩大
缩小

Gaidy's

04 2019 档案

centos简单的后台运行
摘要:# 忽略输出文件 nohup java FileTest > /dev/null 2>&1 & 阅读全文

posted @ 2019-04-28 13:22 Gaidy 阅读(1908) 评论(0) 推荐(0)

centos后台运行Python
摘要:在服务器上,为了退出终端,程序依然能够运行,需要设置程序在后台运行。 关键的命令:nohup *基本用法:进入要运行的py文件目录前 nohup python -u test.py > test.log 2>&1 & *含义解释:nohup 不挂起的意思python test.py python运行 阅读全文

posted @ 2019-04-19 16:17 Gaidy 阅读(5680) 评论(0) 推荐(0)

centos7防火墙导致不能访问的
摘要:CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewal 阅读全文

posted @ 2019-04-12 16:35 Gaidy 阅读(1198) 评论(0) 推荐(0)

pymysql的使用
摘要:import pymysql #打开数据库 (如果连接失败会报错)#db = pymysql.connect(host = '127.0.0.1', port = 3306, user = 'minbo', passwd = '123456', db = 'pythontest')db = pymy 阅读全文

posted @ 2019-04-12 11:36 Gaidy 阅读(296) 评论(0) 推荐(0)

导航