CentOS / RHEL v6.x: Install And Configure Serial Console
来源:互联网 发布:淘宝网夏季竹凉席坐垫 编辑:程序博客网 时间:2024/05/22 05:55
CentOS / RHEL v6.x: Install And Configure Serial Console
You need to use setserial command. The command is designed to set and/or report the configuration information associated with a serial port.
setserial -g /dev/ttyS[0123]
Sample outputs:
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
Our sample setup
I am going to use the following configuration:
Device name : /dev/ttyS1Speed: 19200Word: 8Parity: NoGrub config file : /etc/grub.conf or /boot/grub/grub.confSecure tty config file : /etc/securettyUpstart config file to start agetty on /dev/ttyS1: /etc/init/ttyS1.conf
Step #1: Grub configuration
Type the following command:
# vi /boot/grub/grub.conf
Add the following lines befor :hiddenmenu config options:
serial --unit=1 --speed=19200 --word=8 --parity=no --stop=1terminal --timeout=5 serial console
Scroll down and find out kernel line and append the following config options:
console=tty0 console=ttyS1,19200n8
At the end your grub.conf should look as follows:
default=0timeout=5#splashimage=(hd0,0)/grub/splash.xpm.gzserial --unit=1 --speed=19200 --word=8 --parity=no --stop=1terminal --timeout=5 serial console:hiddenmenutitle Red Hat Enterprise Linux Server (2.6.32-358.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=00f30f09-2bfb-4dde-8396-eea16c0ee21a nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD KEYTABLE=us SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM rhgb pcie_aspm=off biosdevname=0 console=tty0 console=ttyS1,19200n8 initrd /initramfs-2.6.32-358.el6.x86_64.imgtitle Red Hat Enterprise Linux (2.6.32-279.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=UUID=00f30f09-2bfb-4dde-8396-eea16c0ee21a nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD KEYTABLE=us SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM rhgb pcie_aspm=off biosdevname=0 console=tty0 console=ttyS1,19200n8 initrd /initramfs-2.6.32-279.el6.x86_64.img
Step #2: Secure tty configuration
Type the following command:
# vi /etc/securetty
Append the following entry:
ttyS1
Save and close the file.
Step #3: Upstart configuration
init is upstart process management daemon. init is the parent of all processes on the system, it is executed by the kernel and is responsible for starting all other processes; it is the parent of all processes whose natural parents have died and it is responsible for reaping those when they die. Processes managed by init are known as jobs and are defined by files in the /etc/init directory. Type the following command to create /etc/init/ttyS1.conf file, enter::
# vi /etc/init/ttyS1.conf
Append the following config options:
start on runlevel [345]stop on runlevel [S016]respawninstance /dev/ttyS1exec /sbin/agetty ttyS1 19200 vt100-nav
Save and close the file.
Step 4: Verify settings
Reboot the server:
# reboot
Connect to console using serial console utility.
- CentOS / RHEL v6.x: Install And Configure Serial Console
- Install And Configure Open VSwitch On CentOS RHEL Fedora
- Enable Serial Console on CentOS/RHEL 7
- CentOS 7.x PhpMyAdmin Install and Configure with Nginx
- CentOS 7.x Install and Configure ISPConfig CP
- TITAN for Centos install and configure
- RHEL / CentOS: Install and Activate Bash Autocomplete Feature
- Install Linux Malware Detect (LMD) in RHEL, CentOS and Fedora
- Install “build-essential” on RHEL/CentOS and OpenSolaris
- Install EPEL repo on CentOS 7 and RHEL 7
- RedHat / CentOS Install and Configure Cacti Network Graphing Tool
- RedHat / CentOS Install and Configure Cacti Network Graphing Tool
- Install and configure rsyslog Centralized logging server in CentOS 6.5
- How to install and configure NGINX on CentOS 7
- How to Install and Configure a VNC Server on RedHat Enterprise Linux (RHEL) 6
- Install and Configure git
- Install and Configure ASM
- install and configure subversion
- 二叉树的一个重要性质
- HTML中 点击图片翻转文字
- 不改变button大小,扩大点击范围
- webrtc开源代码阅读1 分享
- ES6 类的继承
- CentOS / RHEL v6.x: Install And Configure Serial Console
- EL表达式
- tomcat 大并发报错以及解决方案!
- 关于Mysql5.7修改root密码ERROR 1054的问题
- 读取信息对象层级的函数
- fetch学习(一)-入门篇
- Java super关键字的使用
- libmysqlclient.so.16()缺失的解决方案
- Educational Codeforces Round 21 C