主頁 > 作業系統 > 移植4.1內核時遇到devtmpfs: error mounting -2這樣的問題

移植4.1內核時遇到devtmpfs: error mounting -2這樣的問題

2020-09-15 11:31:18 作業系統

具體是這樣的,用的是飛凌的開發板:
芯片 iMX6UL, 
NAND flash 256M
DDR 256M
設備樹 imx6ul-14x14-evk-gpmi-7.dtb 

原有的u-boot+zImage+logo+dtbs+rootfs是沒問題的,但是內核是3.14的。

現在我想用4.1的內核來替換3.14的內核,
設備樹沒有變(因為開發板本身沒變),
uboot沒有變,
logo檔案沒有變,
檔案系統沒有變,
然后在4.1內核中編譯yaffs2檔案系統,然后通過 mfgtools工具燒錄進去。
然后重新上電啟動出現: devtmpfs: error mounting -2 這個錯誤。(在網上搜了好多資料,解決不了)

詳細列印資訊如下:

U-Boot 2015.04-g3989e3c (Dec 14 2017 - 19:04:37)
                                                
CPU:   Freescale i.MX6UL rev1.1 at 396 MHz
CPU:   Temperature 39 C                   
Reset cause: POR       
Board: MX6UL 14x14 EVK
I2C:   ready          
DRAM:  256 MiB
NAND:  256 MiB
MMC:   FSL_SDHC: 0
*** Warning - bad CRC, using default environment
                                                
Display: TFT70AB (800x480)
Video: 800x480x24         
                 
NAND read: device 0 offset 0x400000, size 0x80000
524288 bytes read: OK                           
                      
NAND read: device 0 offset 0x400000, size 0x80000
524288 bytes read: OK                           
display bmp cfb_console.c
In:    serial             
Out:   serial
Err:   serial
Net:   FEC0  
Error: FEC0 address not set.
                            
Normal Boot
Hit any key to stop autoboot:  0 
nand boot..........              
                   
NAND read: device 0 offset 0xa00000, size 0x800000
8388608 bytes read: OK                           
                       
NAND read: device 0 offset 0x700000, size 0x40000
262144 bytes read: OK                           
Kernel image @ 0x80800000 [ 0x000000 - 0x55e8f8 ]
## Flattened Device Tree blob at 83000000        
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300c7c5
                                                       
