- 博客(63)
- 资源 (1)
- 收藏
- 关注
原创 【ubuntu添加apt-add-repository 报错“could not find a distribution template for Ubuntu/jammy”】
使用apt-add-repository时提示 “could not find a distribution template for Ubuntu/jammy”把第一个Suite: devel 改为Suite: jammy。再使用apt-add-repository安装即可。
2024-05-28 11:44:17
347
原创 【mac完全卸载360】
我安装的是360企业版,应付检查后,准备卸载。从访达应用程序中移动到回收站了,然而在活动监视器中搜索360,任然有他的进程。如果直接在监视器中杀掉该进程,360会换pid再起启动进程。解决办法,使用终端和root权限,删除360的整个目录,然后再次杀死360进程即可。2,进程中会显示360的目录位置,例如。1,打开终端,查看360的进程。4,完成后,再次杀死360进程。mac完全卸载360。3,删除360的目录。
2023-03-31 12:11:23
2596
1
原创 Ubuntu20.04 挂载目录报错
xfs filesystem being mounted at /data supports timestamps until 2038 (0x7fffffff)
2022-07-14 13:46:20
1904
原创 win10 升级到win11镜像setup安装
win10 升级到win11镜像setup安装镜像使用方式镜像地址镜像使用方式1,右键装载,或者右键解压2,进入目录,以管理员运行setup.exe3,等待硬件检测,随后等待下载更新,最后重启,就与安装系统一样了。镜像地址阿里网盘:...
2021-12-16 17:41:50
1410
原创 memcached
CentOS7.4安装memcachedyum install memcached -y启动命令行启动 /usr/bin/memcached -d -m 64 -I 20m -u root -l 192.168.119.128 -p 11211 -c 1024 -P /var/run/memcached.pid警告WARNING: Setting item max size ab...
2019-12-02 18:06:51
161
原创 windows iperf3安装
从官网下载iperf。windows64位解压复制这两个文件。粘贴到“%systemroot%”下。回车,进入到windows目录下将复制的两个文件粘贴到此处。cmd中可以使用iperf3命令了。客户端与服务端应使用一致的iperf版本。...
2019-12-02 16:25:09
7763
原创 PXE安装CentOS_7.4
https://blog.youkuaiyun.com/Happy_Sunshine_Boy/article/details/88635839https://www.cnblogs.com/liuxgcn/p/11076469.html
2019-11-14 09:49:05
403
原创 lintcode
二分查找给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现的下标(从0开始),如果target不存在于数组中,返回-1。class Solution: """ @param nums: The integer array. @param target: Target to find. @return:...
2019-11-08 15:57:09
125
原创 lintcode删除链表中倒数第n个节点
题意:删除链表中倒数第n个结点,尽量只扫描一遍。使用两个指针扫描,当第一个指针扫描到第N个结点后,第二个指针从表头与第一个指针同时向后移动,当第一个指针指向空节点时,另一个指针就指向倒数第n个结点了‘’’"""Definition of ListNodeclass ListNode(object): def __init__(self, val, next=None): ...
2019-11-01 17:17:48
94
原创 lintcode链表的中点
第一次写的,如果fast.next是none,那么fast.next.next会报错 def middleNode(self, head): # write your code here i = 0 if head.val != None: slow = head fast = head ...
2019-11-01 16:13:01
143
原创 git的安装与简单使用
yum install git -yyum install git-svn git-email gitk -ygit直接记录快照,而非差异比较。几乎所有操作在本地执行git中所有数据计算校验和,并以校验和来引用git一般只添加数据三种状态:已提交commit、已修改modified、已暂存staged。git init 在现有目录中初始化仓库git add 对指定文...
2019-10-28 16:10:22
109
原创 记录systemctl 报错
https://tutel.me/c/unix/questions/324260/error+getting+authority+error+initializing+authority+could+not+connect+resource+temporarily+unavailable+gioerrorquark+27The output of journalctl -r -p err -b ...
2019-08-20 18:19:03
774
原创 centos 7 mariadb安装
1、安装MariaDB安装命令yum -y install mariadb mariadb-server安装完成MariaDB,首先启动MariaDBsystemctl start mariadb设置开机启动systemctl enable mariadb接下来进行MariaDB的相关简单配置mysql_secure_installation首先是设置密码,会提示先输入密...
2019-08-15 14:08:26
98
原创 sed
sed -i ‘32,42s/^/#/’ /etc/my.cnf.d/server.cnf将32至42行开头字符替换为#sed -i ‘32,42s/^#//’ /etc/my.cnf.d/server.cnf将32至4行以#开头的行替换掉。(删除)
2019-08-15 11:24:43
115
原创 mariadb常用运维
mariadb常用运维数据库备份与恢复root用户备份test数据库下的person表mysqldump -u root -p test person > /backup.sql备份多个数据库mysqldump -u username -p --databases dbname2 dbname2 > /Backup.sql备份所有数据库mysqldump -u usern...
2019-08-15 10:58:43
480
原创 Galera Cluster安装配置
https://blog.youkuaiyun.com/danielchan2518/article/details/86608216
2019-08-06 16:44:26
306
原创 mysql 主从 重新同步
mysql 主从 重新同步mysql 主从同步一担出了问题之后,就会导致从库上的数据和主库不一样了。所以需要生新同步数据。1、登录主库服务器,进入mysql,命令为:mysql -uroot -ppassword2、执行:FLUSH TABLES WITH READ LOCK;3、查看主库状态:show master status;4、再开一个主库服务器的SSH,这次不进入mysql,...
2019-08-05 15:47:00
269
原创 mysql主从同步
主服务器/etc/my.cnf[mysqld]event_scheduler=1innodb_rollback_on_timeout=1innodb_lock_wait_timeout=600max_connections=350log-bin=mysql-binbinlog-format='ROW'datadir=/var/lib/mysqlsocket=/var/lib/m...
2019-08-05 15:15:49
110
转载 计算节点nova服务启动失败(neutron服务同理,都是rabbitmq连接失败,用户授权或者密码问题)
计算节点nova服务启动失败时间:2019-04-25本文章向大家介绍计算节点nova服务启动失败,主要包括计算节点nova服务启动失败使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。在计算节点启动openstack-nova-compute服务的时候,服务无法正常启动,查看nova的日志发现如下报错:2019-04-25 00:02:26.4...
2019-07-30 18:38:39
2660
转载 centos7添加bridge-nf-call-ip6tables出现No such file or directory
centos7添加bridge-nf-call-ip6tables出现No such file or directory时间:2017-07-01 16:24:23 阅读:5787 评论:0 收藏:0 [点我收藏+]http://www.mamicode.com/info-detail-1882677.html标签:size localhost ...
2019-07-30 16:23:49
1441
转载 检测磁盘坏道与修复
https://www.cnblogs.com/augusite/p/10931175.htmlhttps://www.cnblogs.com/chenjw-note/articles/7483762.html
2019-07-26 14:54:23
193
转载 [Python] Python 之 __new__() 方法与实例化
写的很详细,收藏,不会就看一遍https://www.cnblogs.com/ifantastic/p/3175735.html
2019-07-08 10:12:45
122
原创 lintcode第k大元素
在数组中找到第 n大的元素。想到之前用的heapq内置模块,heapq.nlargest可以返回前n大的数,最后一个数就是第n大的数import heapqclass Solution: """ @param n: An integer @param nums: An array @return: the Kth largest element """...
2019-07-03 16:01:25
132
转载 lintcode合并数字
给出n个数,现在要将这n个数合并成一个数,每次只能选择两个数a,b合并,每次合并需要消耗a+b的能量,输出将这n个数合并成一个数后消耗的最小能量。class Solution: """ @param numbers: the numbers @return: the minimum cost """ def mergeNumber(self, number...
2019-07-02 16:46:48
259
转载 lintcode丑数 II
用已有丑数乘以2,3,5寻找丑数。import timeclass Solution: """ @param n: An integer @return: return a integer as description. """ def nthUglyNumber(self, n): if n <= 6: ...
2019-07-02 11:49:08
162
原创 lintcode中位数下标
给出一个含有 n 个互不相等整数的无序数组,找到其中中位数的下标。下标从 0 开始。中位数是指这些数排序后最中间的数。若 n 为偶数,则中位数是数组排序后的第 n/2 个数。https://www.lintcode.com/problem/median-index/descriptionclass Solution: """ @param a: the array a ...
2019-07-01 18:38:26
404
原创 lintcode数字1的个数
给定整数n,计算出现在小于等于n的所有非负整数中的数字1的总数。直接数1的个数。class Solution: """ @param n: an integer @return: the total number of digit 1 """ def countDigitOne(self, n): # write your code h...
2019-07-01 11:27:07
226
原创 lintcode尾部的零
设计一个算法,计算出n阶乘中尾部零的个数class Solution: """ @param: n: An integer @return: An integer, denote the number of trailing zeros in n! """ def trailingZeros(self, n): # write your c...
2019-07-01 11:05:21
152
原创 lintcode会议室
给定一系列的会议时间间隔,包括起始和结束时间[[s1,e1],[s2,e2],…(si < ei),确定一个人是否可以参加所有会议。"""Definition of Interval.class Interval(object): def __init__(self, start, end): self.start = start self.en...
2019-07-01 10:33:11
365
你的电脑因为出现问题而重新启动
2024-05-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人