Linux DB29.5 开机自启动

本文提供了一套详细的DB2服务配置指南,包括文件准备、权限设置和服务启动等步骤,适用于希望自行部署和管理DB2服务的技术人员。

1.文件准备

在下载附件DB2_v95scripts.zip ,按照以下命令展开,拷贝。


# unzip db2_v95scripts.zip

# cp db2_v95scripts/IBMdb2 /etc/init.d

# cp db2_v95scripts/DB2admin /etc/init.d

2.service登录


# chmod +x /etc/init.d/IBMdb2

# chmod +x /etc/init.d/DB2admin

# chkconfig --add IBMdb2

# chkconfig --add DB2admin

3.service动作取人


# service IBMdb2 start

# service DB2admin start



root@rk3588-ubuntu:~# fdisk -l Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mmcblk0: 28.93 GiB, 31037849600 bytes, 60620800 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 15370000-0000-406D-8000-10D3000072DB Device Start End Sectors Size Type /dev/mmcblk0p1 16384 24575 8192 4M unknown /dev/mmcblk0p2 24576 32767 8192 4M unknown /dev/mmcblk0p3 32768 163839 131072 64M unknown /dev/mmcblk0p4 163840 425983 262144 128M unknown /dev/mmcblk0p5 425984 491519 65536 32M unknown /dev/mmcblk0p6 491520 29851647 29360128 14G unknown /dev/mmcblk0p7 29851648 30113791 262144 128M unknown /dev/mmcblk0p8 30113792 60620766 30506975 14.6G unknown Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mmcblk1: 29.74 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xca65b55b Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 434176 62331903 61897728 29.5G 7 HPFS/NTFS/exFAT sudo chown $USER:$USER /挂载点,mmcblk1p1是这个SD卡,挂载点该怎么写
最新发布
08-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值