Starting kernel ...
                   
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.15 (root@Ding) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #2 SMP PREEMPT Fri Aug 10 20:14:33 CST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
[    0.000000] cma: Reserved 64 MiB at 0x8c000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 12 pages/cpu @8bdb1000 s16768 r8192 d24192 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttymxc0,115200 cma=64M root=/dev/mtdblock5 rootfstype=yaffs2,calibrate=y
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 183512K/262144K available (6957K kernel code, 319K rwdata, 2364K rodata, 404K init, 424K bss, 13096K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0x90800000 - 0xff000000   (1768 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x90000000   ( 256 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80922a30   (9323 kB)
[    0.000000]       .init : 0x80923000 - 0x80988000   ( 404 kB)
[    0.000000]       .data : 0x80988000 - 0x809d7e80   ( 320 kB)
[    0.000000]        .bss : 0x809da000 - 0x80a44368   ( 425 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm/mach-imx/gpc.c:608 imx_gpc_check_dt+0x4c/0x84()
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.1.15 #2
[    0.000000] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[    0.000000] [<80016b64>] (unwind_backtrace) from [<80012878>] (show_stack+0x10/0x14)
[    0.000000] [<80012878>] (show_stack) from [<8069511c>] (dump_stack+0x74/0xd0)
[    0.000000] [<8069511c>] (dump_stack) from [<80038e54>] (warn_slowpath_common+0x78/0xb0)
[    0.000000] [<80038e54>] (warn_slowpath_common) from [<80038ea8>] (warn_slowpath_null+0x1c/0x24)
[    0.000000] [<80038ea8>] (warn_slowpath_null) from [<809310ec>] (imx_gpc_check_dt+0x4c/0x84)
[    0.000000] [<809310ec>] (imx_gpc_check_dt) from [<80944624>] (imx6ul_init_irq+0x8/0x18)
[    0.000000] [<80944624>] (imx6ul_init_irq) from [<80926368>] (init_IRQ+0x28/0x80)
[    0.000000] [<80926368>] (init_IRQ) from [<80923aa8>] (start_kernel+0x21c/0x3b0)
[    0.000000] [<80923aa8>] (start_kernel) from [<8000807c>] (0x8000807c)
[    0.000000] ---[ end trace cb88537fdc8fa200 ]---
[    0.000000] Outdated DT detected, suspend/resume will NOT work
[    0.000000] mxc_clocksource_init 24000000
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000055] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.002800] Console: colour dummy device 80x30
[    0.002841] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002876] pid_max: default: 32768 minimum: 301
[    0.003097] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003124] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.004488] CPU: Testing write buffer coherency: ok
[    0.004988] /cpus/cpu@0 missing clock-frequency property
[    0.005031] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005138] Setting up static identity map for 0x80008280 - 0x800082f0
[    0.041232] Brought up 1 CPUs
[    0.041268] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.041288] CPU: All CPU(s) started in SVC mode.
[    0.042375] devtmpfs: initialized
[    0.060255] device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
[    0.065649] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.066522] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.072084] pinctrl core: initialized pinctrl subsystem
[    0.074835] NET: Registered protocol family 16
[    0.093211] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.120904] cpuidle: using governor ladder
[    0.150971] cpuidle: using governor menu
[    0.199763] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.199801] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.204369] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.259258] mxs-dma 1804000.dma-apbh: initialized
[    0.265115] SCSI subsystem initialized
[    0.266509] usbcore: registered new interface driver usbfs
[    0.266698] usbcore: registered new interface driver hub
[    0.266922] usbcore: registered new device driver usb
[    0.270517] i2c i2c-0: IMX I2C adapter registered
[    0.270563] i2c i2c-0: can't use DMA
[    0.272203] i2c i2c-1: IMX I2C adapter registered
[    0.272247] i2c i2c-1: can't use DMA
[    0.272556] Linux video capture interface: v2.00
[    0.272765] pps_core: LinuxPPS API ver. 1 registered
[    0.272786] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.272864] PTP clock support registered
[    0.275797] Advanced Linux Sound Architecture Driver Initialized.
[    0.280005] Switched to clocksource mxc_timer1
[    0.306744] NET: Registered protocol family 2
[    0.308346] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.308443] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.308536] TCP: Hash tables configured (established 2048 bind 2048)
[    0.308675] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.308737] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.309140] NET: Registered protocol family 1
[    0.309865] RPC: Registered named UNIX socket transport module.
[    0.309898] RPC: Registered udp transport module.
[    0.309916] RPC: Registered tcp transport module.
[    0.309934] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.313434] imx rpmsg driver is registered.
[    0.315686] Bus freq driver module loaded
[    0.317895] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.335498] VFS: Disk quotas dquot_6.6.0
[    0.335992] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341960] NFS: Registering the id_resolver key type
[    0.342063] Key type id_resolver registered
[    0.342084] Key type id_legacy registered
[    0.342304] jffs2: version 2.2. (NAND) 2001-2006 Red Hat, Inc.
[    0.344206] fuse init (API version 7.23)
[    0.349059] io scheduler noop registered
[    0.349103] io scheduler deadline registered
[    0.349220] io scheduler cfq registered (default)
[    0.350669] imx-weim 21b8000.weim: Driver registered.
[    0.357245] backlight supply power not found, using dummy regulator
[    0.362492] 21c8000.lcdif supply lcd not found, using dummy regulator
[    0.471662] mxsfb 21c8000.lcdif: failed to find mxc display driver 
[    0.490463] Console: switching to colour frame buffer device 100x30
[    0.504982] mxsfb 21c8000.lcdif: initialized
[    0.512362] imx-sdma 20ec000.sdma: no event needs to be remapped

