首页
关于
Search
1
在投射和录制时显示敏感信息写给TeamViewer,anydesk,向日葵
8,284 阅读
2
sublime 3155-3175 LICENSE
7,757 阅读
3
mysql存储过程&时间累加插入
7,645 阅读
4
永远不要相信浮点数结果精确到了最后一位,也永远不要比较两个浮点数是否相等。
4,439 阅读
5
mysql-workbench中duration fetch的含义
4,381 阅读
ubuntu
centos
sublime
php
mysql
JS
CSS
其他
chrome
redis
登录
Search
标签搜索
mysql
curl
grep
journalctl
rename
You can't specify target table
only_full_group_by
Sub-process
警示
dropbox
mtr
curl抓取重定向
floor
intval
ceil
round
pixmap
adwaita
date.utc
gmmktime
五好的Book
累计撰写
188
篇文章
累计收到
24
条评论
首页
栏目
ubuntu
centos
sublime
php
mysql
JS
CSS
其他
chrome
redis
页面
关于
搜索到
89
篇与
的结果
2019-09-05
AppImage 可执行程序路径变动图标消失的问题
现在有些应用程序提供的是AppImage这种包,给个可执行的权限 双击即可允许,安装都不需要,有时候不小心给删掉或改个名,在应用程序列表他的图标就消失了。然而后面你再把他找回来,双击后可是可以运行但是不像第一次运行的时候会提示创建一个快捷启动的提示了,这个时候有的人会告诉你可以手动创建desktop文件其实可以有更加快捷的方式“直接 在这里 ~/.local/share/applications 更改对应的desktop文件即可[Desktop Entry] Name=Another.Redis.Desktop.Manager Comment=A faster, better and more stable redis desktop manager. Exec="/home/abc/snap/Another.Redis.Desktop.Manager.1.2.5.AppImage" %U Terminal=false Type=Application Icon=appimagekit-another-redis-desktop-manager StartupWMClass=Another.Redis.Desktop.Manager X-AppImage-Version=1.2.5 Categories=Utility; X-AppImage-BuildId=1PC2ueImPs4Zn4uEa4BtOeUPkq6 X-Desktop-File-Install-Version=0.23 X-AppImage-Comment=Generated by /tmp/.mount_AnotheWdGIop/AppRun TryExec=/home/abc/snap/Another.Redis.Desktop.Manager.1.2.5.AppImage 注意Exec 引号的内容 要与 TryExec的内容一致
2019年09月05日
772 阅读
0 评论
0 点赞
2019-07-22
设置硬盘为引导硬盘
场景:笔记本有多块硬盘,系统A装在 A硬盘 系统B装在B 硬盘,引导盘为A 然而某一天 A盘不工作了,或者说要撤掉,而B盘可以继续引导系统,这个时候如果B盘没有做引导设置的话,B系统是无法工作的,那么在撤掉 A之前 把 B的引导给加上 就好了方法1:#grub #Grub>root(hd1,0) ## (hd1,0)表示安装到系统识别的第一块硬盘中的第一个分区。 #Grub>setup(hd1) #Grub>quit 方法2: #grub-install /dev/hdb #系统中包含有独立的/boot分区时否则用下面的命令 #grub-install --root-directory=/boot/dev/hdb #系统中没有独立的/boot分区时 ~#update-grub grub-install /dev/hdb 和 grub-install --root-directory=/boot/dev/hdb这两条命令根据自身情况二选一执行
2019年07月22日
1,760 阅读
1 评论
0 点赞
2019-07-17
linux 硬盘健康检查
先安装 smartmontoolssudo apt install smartmontools sudo smartctl -A /dev/sdb 执行结果:smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.2.0-8-generic] (local build)Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF READ SMART DATA SECTION ===SMART Attributes Data Structure revision number: 16Vendor Specific SMART Attributes with Thresholds:ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0 2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0 3 Spin_Up_Time 0x0007 233 233 033 Pre-fail Always - 1 4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 876 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0 7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0 8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0 9 Power_On_Hours 0x0012 098 098 000 Old_age Always - 898 10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 854 191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 30933084 193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 22510 194 Temperature_Celsius 0x0002 146 146 000 Old_age Always - 41 (Min/Max 7/50) 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0 197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 13351 223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0
2019年07月17日
761 阅读
0 评论
0 点赞
2019-07-01
巨大的网站访问日志应该怎么删除才能呢个及时释放存储空间
小编用的是 nginx 的服务,访问日志要不了几天就会把 日志盘给 塞满了之前的处理方式:echo ''>abc.log; 命令处理完立刻把容量给腾出来了,直到昨天晚上,心血来潮 换了一种处理方式彻底迷茫了,用了 rm 来清除日志文件,该删的 都删除了然后容量报警却还是一直响个不停,整个人都是蒙的, 明明都挨个的删除 ,怎么还会报警呢?然到我没有直接删除,而是放到了垃圾桶?这是第一个疑问,随后 我 用 df 和du 来验证我的猜测df 之后 磁盘使用率还是在 90% 难道我的猜测是正确的么? du 之后 占用空间 2% Why?what? 剩余 88%的空间哪里去了? 立刻启用破案模式,用来几个关键词 全网扫描,得到了一个有价值的信息。说是文件的打开句柄没有被关闭,即时删除了文件容量会一直占用,直到相关进程执行完销毁后才会被释放,到这里 突然明白了,破案了。原因:因为相关文件一直被 nginx 占用着,所以只要 杀死 nginx 的进程 空间就恢复了,所以还是 用 echo ''>abc.log好
2019年07月01日
662 阅读
0 评论
0 点赞
2019-02-13
nginx server_name 配置的疑惑
在我的映像里 配置1 server { listen 80; root /dir/newp; index index.php index.html index.htm; server_name a.com b.com c.com ; *** } 与配置2server { *** server_name a.com; *** } server { *** server_name b.com ; *** } server { *** server_name c.com ; *** } 是一样的,只是 配置1更加便捷,但是实际使用过程中发现并不是这样的,事实证明 配置1中 访问 b.com c.com 都会302到a.com配置2则和预想的一样.
2019年02月13日
943 阅读
0 评论
0 点赞
1
...
8
9
10
...
18