- Normal user added to Sudoers
- U Switch to root
- Visudo into the editor, locate root all= (all), and add the following
MyUserName all= (All) all
- Configure the Network
sudo vi/etc/sysconfig/network-scripts/ifcfg-eth0
Modify
Onboot=yes
Bootproto=dhcp
Then/etc/init.d/network restart or ifconfig eth0 192.168.1.100/24 up to make the configuration file effective
View network conditions: IP addr
Inquiry Public network Ip:curl ifconfig.me
Query Internet gateway: Tracepath cnblogs.com
If you want to use ifconfig, you need yum install net-tools
- accessing Windows shared Folders
Yum Install cifs-utils.x86_64 (reference: http://blog.csdn.net/yasi_xi/article/details/38356247)
Mount-t cifs//192.168.1.103/share/yasi/mnt/win-o username= "user", password= "pass"
(Don't remember if yum install samba-client is required)
(originally intended to pass files in this way, installing the sun JDK requires downloading the installation package, browsing the web, finding the installation package, downloading the installation package, or Windows convenient.)
Later found a better way to pass the file: SSH)
- SSH upload file
Note: My centos here is a virtual machine, the network is set to NAT, so I need to configure the port mapping (I am the SSH Port 22 mapped to the native 9922)
- SSH connection to CentOS
ssh-p 9922 [email protected] Remote host IP or domain name
- viewing remote host Files
SSH [email protected] Remote host IP or domain-p9922 command ls "/"
- Download files for remote hosts
scp-p9922 [email protected]:~/hello.txt./
Download the entire folder
scp-p9922 [email protected]:~/dir/*./targetdir/
- Uploading files to a remote host
scp-p9922 hello.txt [Email protected]:~
scp-p9922 hello.txt [Email protected]:/home/tom
- FileZilla file, exempt from command line trouble
- Installing the JDK
- Go to Oracle website to download RPM packages
- Uploading files to a remote host
- Yum Install jdk-xxx.rpm
- Installing Tomcat reference: http://blog.csdn.net/fwj380891124/article/details/41458727
Java development environment to build--centos configuration