uj5u.com熱心網友回復:

上面的日志因為字數原因沒打完,這里還有:
[    0.342304] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[    0.344206] fuse init (API version 7.23)
[    0.349059] io scheduler noop registered
[    0.349103] io scheduler deadline registered
[    0.349220] io scheduler cfq registered (default)
[    0.350669] imx-weim 21b8000.weim: Driver registered.
[    0.357245] backlight supply power not found, using dummy regulator
[    0.362492] 21c8000.lcdif supply lcd not found, using dummy regulator
[    0.471662] mxsfb 21c8000.lcdif: failed to find mxc display driver 
[    0.490463] Console: switching to colour frame buffer device 100x30
[    0.504982] mxsfb 21c8000.lcdif: initialized
[    0.512362] imx-sdma 20ec000.sdma: no event needs to be remapped
[    0.512582] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.520332] imx-sdma 20ec000.sdma: initialized
[    0.522715] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[    1.268610] console [ttymxc0] enabled
[    1.274319] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 232, base_baud = 5000000) is a IMX
[    1.284562] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 233, base_baud = 5000000) is a IMX
[    1.296247] imx sema4 driver is registered.
[    1.300766] [drm] Initialized drm 1.1.0 20060810
[    1.306654] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    1.339597] brd: module loaded
[    1.356305] loop: module loaded
[    1.376686] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    1.383148] nand: Micron MT29F2G08ABAEAWP
[    1.387197] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.395691] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[    1.402791] Scanning device for bad blocks
[    1.597331] 6 ofpart partitions found on MTD device gpmi-nand
[    1.603171] Creating 6 MTD partitions on "gpmi-nand":
[    1.608265] 0x000000000000-0x000000400000 : "boot"
[    1.615787] 0x000000400000-0x000000600000 : "logo"
[    1.623299] 0x000000600000-0x000000700000 : "ENV"
[    1.630597] 0x000000700000-0x000000a00000 : "DTB"
[    1.637845] 0x000000a00000-0x000001200000 : "kernel"
[    1.645466] 0x000001200000-0x000010000000 : "rootfs"
[    1.653605] gpmi-nand 1806000.gpmi-nand: driver registered.
[    1.662896] 20b4000.ethernet supply phy not found, using dummy regulator
[    1.671087] pps pps0: new PPS source ptp0
[    1.676616] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    1.686744] fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 3a:6a:02:19:ba:91
[    1.698171] libphy: fec_enet_mii_bus: probed
[    1.706464] fec 20b4000.ethernet eth0: registered PHC device 0
[    1.714259] 2188000.ethernet supply phy not found, using dummy regulator
[    1.722397] pps pps1: new PPS source ptp1
[    1.727982] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    1.738319] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 26:e8:33:c8:76:da
[    1.751241] fec 2188000.ethernet eth1: registered PHC device 1
[    1.758978] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.765787] ehci-mxc: Freescale On-Chip EHCI Host driver
[    1.771734] usbcore: registered new interface driver usb-storage
[    1.780936] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[    1.797233] 2184200.usb supply vbus not found, using dummy regulator
[    1.807718] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.812789] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    1.840147] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.847947] hub 1-0:1.0: USB hub found
[    1.852027] hub 1-0:1.0: 1 port detected
[    1.858395] Mass Storage Function, version: 2009/09/11
[    1.863783] LUN: removable file: (no medium)
[    1.868141] no file given for LUN0
[    1.871752] g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22
[    1.879199] mousedev: PS/2 mouse device common for all mice
[    1.888279] input: iMX6UL TouchScreen Controller as /devices/platform/soc/2100000.aips-bus/2040000.tsc/input/input0
[    1.902304] snvs_rtc 20cc034.snvs-rtc-lp: snvs rtc: you use old dts file, please update it
[    1.911974] snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
[    1.920738] i2c /dev entries driver
[    1.926992] IR NEC protocol handler initialized
[    1.931687] IR RC5(x/sz) protocol handler initialized
[    1.936786] IR RC6 protocol handler initialized
[    1.941408] IR JVC protocol handler initialized
[    1.945979] IR Sony protocol handler initialized
[    1.950931] IR SANYO protocol handler initialized
[    1.955685] IR Sharp protocol handler initialized
[    1.960495] IR MCE Keyboard/mouse protocol handler initialized
[    1.966369] IR XMP protocol handler initialized
[    1.974155] pxp-v4l2 pxp_v4l2: initialized
[    1.981380] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.988155] sdhci: Secure Digital Host Controller Interface driver
[    1.994475] sdhci: Copyright(c) Pierre Ossman
[    1.998887] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.007103] /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
[    2.016573] sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
[    2.071147] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    2.096064] usbcore: registered new interface driver usbhid
[    2.103871] usbhid: USB HID core driver
[    2.137227] NET: Registered protocol family 10
[    2.144623] sit: IPv6 over IPv4 tunneling driver
[    2.153499] NET: Registered protocol family 17
[    2.158255] Key type dns_resolver registered
[    2.163247] Failed to disable 696MHz OPP
[    2.170135] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    2.180731] Registering SWP/SWPB emulation handler
[    2.224390] snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    2.255705] vref-3v3: disabling
[    2.258901] usb_otg1_vbus: disabling
[    2.262603] can-3v3: disabling
[    2.266009] ALSA device list:
[    2.268997]   No soundcards found.
[    2.276660] yaffs: dev is 32505861 name is "mtdblock5" ro
[    2.287458] yaffs: passed flags ""
[    2.326374] hub 1-1:1.0: USB hub found
[    2.332036] hub 1-1:1.0: 4 ports detected
[    2.395719] random: nonblocking pool is initialized
[    2.620055] usb 1-1.4: new high-speed USB device number 3 using ci_hdrc
[    9.097586] VFS: Mounted root (yaffs2 filesystem) readonly on device 31:5.
[    9.104587] devtmpfs: error mounting -2
[    9.109299] Freeing unused kernel memory: 404K (80923000 - 80988000)
[    9.115838] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    9.128991] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

