Get the App
SLTechnology News&Howtos  ›  Servers  › 

Example Analysis of related Operations under CentOS Virtual Machine

Shulou Source: shulou.com Published: 2022-06-01 19:25:47 11月06日 Update

Editor to share with you a sample analysis of related operations under the CentOS virtual machine. I hope you will gain something after reading this article. Let's discuss it together.

After installing the Redhat system in the VM virtual machine

If you need to connect to the linux system with secureCRT

The steps are as follows:

1. Enter the linux system and enter ifconfig at the terminal (note, it is not the ipconfig of windows)

The results are as follows

If you find the ip address, you can ping it on the host. If you can ping it, you can use it.

If not, ask du Niang.

After downloading secureCRT, open it. Enter the ip address of just linux in the host name in the quick connection. The user takes root as an example. After confirmation, you will be asked to enter your password.

After completion, the connection is successful.

Install the glossy + compiler:

Right-click the virtual machine in VM and set

The following figure shows that the iso image file can be installed by choosing the one.

After confirmation, you can see a lot of files in the graphical interface of the virtual machine.

Use root users for operations

Enter cd / enter the root directory at the terminal

Continue to enter

Cd media

Cd RH*

Cd Pa*

Enter the Packages directory

Next, enter

Enter rpm-ivh libstdc++-devel-4.4.6-4.el6.i686.rpm, and enter again after installation

Enter rpm-ivh gcc-c++-4.4.6-4.el6.i686.rpm, and you can complete the installation.

Enter help +-- if a message is displayed, the installation is successful.

Install gdb:

Or use root users for operations

Enter the Packages directory

Enter rpm-ivh gdb-7.2-56.el6.i686.rpm to enter and install

The gdb version information appears when you enter gdb after installation is complete

Set to execute the program without. / from the root directory, or from the current directory

Log in to the user to operate (each user has a different configuration)

Enter cd to enter the host directory

Input

Vi .bash _ profile

At the end of Path, add:.

Enter again after saving and exiting. .bash _ profile to make it effective

Generate core debug files when setting up gdb debugging

Log in to the user to operate

Cd enters the host directory

Enter vi .bashrc

Add ulimit-c unlimited to the last line

Enter again after saving and exiting. .bashrc to make the configuration effective

After reading this article, I believe you have a certain understanding of "sample analysis of related operations under the CentOS virtual machine". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Tags: Input user directory file system example analysis success host information again address host root article terminal login configuration no next Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Redmi Linux NVidia