https://gist.github.com/2066974
posted @ 2012-03-18 08:26 貝貝爸爸 閱讀(262) | 評論 (0) | 編輯 收藏
|
|||
系統環境 CentOS6.2 #step 1. download libevent https://github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz $ ./configure $ make $ make verify # (optional) $ sudo make install $ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5 #step 2. download FastDFS source package and unpack it, $ ./make.sh $ ./make.sh install #step 3. edit/modify the config file of tracker and storage #step 3.1. $ vim /etc/fdfs/tracker.conf ## base_path=?? ## reserved_storage_space = 1GB #step 3.2 $ vim /etc/fdfs/storage.conf ## base_path=/home/yuan/fastdfs/storage ## path(disk or mount point) count, default value is 1 ## store_path_count=1 ## store_path#, based 0, if store_path0 not exists, it's value is base_path ## the paths must be exist ## store_path0=/home/yuan/fastdfs0 ## tracker_server=host:port #step 4 cp the start shell into /etc/init.d $ cd FastDFS $ cp init.d/fdfs_trackerd /etc/init.d $ cp init.d/fdfs_storaged /etc/init.d #step 5 mkdir the trackerd base path and storaged base path $ mkdir /home/yuan/fastdfs $ mkdir /home/yuan/fastdfs0 #step 6 start trackerd service $/sbin/service fdfs_trackerd start ###$/sbin/service fdfs_trackerd status ###$fdfs_trackerd (pid 11441) is running... #step 7 start storaged service $/sbin/service fdfs_storaged start ###$/sbin/service fdfs_storaged status ###$fdfs_storaged (pid 11553) is running... #step 8. run test program #step 8.1. vim /etc/fdfs/client.conf ###base_path=/home/yuan/fastdfs ###tracker_server=192.168.0.197:22122 #step 8.2 run test program $/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /usr/include/stdlib.h #step 9 monitor fdfs $/usr/local/bin/fdfs_monitor /etc/fdfs/client.conf posted @ 2012-03-17 16:38 貝貝爸爸 閱讀(769) | 評論 (0) | 編輯 收藏 可能后面會遇到同一臺服務器,安裝多個jboss實例的問題,那顯然的問題可能就是端口沖突問題,怎么辦?
1、修改各個配置文件的端口配置 2、最簡單的方法是,啟動是指明端口綁定步長,例如:-Djboss.socket.binding.port-offset=100 posted @ 2012-03-04 20:40 貝貝爸爸 閱讀(465) | 評論 (0) | 編輯 收藏 mvn deploy:deploy-file -Dfile=target/web-3.1.0-SNAPSHOT-api.jar -Durl=http://repo.yongtai.com.cn/nexus/content/repositories/snapshots/ -DrepositoryId=nexus-snapshots -DpomFile=pom.xml -Dpackaging=jar -Dclassifier=api posted @ 2012-02-22 12:02 貝貝爸爸 閱讀(230) | 評論 (0) | 編輯 收藏 今天又在centos下折騰呢,呵呵,不過這次的環境是mac下安裝centos的虛擬機,mac環境和linux環境還是很大區別,至少無法安裝我想要的FastDFS環境,著實有點無法接受,所以只能安裝虛擬機了。
ssh centos后,主要安裝遇到了如下問題: 1、gcc-c++沒有安裝,會導致安裝pcre的時候,報c++編譯器沒找到,直接安裝:yum install gcc-c++即可 2、zlib包無法找到,安裝:yum install zlib-devel即可 3、error while loading shared libraries: libpcre.so.1:[root@bogon nginx-1.0.12]# ldd $(which /usr/local/nginx/sbin/nginx) linux-vdso.so.1 => (0x00007fff7e9db000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe4629d0000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe462799000) libpcre.so.1 => not found//確實沒找到 libz.so.1 => /lib64/libz.so.1 (0x00007fe462582000) libc.so.6 => /lib64/libc.so.6 (0x00007fe4621e1000) /lib64/ld-linux-x86-64.so.2 (0x00007fe462bfa000) libfreebl3.so => /lib64/libfreebl3.so (0x00007fe461f7e000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fe461d7a000) [root@bogon nginx-1.0.12]# cd /lib64/ [root@bogon lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1 [root@bogon lib64]# ldd $(which /usr/local/nginx/sbin/nginx) linux-vdso.so.1 => (0x00007fff4d7ff000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb06f13e000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fb06ef07000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fb06ecda000) libz.so.1 => /lib64/libz.so.1 (0x00007fb06eac4000) libc.so.6 => /lib64/libc.so.6 (0x00007fb06e723000) /lib64/ld-linux-x86-64.so.2 (0x00007fb06f368000) libfreebl3.so => /lib64/libfreebl3.so (0x00007fb06e4c0000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fb06e2bc000) posted @ 2012-02-19 07:49 貝貝爸爸 閱讀(2108) | 評論 (0) | 編輯 收藏 |
|||