Category Archives: Server

SmartFTP 6.0 Build 2054 をダウンロード

ダウンロード:
提供元サイトからダウンロード
cnetサイトからダウンロード
softpediaサイトからダウンロード

更新内容:

  • Updated user interface
    Fluent interface (ribbon). High dpi support.
  • Text editor
    Spell checker, new quick find & replace, clipboard ring, indicator bar, …
  • Remote browser
    Unified search, shared connections.
  • Modernization
    Rewrite of various features. Removal of legacy code.
  • Many other improvements and enhancements
    Check the full changelog for details.

概要:

SmartFTP を FTP (ファイル転送プロトコル)、FTP、SFTP, WebDAV, S3, SSH, ターミナル クライアントです。ローカル コンピューターとサーバーの間、インターネットでファイルを転送できます。

FTPクライアントソフトSmartFTP 6.0.2053をダウンロード

ダウンロード:
提供元サイトからダウンロード
cnetサイトからダウンロード
softpediaサイトからダウンロード

更新内容:

Updated user interface
Fluent interface (ribbon). High dpi support.
Text editor
Spell checker, new quick find & replace, clipboard ring, indicator bar, …
Remote browser
Unified search, shared connections.
Modernization
Rewrite of various features. Removal of legacy code.
Many other improvements and enhancements
Check the full changelog for details.

 

「Tomcatとnginxの連携」nginxをリバースプロキシとしてTomcatのレスポンスを設定する方法

システム要件:
CentOS 6.3 64ビット

1.pcreをコンパイル
# tar xf pcre-8.32.tar.gz
# cd pcre-8.32
# ./configure
# make && make install

2.nginxをコンパイル
2.1 必要なパッケージをインストール
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
1. gzip module requires zlib library
2. rewrite module requires pcre library
3. ssl support requires openssl library
#tar xf nginx-1.2.6.tar.gz
#cd nginx-1.2.6.tar.gz
# ./configure –prefix=/usr/local/nginx –with-http_ssl_module –with-http_flv_module –with-http_stub_status_module –with-http_gzip_static_module –with-pcre –with-http_memcached_module(

2.2 コンパイルオプションパラメータの説明

–with-http_ssl_module  //httpsリクエストをサポート
–with-http_flv_module  //flvファイルをドラッグして、プレイをサポート
–with-http_stub_status_module  //nginxのステータスを表示
–with-http_gzip_static_module  //圧縮を有効にする
–with-http_rewrite_module // URL書き換えを有効にする
–with-pcre  //正規表現のサポートを有効にする

2.3 makeとmake install
#make & make install
[root@test1 nginx]#/usr/local/nginx/sbin/nginx
sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shar
[root@test1 nginx]# ldd /usr/local/nginx/sbin/nginx
linux-vdso.so.1 => (0x00007fff343ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fdb3c3af000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fdb3c178000)
libpcre.so.1 => not found
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fdb3bf1c000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fdb3bb82000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fdb3b97d000)
libz.so.1 => /lib64/libz.so.1 (0x00007fdb3b767000)
libc.so.6 => /lib64/libc.so.6 (0x00007fdb3b3d4000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdb3c5d5000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fdb3b171000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fdb3af2f000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fdb3ac50000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fdb3aa4b000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fdb3a81f000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fdb3a614000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fdb3a410000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fdb3a1f6000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fdb39fd6000)
[root@test1 nginx]# find / -name libpcre.so.0.0.1
/lib64/libpcre.so.0.0.1
[root@test1 nginx]# cd /lib64/
[root@test1 lib64]# ll libpcre.so.0 libpcre.so.0.0.1のソフトリンクはlibpcre.so.0
lrwxrwxrwx. 1 root root 16 Nov 13 03:32 libpcre.so.0 -> libpcre.so.0.0.1

2.4 再度ソフトリンクを作成
[root@test1 lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1
[root@test1 lib64]# /usr/local/nginx/sbin/nginx  //ngnixを起動
[root@test1 ~]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@test1 lib64]# setenforce 0
[root@test1 lib64]# /etc/init.d/iptables stop

2.5 nginxのでデフォルトのページを開く
例 http://192.168.1.29

