zextor@thk-nas:/$ cat /proc/cpuinfo | grep "model name" | head -1
model name : Intel(R) Celeron(R) N5105 @ 2.00GHz
zextor@thk-nas:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
zextor@thk-nas:/$ free -m
total used free shared buff/cache available
Mem: 31850 331 29874 1 1645 31120
Swap: 8191 0 8191
zextor@thk-nas:/$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 62M 1 loop /snap/core20/1587
loop1 7:1 0 79.9M 1 loop /snap/lxd/22923
loop3 7:3 0 49.8M 1 loop /snap/snapd/17950
loop4 7:4 0 63.3M 1 loop /snap/core20/1778
loop5 7:5 0 111.9M 1 loop /snap/lxd/24322
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /boot/efi
├─nvme0n1p2 259:2 0 2G 0 part /boot
└─nvme0n1p3 259:3 0 950.8G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 100G 0 lvm /
zextor@thk-nas:/$ sudo fdisk -l
Disk /dev/loop0: 61.96 MiB, 64970752 bytes, 126896 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/loop1: 79.95 MiB, 83832832 bytes, 163736 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/loop3: 49.83 MiB, 52248576 bytes, 102048 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/loop4: 63.27 MiB, 66347008 bytes, 129584 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/loop5: 111.95 MiB, 117387264 bytes, 229272 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/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: TS1TMTE220S
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: B9E38FE3-ED2B-4105-A0AD-F8B0C8681FF1
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2203647 2201600 1G EFI System
/dev/nvme0n1p2 2203648 6397951 4194304 2G Linux filesystem
/dev/nvme0n1p3 6397952 2000406527 1994008576 950.8G Linux filesystem
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 100 GiB, 107374182400 bytes, 209715200 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
zextor@thk-nas:/$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 1.6M 3.2G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 98G 11G 82G 12% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p2 2.0G 128M 1.7G 7% /boot
/dev/nvme0n1p1 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs 3.2G 4.0K 3.2G 1% /run/user/1000
zextor@thk-nas:/$ who -b
system boot 2023-01-30 20:34
일단 아래의 글따라 차근 차근
https://blog.lael.be/post/11072
Ubuntu 22.04 LTS 에서 웹서버(Apache + PHP + MySQL) 구성하기
이 글을 통해 Ubuntu 22.04 LTS 운영체제에서 APM 웹서버를 구축하는 방법에 대해 알아보도록 하겠습니다. 주의 : 이 글을 통해 설치되는 PHP 8.1 은 구문이 많이 엄격합니다! 당신의 소프트웨어가 PHP 8.
blog.lael.be
zextor@raspberrypi:~ $ sudo blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="17B6-FC00" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="72113b9e-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="b101bb80-3338-4b94-a775-b3844f8f2aa8" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="72113b9e-02"
/dev/sdb: UUID="57ce5b36-af06-41e0-b837-1df00418ed45" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sdc: UUID="d6b0145d-d8bc-4848-a562-a5b185b67669" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sda: UUID="f13c8051-caf0-4025-bb4b-ba7ea2b7f18c" BLOCK_SIZE="4096" TYPE="ext4"
zextor@raspberrypi:~ $ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk /storage/backup/trunk
sdb 8:16 0 931.5G 0 disk /storage
sdc 8:32 0 1.8T 0 disk /storage/web/data
mmcblk0 179:0 0 30G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 29.8G 0 part /
zextor@raspberrypi:~ $ cat /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=72113b9e-01 /boot vfat defaults,flush 0 2
PARTUUID=72113b9e-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
UUID=57ce5b36-af06-41e0-b837-1df00418ed45 /storage ext4 defaults 0 0
UUID=d6b0145d-d8bc-4848-a562-a5b185b67669 /storage/web/data ext4 defaults 0 0
UUID=f13c8051-caf0-4025-bb4b-ba7ea2b7f18c /storage/backup/trunk ext4 defaults 0 0
mysqldump -uroot -pXXX nas_schema > /storage/web/_/nas_schema.sql
rsync -avzh --delete --exclude=data --exclude=music /storage/web /storage/backup/trunk
465 sudo apt install libmysqlclient-dev -y
466 sudo pip install mysqlclient
최근 댓글