uj5u.com熱心網友回復:

飛凌6410遇到同樣問題,同求答案

uj5u.com熱心網友回復:

我最先看到,作業系統做中斷初始化發生錯誤。

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/46227.html

標籤:內核源代碼研究區

上一篇:(高分求助)Linux啟動時沒有加載/dev/sdb1磁區,啟動之后執行partprobe可以看見/dev/sdb1磁區

下一篇:內核 netlink 從用戶層接收到 24~27 個字符的字串時,會在字串末尾添加未知字符,使字串長度變為28???

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • CA和證書

    1、在 CentOS7 中使用 gpg 創建 RSA 非對稱密鑰對 gpg --gen-key #Centos上生成公鑰/密鑰對(存放在家目錄.gnupg/) 2、將 CentOS7 匯出的公鑰,拷貝到 CentOS8 中,在 CentOS8 中使用 CentOS7 的公鑰加密一個檔案 gpg -a ......

    uj5u.com 2020-09-10 00:09:53 more
  • Kubernetes K8S之資源控制器Job和CronJob詳解

    Kubernetes的資源控制器Job和CronJob詳解與示例 ......

    uj5u.com 2020-09-10 00:10:45 more
  • VMware下安裝CentOS

    VMware下安裝CentOS 一、軟硬體準備 1 Centos鏡像準備 1.1 CentOS鏡像下載地址 下載地址 1.2 CentOS鏡像下載程序 點擊下載地址進入如下圖的網站,選擇需要下載的版本,這里選擇的是Centos8,點擊如圖所示。 決定選擇Centos8后,選擇想要的鏡像源進行下載,此 ......

    uj5u.com 2020-09-10 00:12:10 more
  • 如何使用Grep命令查找多個字串

    如何使用Grep 命令查找多個字串 大家好,我是良許! 今天向大家介紹一個非常有用的技巧,那就是使用 grep 命令查找多個字串。 簡單介紹一下,grep 命令可以理解為是一個功能強大的命令列工具,可以用它在一個或多個輸入檔案中搜索與正則運算式相匹配的文本,然后再將每個匹配的文本用標準輸出的格式 ......

    uj5u.com 2020-09-10 00:12:28 more
  • git配置http代理

    git配置http代理 經常遇到克隆 github 慢的問題,這里記錄一下幾種配置 git 代理的方法,解決 clone github 過慢。 目錄 git配置代理 git單獨配置github代理 git配置全域代理 配置終端環境變數 git配置代理 主要使用 git config 命令 git單獨 ......

    uj5u.com 2020-09-10 00:12:33 more
  • Linux npm install 裝包時提示Error EACCES permission denied解

    npm install 裝包時提示Error EACCES permission denied解決辦法 ......

    uj5u.com 2020-09-10 00:12:53 more
  • Centos 7下安裝nginx,使用yum install nginx,提示沒有可用的軟體包

    Centos 7下安裝nginx,使用yum install nginx,提示沒有可用的軟體包。 18 (flaskApi) [root@67 flaskDemo]# yum -y install nginx 19 已加載插件:fastestmirror, langpacks 20 Loading ......

    uj5u.com 2020-09-10 00:13:13 more
  • Linux查看服務器暴力破解ssh IP

    在公網的服務器上經常遇到別人爆破你服務器的22埠,用來挖礦或者干其他嘿嘿嘿的事情~ 這種情況下正確的做法是: 修改默認ssh的22埠 使用設定密鑰登錄或者白名單ip登錄 建議服務器密碼為復雜密碼 創建普通用戶登錄服務器(root權限過大) 建立堡壘機,實作統一管理服務器 統計爆破IP [root ......

    uj5u.com 2020-09-10 00:13:17 more
  • CentOS 7系統常見快捷鍵操作方式

    Linux系統中一些常見的快捷方式,可有效提高操作效率,在某些時刻也能避免操作失誤帶來的問題。 ......

    uj5u.com 2020-09-10 00:13:31 more
  • CentOS 7作業系統目錄結構介紹

    作業系統存在著大量的資料檔案資訊,相應檔案資訊會存在于系統相應目錄中,為了更好的管理資料資訊,會將系統進行一些目錄規劃,不同目錄存放不同的資源。 ......

    uj5u.com 2020-09-10 00:13:35 more
最新发布
  • vim的常用命令

    Vim的6種基本模式 1. 普通模式在普通模式中,用的編輯器命令,比如移動游標,洗掉文本等等。這也是Vim啟動后的默認模式。這正好和許多新用戶期待的操作方式相反(大多數編輯器默認模式為插入模式)。 2. 插入模式在這個模式中,大多數按鍵都會向文本緩沖中插入文本。大多數新用戶希望文本編輯器編輯程序中一 ......

    uj5u.com 2023-04-20 08:43:21 more
  • vim的常用命令

    Vim的6種基本模式 1. 普通模式在普通模式中,用的編輯器命令,比如移動游標,洗掉文本等等。這也是Vim啟動后的默認模式。這正好和許多新用戶期待的操作方式相反(大多數編輯器默認模式為插入模式)。 2. 插入模式在這個模式中,大多數按鍵都會向文本緩沖中插入文本。大多數新用戶希望文本編輯器編輯程序中一 ......

    uj5u.com 2023-04-20 08:42:36 more
  • docker學習

    ###Docker概述 真實專案部署環境可能非常復雜,傳統發布專案一個只需要一個jar包,運行環境需要單獨部署。而通過Docker可將jar包和相關環境(如jdk,redis,Hadoop...)等打包到docker鏡像里,將鏡像發布到Docker倉庫,部署時下載發布的鏡像,直接運行發布的鏡像即可。 ......

    uj5u.com 2023-04-19 09:26:53 more
  • 設定Windows主機的瀏覽器為wls2的默認瀏覽器

    這里以Chrome為例。 1. 準備作業 wsl是可以使用Windows主機上安裝的exe程式,出于安全考慮,默認情況下改功能是無法使用。要使用的話,終端需要以管理員權限啟動。 我這里以Windows Terminal為例,介紹如何默認使用管理員權限打開終端,具體操作如下圖所示: 2. 操作 wsl ......

    uj5u.com 2023-04-19 09:25:49 more
  • docker學習

    ###Docker概述 真實專案部署環境可能非常復雜,傳統發布專案一個只需要一個jar包,運行環境需要單獨部署。而通過Docker可將jar包和相關環境(如jdk,redis,Hadoop...)等打包到docker鏡像里,將鏡像發布到Docker倉庫,部署時下載發布的鏡像,直接運行發布的鏡像即可。 ......

    uj5u.com 2023-04-19 09:19:04 more
  • Linux學習筆記

    IP地址和主機名 IP地址 ifconfig可以用來查詢本機的IP地址,如果不能使用,可以通過install net-tools安裝。 Centos系統下ens33表示主網卡;inet后表示IP地址;lo表示本地回環網卡; 127.0.0.1表示代指本機;0.0.0.0可以用于代指本機,同時在放行設 ......

    uj5u.com 2023-04-18 06:52:01 more
  • 解決linux系統的kdump服務無法啟動的問題

    問題:專案麒麟系統服務器的kdump服務無法啟動,沒有相關日志無法定位問題。 1、查看服務狀態是關閉的,重啟系統也無法啟動 systemctl status kdump 2、修改grub引數,修改“crashkernel”為“512M(有的機器數值太大太小都會導致報錯,建議從128M開始試,或者加個 ......

    uj5u.com 2023-04-12 09:59:50 more
  • 解決linux系統的kdump服務無法啟動的問題

    問題:專案麒麟系統服務器的kdump服務無法啟動,沒有相關日志無法定位問題。 1、查看服務狀態是關閉的,重啟系統也無法啟動 systemctl status kdump 2、修改grub引數,修改“crashkernel”為“512M(有的機器數值太大太小都會導致報錯,建議從128M開始試,或者加個 ......

    uj5u.com 2023-04-12 09:59:01 more
  • 你是不是暴露了?

    作者:袁首京 原創文章,轉載時請保留此宣告,并給出原文連接。 如果您是計算機相關從業人員,那么應該經歷不止一次網路安全專項檢查了,你肯定是收到過資訊系統技術檢測報告,要求你加強風險監測,確保你提供的系統服務堅實可靠了。 沒檢測到問題還好,檢測到問題的話,有些處理起來還是挺麻煩的,尤其是線上正在運行的 ......

    uj5u.com 2023-04-05 16:52:56 more
  • 細節拉滿,80 張圖帶你一步一步推演 slab 記憶體池的設計與實作

    1. 前文回顧 在之前的幾篇記憶體管理系列文章中,筆者帶大家從宏觀角度完整地梳理了一遍 Linux 記憶體分配的整個鏈路,本文的主題依然是記憶體分配,這一次我們會從微觀的角度來探秘一下 Linux 內核中用于零散小記憶體塊分配的記憶體池 —— slab 分配器。 在本小節中,筆者還是按照以往的風格先帶大家簡單 ......

    uj5u.com 2023-04-05 16:44:11 more