[root@test1 ~]# /usr/local/nginx/sbin/nginx -t //nginxの設定ファイルをテスト
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@test1 ~]# vim /etc/init.d/nginx
#/bin/bash
# chkconfig: – 85 15
# description: The nginx HTTP Server is an efficient and extensible \
# server implementing the current HTTP standards.
NGINX=/usr/local/nginx/sbin/nginx
CONF=/usr/local/nginx/conf/nginx.conf
start () {
$NGINX -t
if [ $? -eq 0 ];then
if $NGINX ;then
echo ” nginxが起動成功……”
else
echo “nginxが起動失敗……”
fi
else
exit 1
fi
}
restart () {
$NGINX -s stop
if [ $? -ne 0 ];then
killall -9 nginx
fi
$NGINX -t
if [ $? -eq 0 ];then
if $NGINX ;then
echo ” nginxが再起動成功 ……”
else
echo “nginxが再起動失敗…..”
fi
else
exit 2
fi
}
stop () {
$NGINX -s stop
if [ $? -eq 0 ];then
echo ” nginxが停止成功……”
else
killall -9 nginx
echo “nginxが停止失敗……”
fi
}
reload () {
$NGINX -t
if [ $? -eq 0 ];then
$NGINX -s reload
echo “nginx reload ok ……..”
else
exit 3
fi
}
status () {
if [ ps aux |grep nginx |wc -l -eq 1 ];then
echo “nginxが停止している…..”
else
echo “nginxが動いている……”
fi
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
status
;;
*)
echo “Usgage:basename $0 {start|stop|restart|status}”
;;
esac
[root@test1 ~]# chmod +x /etc/init.d/nginx
[root@test1 ~]# chkconfig –add nginx
[root@test1 ~]# chkconfig nginx on
3.nginxを設定

[root@test1 ~]# rpm -ivh jdk-7u9-linux-x64.rpm
[root@test1 ~]# vim /etc/profile //exportにulimitを修正
JAVA_HOME=/usr/java/jdk1.7.0_09/
CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=$PATH:$JAVA_HOME:/bin
CATALINA_HOME=/usr/local/tomcat
export JAVA_HOME CATALINA_HOMEexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL HISTTIMEFORMAT
unset i
unset pathmunge
ulimit -SHn 65535
[root@test1 ~]# . /etc/profile
[root@test1 ~]# java -version
java version “1.7.0_09”
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
[root@test1 ~]# tar xf apache-tomcat-7.0.32.tar.gz -C /usr/local/
[root@test1 ~]# cd /usr/local/
[root@test1 local]# ln -s apache-tomcat-7.0.32 tomcat
[root@test1 local]# cd tomcat/
[root@test1 tomcat]# bin/catalina.sh start
ブラウザを開けてテストして、tomcatのデフォルトポート8080をリッスンします。
4.nginxとtomcatの連携を設定
[root@test1 ~]# cd /usr/local/nginx/
[root@test1 nginx]# mv conf/nginx.conf conf/nginx.conf.bak
[root@test1 nginx]# vim conf/nginx.conf
user nobody;
worker_processes 2;
error_log logs/error.log info;
#pid logs/nginx.pid;
events {
use epoll;
worker_connections 65536;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for”‘;
sendfile on;
keepalive_timeout 65;
#gzip圧縮を設定
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#webキャッシュ名cache_one、メモリのキャッシュサイズ100MB、1日の訪問させれていない内容を自動的にクリアされる、HDDのサイズ1GB
proxy_cache_path /usr/local/nginx/cache_data levels=1:2 keys_zone=cache_one:100m inactive=1d max_size=1g;
upstream 192.168.1.29 {
#ip_hash戦略は同一のIPのすべてのリクエストを同一のアプリケーションサーバーに転送される
#ip_hash;
server localhost:8080;
}
server {
listen 80;
server_name 192.168.1.29;
index index.jsp
charset utf-8;
location / {
#root html;
#index index.jsp;
proxy_pass http://192.168.1.29;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 100m;
}
error_page 500 502 503 504 /50x.html;
location ~* \.(gif|jpg|jpeg|png|bmp|html|htm|flv|swf|ico)$ {
proxy_cache cache_one;
proxy_cache_valid 200 302 304 1h;
proxy_cache_key $host$uri$is_args$args;
proxy_pass http://192.168.1.29;
add_header Last-Modified $date_gmt;
add_header Via $server_addr;
expires 30d;
}
location ~ .*\.(js|css)?$
{
proxy_cache cache_one;
proxy_cache_valid 200 302 304 1h;
proxy_cache_key $host$uri$is_args$args;
proxy_pass http://192.168.1.29;
add_header Last-Modified $date_gmt;
add_header Via $server_addr;
expires 1h;
}
#拡張子.php、.jsp、.cgiなどアプリケーションがキャッシュしない
location ~ .*\.(php|jsp|cgi)?$ {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://192.168.1.29;
}
}
}
[root@test1 nginx]# /etc/init.d/nginx reload

