CentOs6.7 shutting down the firewall (SECURECRT not connected)
Workaround:
______________________________________
First, open SSH
Log in to Linux as root, open terminal, run:/etc/init.d/sshd Restrat
______________________________________
Second, close the firewall
1. Run Setup at the terminal
2,. Select Firewall Enter
3. Press TAB to switch to the Disablede key, then press SPACEBAR to select, then press TAB to switch to OK, select by Space
4. Press the TAB key to switch to quit, select by Space
Then login to Linux with client SSH
______________________________________
Third, another way to turn off the firewall
/etc/init.d/iptables stop
CentOS6.5 Installing Telnet
1. Check if Telnet is installed[Email protected] ~]# Rpm-qa | grep telnet
2. Install Telnet and telnet-server[[email protected] ~]# yum install telnet[[email protected] ~]# Yum install Telnet-server
3, because after the installation of the Telnet service, the default is not to open the service, the following we need to modify the file to open the service. [[email protected] ~]# vi/etc/xinetd.d/telnet Modify Disable = yes disable = no service telnet
{
Flags = Reuse
Socket_type = Stream
wait = no
user = root
Server =/usr/sbin/in.telnetd
Log_on_failure + = USERID
Disable = no
}
4. Need to activate XINETD service[Email protected] ~]# service xinetd restart
stopping xinetd: [FAILED]
Starting xinetd: [OK]
[Email protected] ~]# service xinetd restart
stopping xinetd: [OK]
Starting xinetd: [OK]
5. Need to test whether Telnet is successfully opened
CentOS6.5 Installing the JDK
1, download the JDK file, address:http://download.csdn.net/detail/carboncomputer/9240563 Get Jdk-6u45-linux-x64.bin
2, decompression Jdk-6u45-linux-x64.bin[Email protected] java]#./jdk-6u45-linux-x64.bin
3, the jdk1.6.0_45 obtained after decompression, can be used directly[Email protected] download]# mv/tmp/download/jdk1.6.0_45/opt/java/jdk1.6.0_45
4. Setting Environment Variables
[email protected] java]# Vi/etc/profileAdd the following: #set Java environment
Export java_home=/opt/java/jdk1.6.0_45
Export classpath= $JAVA _home/jre/lib: $JAVA _home/lib
Export path= $PATH: $JAVA _home/bin
[email protected] jdk1.6.0_45]# Source/etc/profile
[email protected] ~]# Vi/home/zhong2/.bash_profile#zhong2是计算机用户添加如下语句: path= $PATH: $HOME/bin
Export java_home=/opt/java/jdk1.6.0_45
Export classpath= $JAVA _home/jre/lib: $JAVA _home/lib
Export path= $PATH: $JAVA _home/bin
Export PATH
5. Test if Java is installed successfully[Email protected] jdk1.6.0_45]# java-version
Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) 64-bit Server VM (build 20.45-b01, Mixed mode)
CentOS6.5 Installation Resin
1. Download resin_4.0.23
http://www.caucho.com/download/resin-pro-4.0.23.tar.gz
2. Unzip and install[[email protected] download]# TAR-ZXVF resin-pro-4.0.23.tar.gz[[email protected] download]# CD resin-pro-4.0.23/[[ Email protected] resin-pro-4.0.23]#/configure--prefix=/usr/local/resin[[email protected] resin-pro-4.0.23]# make[[ Email protected] resin-pro-4.0.23]# make Install[[email protected] log]# CD bin/
3. Start Resin[[email protected] log]#./resin.sh start
4. Test resin[[email protected] bin]# Curl "http://127.0.0.1:8080"
<body>
<H1 style= "background: #ccddff" >Resin& #174; Default Home pageThe default page for the Resin Web server.
<p>documentation is available at <a href= "/resin-doc" >/RESIN-DOC</A>.
<p>administration is available at <a href= "/resin-admin" >/RESIN-ADMIN</A>.
</body>
Unable to find native the library ' resin_os ' for com.caucho.loader.ClassEntry ...is not specified at the time of installation--prefix=/usr/local/resin
5. Deployment Engineering
the ProjectProgram moved to:/opt/resin-4.0.23/webapps/, modify the resin configuration, specify the project location: [[email protected] bin]# vi/usr/local/resin/conf/ Resin.xml <web-app id= "/" root-directory= "
/opt/resin-4.0.23/webapps/program></web-app> start the project again and test the Engineering interface: [[email protected] bin]#./resin.sh start
RESIN/4.0.23 launching watchdog at 127.0.0.1:6600
resin/4.0.23 Started-server "for watchdog at 127.0.0.1:6600
[[email protected] bin]# Curl "http://127.0.0.1:8080/test/test.do"
{
"Result": 10000,
"Detail": null,
"MSG": "Operation succeeded"
}
Linux installation AntTo
download a package:http://mirrors.hust.edu.cn/apache//ant/binaries/apache-ant-1.9.6-bin.tar.gz [[Email Protected]_64_81_centos download]# TAR-ZXVF apache-ant-1.9.6-bin.tar.gz [[email protected]_64_81_centos download]# MV apache-ant-1.9.6/opt/[[ Email protected]_64_81_centos opt]# vi/etc/profile Add environment variable: ant_home=/opt/apache-ant-1.9.6/export PATH= $PATH: $JAVA _ Home/bin: $ANT _home/bin to establish a soft connection: [[email Protected]_64_81_centos opt]# cd/usr/bin[[email protected]_64_81_centos bin]# Ln -s-f/opt/apache-ant-1.9.6/bin/ant Test: [[email Protected]_64_81_centos bin]# ant-version
Apache Ant (TM) version 1.9.6 compiled on June 29 2015
Some common operations for Linux