分类 编程 下的文章

下午安装 cockpit 时,使用 yum 工具的时候哦,出现如下信息:

This system is not registered with an entitlement server. You can use subscription-manager to register.

尽管不影响centos 的使用,安装软件也没有任何的影响。但是也是想知道其中的原因;下面是在国外论坛上对于centos 的讨论。

问题:

Installing Cockpit on CentOS7 adds the following nag/notice - seen every time you use yum update etc.:

"This system is not registered with Subscription Management. You can use subscription-manager to register"

Removing the cockpit-subscriptions - breaks the web interface fuctionality - You can log in but then you get an error page.

Does anyone have a fix for this?
Obviously, this is designed for RHEL but, seems the CentOS package shouldn't have this "Feature".

- 阅读剩余部分 -

nohup java -jar do_iptable.jar &

运行jar会提示:nohup: 忽略输入并把输出追加到"nohup.out"

nohup java -jar do_iptable.jar >/dev/null &

运行jar会提示:nohup: 忽略输入重定向错误到标准输出端

解决方法

nohup java -jar do_iptable.jar >/dev/null 2>&1 &

保存运行日志

nohup java -jar do_iptable.jar > /text.txt 2>&1 &

text.txt(自定义):将日志写入到text.txt文件中

在 Linux 中如何查看分区的文件系统类型,下面总结几种查看分区文件系统类型的方法。

1、df -T 命令查看

这个是最简单的命令,文件系统类型在Type列输出。只可以查看已经挂载的分区和文件系统类型。如下所示:

[root@mylnx008 ~]# df -T /dev/sdb
Filesystem     Type 1K-blocks    Used Available Use% Mounted on
/dev/sdb       xfs  315467264 4356404 311110860   2% /mysql
[root@mylnx008 ~]# df -T
Filesystem     Type     1K-blocks     Used Available Use% Mounted on
/dev/sda2      xfs       30929148 22455300   8473848  73% /
devtmpfs       devtmpfs   1746644        0   1746644   0% /dev
tmpfs          tmpfs      1757220        0   1757220   0% /dev/shm
tmpfs          tmpfs      1757220    24868   1732352   2% /run
tmpfs          tmpfs      1757220        0   1757220   0% /sys/fs/cgroup
/dev/sda1      xfs         508580    63024    445556  13% /boot
/dev/sdc1      ext4     139203080  8699072 123409840   7% /mnt/resource
tmpfs          tmpfs       351448        0    351448   0% /run/user/1000
/dev/sdb       xfs      315467264  4356404 311110860   2% /mysql

2、parted -l命令查看

如下所示,parted -l 命令会输出文件系统类型(File system), 其中参数l表示列出所有设备的分区信息。

[root@DB-Server ~]# parted -l
Model: ATA ST500DM002-1BD14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
1      32.3kB  107MB  107MB  primary  ext3         boot
2      107MB   500GB  500GB  primary               lvm

3、blkid命令查看

查看已格式化分区的UUID和文件系统。使用blkid可以输出分区或分区的文件系统类型,查看TYPE字段输出。

- 阅读剩余部分 -

当用cp命令copy一个软链接时,copy的是软链接所对应的内容,而不是它本身。
如:

echo "1234567890" > test.txt
ln -s test.txt test2.txt
cp test2.txt test3.txt

test3.txt 就是 test.txt,而不是 test2.txt。

要直接cp软链就需要加-d参数
如:

cp -d test2.txt test3.txt

方法一:直接使用 Ctrl + Alt + H 快捷键显示,按一次显示,再按则隐藏

方法二:在打开的会话中,点击右下角已隐藏的文件数量显示

方法三:

1.在会话界面,点击传输选项–配置

2.选择面板–勾选显示隐藏文件

以点号开头的隐藏文件或文件夹都是浅黑色显示

下载地址:

https://winscp.net

Microsoft Visual C++ 微软运行库组件

前言

Microsoft Visual C++ Redistributable(简称MSVC,VB/VC,系统运行库)是Windows操作系统应用程序的基础类型库组件。
Microsoft Visual C++ 2019为创建基于微软 Windows 和基于 Microsoft .NET 的应用程序提供了强大而灵活的开发环境支持。
Visual C++ Redistributable 用于需要运行C++使用 Visual Studio 2019 开发的应用程序,并动态链接到库。
您可以使用这些在系统运行此类应用程序,即使当前系统没有安装 Visual Studio 2019。
它将安装这些运行库组件:C Runtime (CRT), Standard C++, MFC, C++ AMP, OpenMP。

Microsoft Visual C++ 2022 官方版

- 阅读剩余部分 -

介绍

BosForTypecho 插件基于 AliOssForTypecho 开发。

为保证正确记录日志,请赋予以下目录写权限:/usr/uploads/,并定期查阅日志处理事件错误。开启SELinux的用户注意合理配置权限。

当文件成功上传到BOS,但保存到服务器失败时,总体进度会显示失败。在BOS中的文件不会自动删除,请根据错误日志自行处理。

运行在云应用引擎上的站点 “在服务器保留备份” 选项无效,且无法记录日志。

旧版本Typecho存在无法上传大写扩展名文件的bug,请更新Typecho程序。

下载地址

https://gitee.com/jeaxnew/bos-for-typecho

0.png
1.png

解决方法有两种:

  1. 修改一下 @babel/runtime/helpers/typeof.js 文件,内容修改为代码片段的。目的是添加"@babel/helpers - typeof";这一句在代码中,让babel识别出这是一个特殊的helper文件,不对它进行处理。
  2. 参考配置说明 https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html 修改一下 babelSetting 的 outputPath 成其他路径。

- 阅读剩余部分 -

问题

每当使用微信开发者工具预览小程序时,均会在控制台(Console)看到警告(Warn)信息:Now you can provide attr wx:key for a wx:for to improve performance

原因

uniapp的v-for写法导致。

修改前的写法如下:

<view class="comment-content" v-for="(item,index) in commentList">
    <!-- 评论用户头像 -->
    <view class="comment-content-left">
        <image class="comment-content-headImage" :src="item.formHead" mode="center"></image>
    </view>
    <view class="comment-content-right">
        <!-- 评论用户名 -->
        <view class="comment-content-name">{{item.formNick}}</view>
        <!-- 评论内容 -->
        <view class="comment-content-text">{{item.content}}</view>
        <!-- 评论日期 -->
        <view class="comment-content-time">{{item.commentTime}}</view>
    </view>
</view>

解决方法

v-for 搭配 key 使用。

- 阅读剩余部分 -