192.168.1.29:8080を開く、連携成功かどうか確認する。

5.probeをインストール
役割:tomcatステータスを監視
5.1 probeをダウンロード
URL: http://code.google.com/p/psi-probe/downloads/list
5.2 ダウンロードしたファイルを解凍します。probe.warをwebappsに入れます。
「CATALINA_HOME/conf/tomcat-users.xml」を修正する
配置ファイル:
<tomcat-users>
<role rolename=”probeuser” />
<role rolename=”poweruser” />
<role rolename=”poweruserplus” />
<role rolename=”manager” />
<user username=”tomcat” password=”tomcat2012″ roles=”probeuser,poweruser,poweruserplus,manager”/>
</tomcat-users>
probe管理ページ:http://192.168.1.29/probe

「proxyの学習」apacheの proxy で502 error 現象の対応方法

1.エラーメッセージ:
apacheの proxy で502 error 現象が発生した

2.原因
For circumstances where mod_proxy is sending requests to an origin server that doesn’t properly implement keepalives or HTTP/1.1, there are two environment variables that can force the request to use HTTP/1.0 with no keepalive. These are set via the SetEnv directive.
These are the force-proxy-request-1.0 and proxy-nokeepalive notes.
3.対策:
httpd,confのVirtualHostに赤い内容を追加設定

 

