随笔分类 -  运维

摘要:1.git push/pull无法免密登录,每次都需要重新输入账户密码 输入以下指令配置存储账户,[--global] 表示可选,如果用了,表示这是全局设置,否则只针对此项目 git config [--global] credential.helper store git config [--gl 阅读全文
posted @ 2019-12-25 22:59 liuxianglong 阅读(228) 评论(0) 推荐(0)
摘要:Git初始化本地已有项目,并推送到远端Git仓库操作1. 创建本地项目,在项目根目录执行git init命令git init2. 在git服务器上创建一个仓库,这里使用GitHub创建一个仓库。例如这个git仓库https://github.com/ios-zhouyu/VueDemo.git 3. 阅读全文
posted @ 2019-12-24 18:35 liuxianglong 阅读(1412) 评论(0) 推荐(0)
摘要:实际上Scrapyd的打包工具用到了setuptools,而打包参数主要是在setuptools里面的setup函数中设置。 **********************************************************对所学内容的简单汇总******************* 阅读全文
posted @ 2019-12-17 21:07 liuxianglong 阅读(1098) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2019-12-16 16:08 liuxianglong 阅读(8) 评论(0) 推荐(0)
摘要:1、在/usr/lib/systemd/system/下创建服务脚本xxx.service,格式如下: [Unit] Description=Scrapyd After=syslog.target netword.target [Service] Type=forking ExecStart=/bi 阅读全文
posted @ 2019-12-16 15:47 liuxianglong 阅读(644) 评论(0) 推荐(0)
摘要:在Linux下操作时误删除了Pycharm项目中的文件夹,打开垃圾桶,居然找不到,立马上网查Linux下怎么恢复文件, 冷静一下,不是还有个Ctrl + Z吗,对着Pycharm 文件浏览器 按一下,居然可以。2333333333333 Ctrl + Z 平时还是要养成备份习惯 阅读全文
posted @ 2019-12-10 11:19 liuxianglong 阅读(699) 评论(0) 推荐(0)
摘要:Crontab基本格式: * * * * * command 分 时 日 月 周 命令 第1列表示分钟1~59 每分钟用 */1表示 第2列表示小时1~23(0表示0点) 第3列表示日期1~31 第4列表示月份1~12 第5列标识号星期0~6(0表示星期天) 第6列要运行的命令 在以上各个字段中,还 阅读全文
posted @ 2019-12-10 10:02 liuxianglong 阅读(640) 评论(0) 推荐(0)
摘要:一直卡这F5查看日志,最后一行出现A start job is running for /etc/rc.d/rc.local Comp。。。 原因是rc.local权限设错了解决方法:1.进入单用户模式:https://www.cnblogs.com/junjind/p/8993420.html2. 阅读全文
posted @ 2019-12-08 19:26 liuxianglong 阅读(3651) 评论(0) 推荐(0)
摘要:使用nginx托管django服务的原理 使用uwsgi开启django服务(通过配置文件启动) 防火墙关闭uwsgi端口(uwsgi的websocket一定要使用127.0.0.1的方式配置)) 编写nginx配置文件,通过nginx访问uwsgi,再通过uwsgi访问django 使用uwsgi 阅读全文
posted @ 2019-12-06 20:32 liuxianglong 阅读(256) 评论(0) 推荐(0)
摘要:查看防火墙状态命令: service firewalld status systemctl status firewalld 结果: 其中: enabled:开机启动(开机不启动是disabled); active(running):已经启动(未启动是inactive)。 启动防火墙命令:servi 阅读全文
posted @ 2019-12-06 12:46 liuxianglong 阅读(814) 评论(0) 推荐(0)
摘要:首先需要保证主机和虚拟机能相互Ping通,如果Ping不通,请参考我上篇文章,这里演示的是桥接模式下的方法,如果是NAT模式连接,请参考别处。 1. 虚拟机Linux系统内的Django项目 settings.py 文件中,改 ALLOWED_HOSTS = ['*'] 2.关闭虚拟机防火墙 #sy 阅读全文
posted @ 2019-12-06 12:28 liuxianglong 阅读(186) 评论(0) 推荐(0)
摘要:官网说明:https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#using-conda-in-windows-batch-script-exits-early bat中调用conda 需要使用CA 阅读全文
posted @ 2019-11-28 13:01 liuxianglong 阅读(2407) 评论(0) 推荐(0)