东屿 - 关于信息技术和日常生活体验的记录
1.先去官网下载:https://www.jetbrains.com/idea/download/?section=windows#section=windowsIDEA2.用批处理激活jetbrains.zip
Centos8忘记mysql5.7.44root密码的解决办法许久不用mysql把root密码给忘记了,整理下已做备用。编辑 /etc/my.cnf ,在末尾出增加 skip-grant-tables重启mysql服务systemctl restart mysqld登录mysql,并重置root密码为空mysql -u root登录以后use mysql; update user set authentication_string='' where User='root'; flush privileges; quit; 4.将 /etc/my.cnf 中 的 skip-grant-tables 去掉;5.再次重启mysql服务6.再次登录mysql,登录密码为空,然后修改root密码use mysql; ALTER user 'root'@'%' IDENTIFIED WITH mysql_native_password BY '设置密码'; flush privileges;
关于S805的刷机和armbian系统的基本调试就略过不提了,网上大把的教程。我因之前装了网心云挂过硬盘,USB设备拆除以后就一直报错,手工修改 /etc/fstab 把硬盘注释掉就可以开始正文:源更新apt update2.安装cups服务apt install cups 安装完毕后,还需要修改一些cups的参数。输入以下命令进入cups的参数配置:nano /etc/cups/cupsd.conf 修改“localhost”改成“0.0.0.0”,Browsing no改成Browsing on,并在三个地方分别添加Allow all,具体如下Listen 0.0.0.0:631 Listen /var/run/cups/cups.sock # Show shared printers on the local network. Browsing On BrowseLocalProtocols dnssd # Default authentication type, when authentication is required... DefaultAuthType
查询有效库位#货位信息 #成品库区 原材料库区 #原材料巷道1 成品1号巷道 set @kuqu:="原材料库区"; set @xiangdao:= "原材料巷道4" ; select ba.alleyName as "巷道名称",bl.locationCode,bl.csFloor as"层数",bl.locationName from base_location bl,base_alley ba where bl.warehouseId ='cbab5bf356134711a94d4b95aac80f2f' #成品库区= 35d100c4545541a895f97825dfb95f4a 原材料= 9b2675fc97004da69d1e4f8bcf1a4e8a and bl.whareaId =(select bw.whareaId from base_wharea bw where bw.whareaName = @kuqu) #货位状态1:无货 2:有货 3:入库分配 4:出库分配 5:入
使用date命令修改系统时间date -s "YYYY-MM-DD HH:MM:SS"示例 date -s "2022-01-01 10:30:30"使用timedatectl命令修改系统时间timedatectl set-time "YYYY-MM-DD HH:MM:SS"示例:timedatectl set-time "2024-07-28 08:42:00"3.查看硬件时间;hwclock --show 4.修改硬件时间;hwclock --set --date "2023-10-28 18:33:00" 3.同步时间,从硬件到操作系统。hwclock --hctosys 4.保存时钟;clock -w 或者 hwclock -w 5.重启,查看是否生效。reboot
公里数为107800,保养时间为:5月9号。
在Debian系统上安装NFS服务,你需要执行以下步骤:安装NFS内核服务器sudo apt updatesudo apt install nfs-kernel-server创建共享目录sudo mkdir -p /srv/nfs/sharesudo chown nobody:nogroup /srv/nfs/share配置共享权限。编辑 /etc/exports 文件,并添加共享目录的配置。sudo nano /etc/exports添加以下行:(*代表不限制IP)/data *(rw,sync,no_subtree_check)替换 <*> 为客户端的IP地址,或使用通配符来允许多个客户端。更新修改的配置 sudo exportfs -rav启动NFS服务sudo systemctl start nfs-kernel-server --作为自启动项目sudo systemctl enable nfs-kernel-server使用showmount -e可查看当前NFS服务器的加载情况。showmount -e配置防火墙(如果需要)允许NFS通信sudo ufw all
安装 Docker + Compose。下面给你几种 可行方案,任选其一:✅ 方案 A:使用 Debian 官方自带的 Docker(推荐,无需外网)Debian 自带的包名不是 docker-ce,而是 docker.io。安装命令:sudo apt update sudo apt install -y docker.ioDebian 自带 compose 插件名是:sudo apt install -y docker-compose现在 check:docker --version docker-compose --version如果看到版本号,就可以直接使用:docker-compose up -d✅ 方案 B:使用 Podman + Podman Compose(也是 Docker API 兼容)如果 docker.io 版本太旧,你可以安装 Podman(内网常用):sudo apt update sudo apt install -y podman podman-compose使用方式基本一致:podman-compose up -d✅ 方案 C:从可上网机器下载 deb
RonTon
挨踢大叔