It is mainly because centos is installed on virtual machines and some settings are always made every time.
Purely Basic settings. For example, the local securecrt can connect to centos in the virtual machine.
For complex non-basic settings, see Linux Command collection.
Set Network
Automatic Connection
# Cat/etc/sysconfig/network-scripts/ifcfg-eth0 onboot = Yes
Restart Nic
# Service network restart
------------------------------------------
Install missing files
Download Upload Command
RZ: Command not found
# Yum install lrzsz
If the yum source is not directly downloaded to the local device
# Yum localinstall File
Download rpm
# Rpm-I file
-------------------------------------------
Install Telnet
# Yum-y install Telnet
--------------------------------------------
Install Lua
# Yum-y install Lua
# Yum-y install LUA-devel
--------------------------------------------
Install GCC to compile C Language
Cc: Command not found
# Yum gcc
# Yum-y install gcc
Note:-y indicates that yes is selected for installation.
--------------------------------------------
Checking for C ++ compiler default output file name... configure: Error: C ++ compiler cannot create executables
See 'config. log' for more details.
# Yum install GCC gcc-C ++
--------------------------------------------
Phpize prompt
Cannot find Autoconf. Please check your Autoconf installation and
$ Php_autoconf environment variable. Then, rerun this script.
# Wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# Tar-zvxf autoconf-2.62.tar.gz
# Cd autoconf-2.62/
#./Configure & make install
----------------------------------------------
Install rzsz
# Yum install lrzsz
---------------------------------------------
Getcwd: cannot access parent directories Solution
The getcwd command cannot locate the current working directory. Generally, this is because you RM this directory after you CD it to a directory.
Getcwd is reported when you execute some service scripts.
You only need to run the CD command in any directory that actually exists.
The reason for this is that the current user does not have the executable permission for the current directory.
----------------------------------------------