<VirtualHost *:80>
JkMount /hr/servlet/* worker1
JkMount /hr/*.jsp worker1
JkMount /hr/*.do worker1
ServerAdmin testadmin@arkgame.com
ServerName www.arkgame.com
ServerAlias www.startnews24.co.jp
RewriteEngine On
RewriteRule ^/$ /hr/ [R,P]

SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1
</VirtualHost>

FileZilla 3.9.0 のダウンロード

ダウンロード
提供元サイトからダウンロード
softpediaサイトからダウンロード
cnetサイトからダウンロード

更新内容:

New features:

  • Added Lao translation
  • Added an additional icon set
  • OS X: Holding modifier key while clicking Site Manager toolbar icon now shows the site dropdown menu

Bugfixes and minor changes:

  • MSW: Fix assertion when entering UNC paths
  • Fix button layout of editing dialogs
  • *nix, OS X: Small performance improvement recursing through local directories

「hadoop入門」Hadoop datanode起動する時「Unrecognized option: -jvm」の解決方法

エラー現象:
Hadoopをインストールする時datanodeが起動して、「Unrecognized option: -jvm」が表示される
解決方法:
vi /bin/hadoop
修正前:
elif [ “$COMMAND” = “datanode” ] ; then
CLASS=’org.apache.hadoop.hdfs.server.datanode.DataNode’
if [[ $EUID -eq 0 ]]; then
HADOOP_OPTS=”$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS”
else
HADOOP_OPTS=”$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS”
fi

修正後
elif [ “$COMMAND” = “datanode” ] ; then
CLASS=’org.apache.hadoop.hdfs.server.datanode.DataNode’
# if [[ $EUID -eq 0 ]]; then
# HADOOP_OPTS=”$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS”
# else
HADOOP_OPTS=”$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS”
# fi

SVNサーバー側にスクリプトをインストール

インストール手順:

1.モジュールをダウンロード

#!/bin/bash
yum -y remove subversion
mkdir -p /dist/{dist,src}
cd /dist/dist
/bin/rm -f openssl* subversion*
wget “http://www.openssl.org/source/openssl-1.0.1e.tar.gz”
wget “http://labs.mop.com/apache-mirror/subversion/subversion-1.7.9.tar.gz”
wget “http://mirror.bjtu.edu.cn/apache/apr/apr-1.4.6.tar.gz”
wget “http://mirror.bjtu.edu.cn/apache/apr/apr-util-1.5.2.tar.gz”
wget “http://www.sqlite.org/2013/sqlite-autoconf-3071602.tar.gz”
wget “http://www.webdav.org/neon/neon-0.29.6.tar.gz”
wget “http://zlib.net/zlib-1.2.8.tar.gz”

2.opensslのインストール
cd /dist/src
rm -rf openssl*
rm -rf subversion*
rm -rf apr*
rm -rf sqlite*
rm -rf neon*
tar xf /dist/dist/openssl-1.0.1e.tar.gz

cd openssl-1.0.1e

./config –prefix=/usr/local/ssl-1.0.1e shared
./config -t
make
make install
echo ‘/usr/local/ssl-1.0.1e/lib’ >/etc/ld.so.conf.d/openssl.conf
ldconfig -v

3.aprのインストール

cd /dist/src
tar xf /dist/dist/apr-1.4.6.tar.gz
cd apr-1.4.6/
./configure –prefix=/usr/local/apr
make
make install

4.apr-utilのインストール

cd /dist/src
tar xf /dist/dist/apr-util-1.5.2.tar.gz
cd apr-util-1.5.2/
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make
make install

5.sqliteのインストール

cd /dist/src
tar xf /dist/dist/sqlite-autoconf-3071602.tar.gz
cd sqlite-autoconf-3071602
./configure –prefix=/usr/local/sqlite
make
make install

6.neonのインストール

cd /dist/src
tar xf /dist/dist/neon-0.29.6.tar.gz
cd neon-0.29.6
./configure –prefix=/usr/local/neon –with-ssl=openssl
make
make install
cd /dist/src
tar xf /dist/dist/zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make
make install

7.subversionのインストール

cd /dist/src
tar xf /dist/dist/subversion-1.7.9.tar.gz
cd subversion-1.7.9
./configure –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –with-sqlite=/usr/local/sqlite –with-ssl –without-berkeley-db –with-neon=/usr/local/neon
make
make install
mv /usr/bin/svn /usr/bin/oldsvn
ln -s /usr/local/bin/svn /usr/bin/svn
echo svn --version

nginx大きなファイルを高速化にダウンロードさせる方法

1.nginx構成ファイルを修正
location /
{

proxy_max_temp_file_size 2048m;

}

2.ngixnが再起動
# /usr/local/nginx-1.7.0/sbin/nginx -s reload

「sni-proxy」warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’dエラー対策

1.エラー現象:

sni-proxyをインストール途中でautoconf.shを実行する、エラーが次の通り表示される
[root@gu1234 sniproxy-master]
# ./autogen.sh
configure.ac:18: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from…
/usr/share/aclocal/pkg.m4:102: PKG_CHECK_MODULES is expanded from…
configure.ac:18: the top level
configure.ac:18: warning: AC_LIB_PROG_LD is m4_require’d but not m4_defun’d
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from…
configure.ac:18: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from…
configure.ac:29: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:29: the top level
configure.ac:29: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:46: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from…
configure.ac:46: the top level
configure.ac:46: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:53: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:53: the top level
configure.ac:53: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:18: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from…
aclocal.m4:123: PKG_CHECK_MODULES is expanded from…
configure.ac:18: the top level
configure.ac:18: warning: AC_LIB_PROG_LD is m4_require’d but not m4_defun’d
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from…
configure.ac:18: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from…
configure.ac:29: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:29: the top level
configure.ac:29: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:46: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from…
configure.ac:46: the top level
configure.ac:46: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:53: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:53: the top level
configure.ac:53: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:18: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
m4/lib-link.m4:57: AC_LIB_HAVE_LINKFLAGS is expanded from…
aclocal.m4:123: PKG_CHECK_MODULES is expanded from…
configure.ac:18: the top level
configure.ac:18: warning: AC_LIB_PROG_LD is m4_require’d but not m4_defun’d
m4/lib-link.m4:125: AC_LIB_RPATH is expanded from…
configure.ac:18: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
m4/lib-link.m4:181: AC_LIB_LINKFLAGS_BODY is expanded from…
configure.ac:29: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:29: the top level
configure.ac:29: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:46: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from…
configure.ac:46: the top level
configure.ac:46: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure.ac:53: warning: AC_LIB_PREPARE_PREFIX is m4_require’d but not m4_defun’d
configure.ac:53: the top level
configure.ac:53: warning: AC_LIB_PREPARE_MULTILIB is m4_require’d but not m4_defun’d
configure:4008: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:4009: error: possibly undefined macro: AC_LIB_PROG_LD
configure:4127: error: possibly undefined macro: AC_LIB_PREPARE_MULTILIB
configure:4202: error: possibly undefined macro: AC_LIB_WITH_FINAL_PREFIX
autoreconf: /usr/bin/autoconf failed with exit status: 1

2.解決対策

# yum install gettext-devel

 

 

FileZilla Client 3.9.0-rc3ダウンロード

ダウンロード
提供元サイトからダウンロード
更新内容
1.テキストを添加して情報の日誌の時にいつでも崩壊する問題の修復
2.ローカルのファイルリストとディレクトリのドラッグ問題の修復
3.日付/時間のフォーマット問題を指定する問題の修復
4.システムshutdown時FileZilla閉じる問題の修復
5.各種コードを整理する
6.ログ情報にテキストを追加する時崩壊問題を修復