ICode9

精准搜索请尝试: 精确搜索
  • 解决Nginx的"File not Found"2022-03-07 01:00:59

    server {   server_name demo.com;   listen 80;   index index.php;   root "D:\www\pros";   location ~ ^(.*)\.php$ {    # 也可使用unix地址     fastcgi_pass localhost:9000;     fastcgi_index index.php;    # PHP-FPM读取的文件路径如果与Ng

  • 算法模板2022-02-26 21:33:18

    1.最短路 int dijkstra() { // chushihua memset(dist, 0x3f, sizeof dist); dist[1] = 0; for (int i = 1; i < n; i++) { int t = -1; for (int j = 1; j < n; j++) if (!found[j] && (t == -1 || dist[j] &l

  • 1151 LCA in a Binary Tree (30 分)(树的遍历,LCA算法)2022-02-26 10:31:55

    The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a binary tree, you are supposed to find their LCA. Input Specification: Each input file contains one test case

  • PTA 7-6 查找整数 题解2022-02-26 09:03:56

    本题要求从输入的N个整数中查找给定的X。如果找到,输出X的位置(从0开始数);如果没有找到,输出“Not Found”。 输入格式: 输入在第一行中给出两个正整数N(≤20)和X,第二行给出N个整数。数字均不超过长整型,其间以空格分隔。 输出格式: 在一行中输出X的位置,或者“Not Found”。 输入样例1: 5

  • 查找指定字符(字符类型)2022-02-24 20:03:01

    本题要求编写程序,从给定字符串中查找某指定的字符。 输入格式: 输入的第一行是一个待查找的字符。第二行是一个以回车结束的非空字符串(不超过80个字符)。 输出格式: 如果找到,在一行内按照格式“index = 下标”输出该字符在字符串中所对应的最大下标(下标从0开始);否则输出"Not Found"

  • Invalid bound statement (not found)2022-02-24 14:33:33

      若是target里没有生成xml文件时,可在pom.xml添加如下代码(IDEA): <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</

  • pyspark.sql.utils.AnalysisException: u"Table or view not found:`ods_fpos`.`sales_order_item_pro2022-02-21 15:37:45

    解决  pyspark.sql.utils.AnalysisException: u"Table or view not found:`ods_fpos`.`sales_order_item_promotion` 第一步:启动 hive的metastore元数据服务 hive --service metastore 第二步:配置hive的元数据 conf = SparkConf() # 创建spark config 对象 config =

  • spring boot项目中踩到的坑2022-02-19 20:00:32

    在使用springboot的过程中,遇到过各种各样的小问题。 下面我将我所遇到过得问题做一个小的总结,算是做一个记录。 1. 导包错误导致的启动程序时报错:****Could not autowire. No beans of 'xxxx' type found(或者required a bean of type ‘XXX’ that could not be found)的错误提示。

  • 一条命令解决mysql_config not found2022-02-11 11:32:23

    遇到过几次pip安装mysql-python的时候出现如题的问题,在这里记录一下解决方法。 找不到mysql_config一般是由于通过lnmp.org或者其他方式安装mysql以后mysql_config是在/usr/local/mysql/bin/里面, 这里面的文件不是在任意位置都可以访问的 ln -s /usr/local/mysql/bin/mysql_confi

  • "export 'watchEffect' was not found in 'vue'2022-02-09 17:00:43

    "export 'watchEffect' was not found in 'vue'   报错信息     解决方案: 重新安装指定版本 vue-router:  

  • 口语心得整理2022-02-08 17:02:10

    走遍美国 01 Album 专辑,影集 Terrific 极好的 of 读音介于a啊和额之间,个人感觉更像额 Greece 希腊 Greek-American family 希腊裔美国家庭 Hispanic 拉美裔美国人 It was /ito:z/ I've /爱乌/ got to /gotta/ go. 02 uptown(上城区) platform(月台) sweater(毛衣) don't you(donyou)

  • ifconfig command not found2022-02-07 16:02:31

    安装没有图形化的CentOS是直接执行ifconfig ifconfig command not found 需要找到网络配置文件:cd /etc/sysconfig/network-scripts/ 查看:ls 编辑: vi ifcfg-ens32 默认的no改为yes :wq 保存 重启reboot 查看:ip addr  下载:net-tools yum install -y net-tools 然后可以执行:ifc

  • 【git】本地文件add之后,执行了git reset,文件都丢了,怎么找回文件2022-01-28 20:31:09

    1. 今天踩了一个大坑,IDE的文件都没commit,然后pull代码的时候,没注意,直接reset了 2. 处理方法 git fsck --lost-found 找到lost-found/other文件, 然后使用编辑器打开, 查看文件内容, 虽然文件不是自己最新的, 但是还是很有用的, 找回了一部分  

  • 使用ntpdate更新linux时间的时候出现 no server suitable for synchronization found解决办法2022-01-28 16:02:15

    问题 在linux下执行/usr/sbin/ntpdate time.nist.gov出现错误提示no server suitable for synchronization found 分析 可能是防火墙造成的 可以先关闭防火墙,然后在执行时间同步的命令,如果时间同步成功则证实是防火墙的题目,须要更改iptables的设置。 关闭防火墙,尝试同步时间 # 关

  • ubuntu安装virtualenv成功后not found 解决方法2022-01-27 20:02:15

    On Ubuntu 18.04 LTS I also faced same error. Following command worked: sudo apt-get install python-virtualenv在stackoverflow上找到了答案!!这个可以

  • pymongo.errors.CursorNotFound: cursor id 9016055849758451424 not found, full error: {‘ok‘: 0.0, ‘err2022-01-27 15:33:38

    pymongo.errors.CursorNotFound: cursor id 9016055849758451424 not found, full error: {‘ok’: 0.0, ‘errmsg’: ‘cursor id 9016055849758451424 not found’, ‘code’: 43, ‘codeName’: ‘CursorNotFound’} 错误解决 默认 mongo server维护连接的时间窗口是十分

  • 持续集成Jenkins shell执行提示source command not found2022-01-26 11:34:11

    In Bourne shell(sh), use the . command to source a file 使用方法: . filename 示例: . /var/work/venv3/bin/activate 参考: https://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell

  • Linux笔记 bash解决if not found 问题2022-01-25 16:01:29

    原因是if [无空格然后在内容然后再空格] 我想应该新手小白都会犯这样问题 正确写法 if [ $# -ne 1 ] 错误写法 前面为未空格,后面空格 if [$# -ne 1 ] ​ 前面空格,后面未空格 if [ $? -eq 0]    都未空格 if [$? -eq 0]     ​​

  • 分析redis key大小的几种方法2022-01-24 22:04:24

    当redis被用作缓存时,有时我们希望了解key的大小分布,或者想知道哪些key占的空间比较大。本文提供了几种方法。 一. bigKeys 这是redis-cli自带的一个命令。对整个redis进行扫描,寻找较大的key。例: redis-cli -h b.redis -p 1959 --bigkeys 输出: # Scanning the entire keyspace

  • mysql_secure_installation command not found2022-01-24 18:03:56

    centos7 安装 mariadb 10.6.5, 完成之后,执行 mysql_secure_installation 提示 command not found. 最后才发现,原因是现在已经没有这个了,用的是 mariadb-secure-installation 官方文档已经给了说明: https://mariadb.com/kb/en/mysql_secure_installation/

  • 1143 Lowest Common Ancestor (30 分)(二叉查找树)2022-01-22 23:31:56

    The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node con

  • -bash: locate: command not found2022-01-20 22:32:26

    一条小命令引发的"灾难" 在学习使用locate命令时,出现了如下问题      然后开始百度,说是没有安装mlocate这个包 安装:yum  -y install mlocate 出现新的问题:报错了,一推错, Loaded plugins: fastestmirror Loading mirror speeds from cached hostfileError: Cannot retrie

  • ubuntu no ssh keys found2022-01-12 14:30:11

    首先注册一个Ubuntu账号,还需要SSH密钥,打开终端输入ssh-keygen生成SSH密钥,输入你的邮箱和两次密码,会在C:\Users\xxx生成一个文件,文件名为“你的邮箱.pub”,使用记事本打开并复制其中内容,粘贴在 这里,最后点击导入SSH密钥即可。 C:\Users\xxx>ssh-keygen Generating public/priva

  • 【记录】Mac上解决重复安装anaconda失败以及conda命令not found问题2022-01-09 19:00:28

    安装时报错 问题描述 安装到最后一步“摘要”时,报错 “安装遇到一个错误,导致安装失败”。 正确安装流程的末两步图如下,而我遇到的错误是在摘要出报错。 网上搜了下后,判断这是因为之前安装过anaconda没卸载干净。 解决方法 尝试直接删anaconda文件无果后,选择用powerMyMac和funter

  • Lesson1 - 课文(1 / 60)2022-01-07 14:00:35

    A puma at large at large 逃遁的, 没有被控制的 -- The thief is still at large Pumas are large, cat-like animals which are found in America. cat-like bear-like animals lady-like behavior child-like simplicity an angel-like girl crystal-like eyes flu-like symp

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有