you can use:
sudo iptables -I INPUT -p tcp -m tcp --dport 38088 -j ACCEPT
but you must know:

所以开放的配置放到红圈里2个规则上面
那2个规则会把上面没匹配的连接全拒绝掉

yum update
rpm -qa | grep -E '^open[jre|jdk]|j[re|dk]'
gobject-introspection-1.36.0-4.el7.x86_64 pygobject3-base-3.8.2-4.el7.x86_64
java -version
yum remove java-1.6.0-openjdk yum remove java-1.7.0-openjdk
rpm -ivh jdk-8u25-linux-x64.rpm
Preparing... ################################# [100%] Updating / installing... 1:jdk1.8.0_25-2000:1.8.0_25-fcs ################################# [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... tools.jar... localedata.jar... jfxrt.jar...
java -version
java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
export JAVA_HOME=/usr/java/jdk1.8.0_25/ export PATH=$PATH:$JAVA_HOME
echo $JAVA_HOME
/usr/java/jdk1.8.0_25/
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/java/jdk1.8.0_25/
vi /etc/profile.d/java.sh
#!/bin/bash JAVA_HOME=/usr/java/jdk1.8.0_25/ PATH=$JAVA_HOME/bin:$PATH export PATH JAVA_HOME export CLASSPATH=.
chmod +x /etc/profile.d/java.sh
source /etc/profile.d/java.sh
alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_25/jre/bin/java 20000 alternatives --install /usr/bin/jar jar /usr/java/jdk1.8.0_25/bin/jar 20000 alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_25/bin/javac 20000 alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.8.0_25/jre/bin/javaws 20000 alternatives --set java /usr/java/jdk1.8.0_25/jre/bin/java alternatives --set jar /usr/java/jdk1.8.0_25/bin/jar alternatives --set javac /usr/java/jdk1.8.0_25/bin/javac alternatives --set javaws /usr/java/jdk1.8.0_25/jre/bin/javaws
ls -lA /etc/alternatives/
lrwxrwxrwx. 1 root root 29 Dec 2 16:24 jar -> /usr/java/jdk1.8.0_25/bin/jar lrwxrwxrwx. 1 root root 34 Dec 2 16:24 java -> /usr/java/jdk1.8.0_25/jre/bin/java lrwxrwxrwx. 1 root root 31 Dec 2 16:24 javac -> /usr/java/jdk1.8.0_25/bin/javac lrwxrwxrwx. 1 root root 36 Dec 2 16:24 javaws -> /usr/java/jdk1.8.0_25/jre/bin/javaws [...]
java -version
java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' //2 artifactory (制定版本) classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { //1 自己私有服务器的依赖库 (如果你用本地的可以不用写的) maven { url "IP/artifactory/libs-release-local" } jcenter() } } task clean(type: Delete) { delete rootProject.buildDir}
apply plugin: 'com.android.library'apply plugin: 'com.jfrog.artifactory'apply plugin: 'maven-publish'
def packageName = 'com.chow.ui'def libraryVersion = '1.0.2-release'
artifactory {
contextUrl = 'IP//artifactory' publish {
repository {
// The Artifactory repository key to publish to repoKey = libraryVersion.endsWith('SNAPSHOT') ? 'libs-snapshot-local' : 'libs-release-local'
username = artifactory_username password = artifactory_password }
defaults {
// Tell the Artifactory Plugin which artifacts should be published to Artifactory. publications('aar')
publishArtifacts = true
// Properties to be attached to the published artifacts. properties = ['qa.level': 'basic', 'dev.team': 'core']
// Publish generated POM files to Artifactory (true by default) publishPom = true }
}
}



systemctl enable firewalldsystemctl start firewalldsystemctl status firewalldwget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mysql -u root -p
CREATE DATABASE wordpress; Query OK, 1 row affected (0.00 sec)
CREATE USER wordpressuser@localhost; Query OK, 0 rows affected (0.00 sec)
SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password");
Query OK, 0 rows affected (0.00 sec)
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.00 sec)
FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)
exit
cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
sudo nano ~/wordpress/wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpressuser');
/** MySQL database password */
define('DB_PASSWORD', 'password');
sudo mkdir -p /var/www/wordpress
sudo cp -r ~/wordpress/* /var/www/wordpress
/var/www to allow future automatic updating of Wordpress plugins and file editing with SFTP. If these steps aren't taken, you may get a "To perform the requested action, connection information is required" error message when attempting either task.cd /var/www/
sudo chown nginx:nginx * -R sudo usermod -a -G nginx username
sudo vi /etc/nginx/conf.d/default.conf
#
# The default server
#
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /var/www/wordpress;
index index.php index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /var/www/wordpress;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
sudo service nginx restart