sdov.com
域名年龄: 21年5个月9天HTTP/1.1 403 Forbidden 访问时间:2016年10月14日 18:08:40 文件大小:202 Keep-Alive: timeout=5, max=100 连接:Keep-Alive 类型:text/html; charset=iso-8859-1 网站编码:iso-8859-1
Toggle navigationsdov.ukHomeAbout MeCheat Sheets Linux SheetsTmux Cheat SheetVIM Cheat sheetDefine your own FirewallD Service (CentOS7 / RHEL7)12/10/2015 syLeave a commentFirewallD that now comes with RHEL 7 and CentOS7 is a great overlay utility for managing the underlying firewall on the system. There are already many great tutorials on managing the basics of FirewallD with firewall-cmd so won’t cover them here. (more…)Read MoreList all yum packages you specifically installed (CentOS 7 / RHEL 7)29/07/201529/07/2015 syLeave a commentAs a quick exercise I decided to create a simple script to list all user installed packages with yum. This list excludes all dependencies and system installed packages.I’m no means a coder but it seems to work OK. I have placed the code up on Gitgub:-https://github.com/sydoveton/yum-user-installed-packagesSample code below but check GitHub for updates:-(more…)Read MoreCentOS Emergency mode chroot (RHEL 7 / CentOS 7)24/07/2015 syLeave a commentI recently found myself in a position whereby a 3rd party script I was using left one of my servers in an un-bootable state. Whenever I booted the server was dumped in to ‘Emergency Mode’. By default your root partition is mounted in read only mode at /sysroot . I needed to get in the position where I had a fully accessible system to fix a kernel issue. The following commands allowed me to do this. The act of chroot’ing is ‘Changing the root’ which means any commands we run will be run against our real operating system not the ’emergency’ environment. The contents of /sysroot becomes / .Start by remounting the root partition in read/write mode to the same location:-mount -o remount,rw /sysroot1mount -o remount,rw /sysrootNext mount the drives boot partition in to the /sysroot/boot folder:-mount /dev/sda1 /sysroot/boot1mount /dev/sda1 /sysroot/bootNext we use mount --bind on /proc , /dev and /sys . This allows us to remount part of the file hierarchy somewhere else effectively two places at once, in our example inside our /sysroot . We often need these mounted for commands to work correctly:-mount --bind /proc /sysroot/procmount --bind /dev /sysroot/devmount --bind /sys /sysroot/sys123mount --bind /proc /sysroot/procmount --bind /dev /sysroot/devmount --bind /sys /sysroot/sysFinally we chroot:-chroot /sysroot1chroot /sysrootOnce in the chroot we can run almost any command we need to so we can fix the cause.Read MoreKVM domain creation and customization process using libguestfs (RHEL 7 / CentOS 7)24/07/201524/07/2015 syLeave a commentThe process of creating KVM virtual machines is relatively simple but the process of mass deploying virtual machines in a consistent and productive way was somewhat confusing to me. The likes of Linode and Digital Ocean (referral link) both use KVM for their back-end virtualisation and I wanted to simulate the approach they used whereby a personalised server is ready and waiti
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2026-01-07 09:29, Process in 0.0052 second.