




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、TMS 服務(wù)器的安裝與配置1.CentOS 安裝CentOS 操作系統(tǒng)是商業(yè)版Red Hat Enterprise Linux(RHEL)的版,是架構(gòu) LAMP 的理想操作系統(tǒng),穩(wěn)定性非常好,和 Ubuntu 不同的是,CentOS 主要用于服務(wù)器而不是桌面環(huán)境,不少大型的商業(yè)都使用CentOS 操作系統(tǒng)。截止目前 CentOS 6.x 最新版本為 CentOS 6.5,下面介紹 CentOS 6.5 的具體安裝配置過程服務(wù)器相關(guān)設(shè)置如下:操作系統(tǒng):CentOS 6.5 64 位IP 地址:29網(wǎng)關(guān):DNS:備注:Ce
2、ntOS 6.5 系統(tǒng)鏡像有 32 位和 64 位兩個版本,生產(chǎn)服務(wù)器如果是大內(nèi)存(4G 以上內(nèi)存)建議安裝 64 位版本 CentOS-6.5-x86_64-bin-DVD1.iso附:CentOS 6.5地址32 位:64 位:1、CentOS 6.5 系統(tǒng)鏡像有兩個,安裝系統(tǒng)只用到第一個鏡,即 CentOS-6.5-i386-bin-DVD1.iso(32 位)或者 CentOS-6.5-x86_64-bin-DVD1.iso(64 位),第二個鏡像是系統(tǒng)自帶軟件安裝包;2、安裝 CentOS 6.5 系統(tǒng)的計算機內(nèi)存必須等于或者大于 628M(最小內(nèi)存 628M),才能啟用圖形安裝模式
3、;3、CentOS 6.5 文本安裝模式不支持自定義分區(qū),建議使用圖形安裝模式安裝;4、CentOS 6.5 的系統(tǒng)安裝方式分為:圖形安裝模式和文本安裝模式;5、CentOS 6.5 的系統(tǒng)運行方式分為:帶圖形界面、可以用鼠標操作的圖形化不帶圖形界面、直接用命令行操作的文本方式(具體的系統(tǒng)運行方式,可以在系統(tǒng)安裝的過程中自定義選擇);。安裝步驟:CD 或 DVD 盤,選擇光驅(qū)啟動,用光盤引導(dǎo)系統(tǒng),會出現(xiàn)下面的界面1.【界面說明】:Install or upgrade an existing system 安裝或升級現(xiàn)有的系統(tǒng)driver 安裝過程中采用 基本的顯卡驅(qū)動install syste
4、m with basicRescue installed system 進入系統(tǒng)修復(fù)模式安裝從硬盤啟動Boot from local driveMemory test 內(nèi)存檢測這里選擇第一項,安裝或升級現(xiàn)有的系統(tǒng),。2. 彈出“是否對 CD進試”的提問,這里選擇“Skip”跳過測試。3. 進入安裝歡迎界面,如下圖:點擊next 進入4. 在彈出的語言選擇界面中選擇簡體中文,點擊next 進入5. 在彈出的鍵盤選擇界面中選擇“美國英語式”,點擊next 進入。6. 選擇安裝到哪一個設(shè)備,我們沒有特別的要求就選擇基本設(shè)備就可以了。提示我們是否要保留硬盤里的數(shù)據(jù),選擇第一項:是,忽略所有數(shù)據(jù),如果需
5、要保留數(shù)據(jù),則選:否,保留所有數(shù)據(jù)。7. 接下來設(shè)置系統(tǒng)的主機名,輸入主機名為:tmsserver,點“8. 在彈出的設(shè)置時區(qū)窗口中,選擇:亞洲/上海,并在“系統(tǒng)時鐘用戶 UTC 前面打勾, 使用 UTC 時間,點擊:9. 在彈出的設(shè)置窗口中,設(shè)置root為:YHN9ij,點擊:。注意:如果你使用的過于簡單,系統(tǒng)會自動提示:您的不夠安全,過于簡單化/系統(tǒng)化,這里選擇“Use Anyway 無論如何都使用。但是,在生產(chǎn)環(huán)境必須設(shè)置強壯復(fù)雜的10. 在彈出的分區(qū)設(shè)置界面中,選擇“使用所有空間“,如果對于分區(qū)有特殊要求,則選擇”創(chuàng)建自定義布局“,點擊。將要安裝系統(tǒng)的盤選中移動到右邊,其他硬盤留在左邊
6、不動。掛載分區(qū) (點Create 創(chuàng)建一個分區(qū),默認選擇 Stantard Partition(標準分區(qū)),選擇掛載點、分區(qū)大小即可創(chuàng)建分區(qū))下面是分區(qū)方式(不同的用途可以選擇不同的分區(qū),最后不要忘記swap 分區(qū)哦),點Next,選擇 Format(格式化),再選 Write Change to disk(把分區(qū)表寫入硬盤)分別設(shè)置nnn/boot 分區(qū)為 200Mswap 分區(qū)為內(nèi)存的兩倍(若內(nèi)存為 2G,則 swap 分區(qū)為 4096M)/分區(qū)為:剩余所有選擇 sdb 點擊【Create】按鈕,將剩余的幾個 T,掛載到/data 下組后分區(qū)結(jié)果如下:安裝 裝載引導(dǎo)程序(默認即可)點擊“將
7、修改寫入磁盤“11. 、接下來格式化硬盤分區(qū)12. 然后進入安裝界面,這里選擇:桌面。在生產(chǎn)的系統(tǒng)里,可以最小化安裝之后再進行處理。但不要安裝沒有必要的軟件。然后選“現(xiàn)在自定義“,選擇安裝需要的開發(fā)工具包軟件。(也可以選以后自定義,也可以在需要的時候通過 yum 源、rpm 或者編譯來安裝軟件包。)在自定義幾面中做如下選擇:n 在“可擴展文件系統(tǒng)“中:選擇所有的包n 在“基本系統(tǒng)“中選擇:u Java 平臺默認u 基本-默認uuuuuuu打印客戶端-默認臺互聯(lián)網(wǎng)工具:選 ftp-0.17智能卡-默認目錄客戶端-默認網(wǎng)絡(luò)文件系統(tǒng)客戶端-默認聯(lián)網(wǎng)工具-默認調(diào)試工具-默認nn在“應(yīng)用程序“中選擇:默
8、認在“開發(fā) “中選擇:uuu開發(fā)工具除 cvs_inetd 其他全選服務(wù)器平臺開發(fā)-默認附加開發(fā)-全選nn在“數(shù)據(jù)庫“中選擇:mysql 服務(wù)器-默認在“服務(wù)器“中選擇:u 服務(wù)器平臺-默認u 系統(tǒng)管理工具全選在“桌面“中選擇:默認在“系統(tǒng)管理“中選擇:u SNMP全選u 系統(tǒng)管理-默認nn13. 安裝完成后,點擊“重新引導(dǎo)“,會重啟,能啟動起來則省去這 1 步,啟動不起來則按下面步驟執(zhí)行:14.系統(tǒng)重新啟動后,按 F2 鍵,進入系統(tǒng)設(shè)置界面選擇:System BIOS Processor Settings 將 Virtualization Technology 設(shè)置為 Disabled。然后
9、點擊“exitSaving Changes選Yesreboot選 Yes”,重新啟動。15. 系統(tǒng)重新啟動后,歡迎界面,鼠標單擊“前進”按鈕繼續(xù)證信息,必須選“是,我同意該證協(xié)議”鼠標單擊“前進”按鈕繼續(xù)。16.17. 創(chuàng)建新用戶和(tms/TmsUser),鼠標單擊“前進”按鈕繼續(xù)18. 時間設(shè)置可以聯(lián)網(wǎng)同步或手工設(shè)置,鼠標單擊“前進”按鈕繼續(xù)。19. Kdump 選擇不啟用,鼠標單擊“完成”按鈕繼續(xù);就可看到Linux 系統(tǒng)登錄界面了。2.服務(wù)器網(wǎng)絡(luò)設(shè)置:1. 點擊:系統(tǒng)首選項網(wǎng)絡(luò)連接2. 選中要操作的網(wǎng)卡,點擊編輯3. 選中“自動連接”,選擇 IPv4 設(shè)置,將方法選為“手動”,然后點擊
10、“添加”,依次輸入地址、子網(wǎng)掩碼、網(wǎng)關(guān),DNS; 選擇“對所有用戶可用“,然后點”應(yīng)用“即可。4.若配置完成后還是連接不通,則在命令行中執(zhí)行如下命令: roottmsserver#ifconfig eth0 downroottmsserver#ifconfig eth0 up3.設(shè)置對 NTFS 格式硬盤的支持:Centos 默認不支持 NTFS 格式的文件需要安裝和配置?!景惭b步驟】:1. 軟件的包:從最新()rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 并拷貝到要安裝的的某個目錄下(例子中是拷貝到/home 目錄下)2. 軟件安裝:進入 rpmfor
11、ge-release-0.5.3-1.el6.rf.x86_64.rpm 所在的目錄,安裝,如下:roottmsserver# rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm3. 安裝安裝 ntfs-3groottmsserver# yum install fuse-ntfs-3gLoaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile* base: * extras: ftp.nara.wide.ad.jp* r
12、pmforge: apt.sw.be* updates: rpmforgerpmforge/primary rpmforgeSetting up Install Process| 1.1 kB| 1.3 MB 3921/392100:0001:22Package fuse-2.8.3-1.el6.i686 already installed and latest versionResolving Dependencies Running transaction check Package fuse-ntfs-3g.i686 0:2010.10.2-1.el6.rf set to be upda
13、ted Finished Dependency Resolution Dependencies Resolved=PackageArchVersionRepositorySize=Installing:fuse-ntfs-3gi6862010.10.2-1.el6.rfrpmforge637 kTransaction Summary=InstallUpgrade1 Package(s)0 Package(s)Total download size: 637 kInstalled size: 1.4 M Is this ok y/N: yDownloading Packages:fuse-ntf
14、s-3g-2010.10.2-1.el6.rf.i686.rpm Running rpm_check_debugRunning Transaction Test Transaction Test Succeeded Running TransactionWarning: RPMDB altered outside of yum.| 637 kB00:35InstallingInstalled: fuse-ntfs-3g-2010.10.2-1.el6.rf.i6861/1fuse-ntfs-3g.i686 0:2010.10.2-1.el6.rfComplete!安裝,將 NTFS 格式的移動
15、硬盤USB 口,可以自動掛載并識別出來。4.FTP 服務(wù)器的安裝:這里,我們安裝的 FTP 服務(wù)器為:ProFTPD 服務(wù)器。ProFTPD 是一個 Unix 平臺上或是類 Unix 平臺上(如 Linux, FreeBSD 等)的 FTP 服務(wù)器程序。proftpd:Professional FTP daemon 是Wu-FTP 的弱項而開發(fā)的,除了改進的安全性,還具備許多 Wu-FTP 沒有的特點,能以 Stand-alone、xinetd 模式運行等。ProFTP 已經(jīng)成為繼Wu-FTP 之后最為流行的 FTP 服務(wù)器軟件,越來越多的站點選用它構(gòu)筑安全高效的 FTP 站點,ProFTP
16、配置方便,并有 MySQL 和 Quota 模塊可供選擇,利用它們的完美結(jié)合可以實現(xiàn)非系統(tǒng)賬號的管理和用戶磁盤的限制?!景惭b步驟】:軟件:從proftpd-1.3.5.tar.gz 并拷貝到要安裝的的某個目錄下(例4.子中是拷貝到/home 目錄下)軟件安裝:進入 proftpd-1.3.5.tar.gz 所在的目錄,解壓并安裝,如下:roottmsserver# cd /home roottmsserver# tar zxvf proftpd-1.3.5.tar.gz roottmsserver# cd proftpd-1.3.5roottmsserver proftpd-1.3.5# ./
17、configure -prefix=/usr/local/proftpd roottmsserver proftpd-1.3.5# makeroottmsserver proftpd-1.3.5# make install5.修改配置文件#備份原來的配置文件roottmsserver# cd /usr/local/proftpd/etc/ roottmsserveretc# cp proftpd.conf proftpd_conf_bak #修改配置文件:將配置文件內(nèi)容修改如下roottmsserveretc# vim proftpd.conf#1ServerName TMS FTP Serv
18、er6.ServerType standalone # 以DefaultServer onPort 21 # FTP 端口進程方式運行#2Umask 002 # 權(quán)限,建議設(shè)置為 002DNS 反查DNS 反查UseReverseDNS off #IdentLookups off #ServerIdent off # 隱藏軟件版本信息斷點續(xù)傳AllowRetrieveRestart on #AllowStoreRestart on # 上傳斷點續(xù)傳#3# 虛擬用戶認證信息AuthOrder mod_auth_file.c # 只虛擬用戶登陸AuthUserFile /usr/local/pro
19、ftpd/etc/ftp.usersAuthGroupFile /usr/local/proftpd/etc/ftp.group DefaultRoot # 將用戶限定在根目錄下#4PassivePorts 20000 30000 #模式端口段SystemLog /var/log/proftpd/proftpd.log # 軟件日志TransferLog /var/log/proftpd/proftpd.xfer.logLogFormat default %h %u %t %D %r %s %b # 日志格式ExtendedLog /var/log/proftpd/access.log WRI
20、TE,READ default #日志最大連接MaxInstances 250 #MaxClients 20 # 最大用戶數(shù)MaxLoginAttempts 3 # 最大嘗試連接次數(shù)驗證超時TimeoutLogin 30 #TimeoutIdle 120 # 發(fā)呆超時TimeoutNoTransfer 300 # 無數(shù)據(jù)傳輸超時User nobody # 定義ftp 以哪個用戶Group nobody # 定義 ftp 以哪個用戶組運行運行#5 AllowOverwrite on #寫入覆蓋 # 設(shè)置虛擬用戶讀權(quán)限AllowALL# # 設(shè)置 omd 用戶所限#Order allow,deny
21、 AllowUser omd DenyALL#7. 生成KDM 目錄和日志目錄roottmsserveretc# mkdir -p /data/dcps/kdmroottmsserveretc# mkdir -p /var/log/proftpd8. 添加虛擬用戶和組#添加虛擬用戶dcps 用戶,并生成用戶文件roottmsserver#-home=/data/dcps/usr/local/proftpd/bin/ftpasswd-passwd-name=dcps-uid=2001-gid=2000-shell=/sbin/nologin-file=/usr/local/proftpd/etc
22、/ftp.users#在彈出的 password 中輸入為:dcps#添加虛擬用戶組 tmsftp 用戶組,并將 dcps 用戶添加到組里,并生成用戶組文件roottmsserver# /usr/local/proftpd/bin/ftpasswd -group -name=tmsftp -gid=2000-member=bsmp -file=/usr/local/proftpd/etc/ftp.group設(shè)置 FTP 目錄權(quán)限9.roottmsserver# chown -R 2001:2000 /data/dcps/#roottmsserver# chown -R 2001:2000 /d
23、ata/dcps/kdm/ 修改 hosts,設(shè)置計算機名 tmsserver 與 ip 的對應(yīng)關(guān)系roottmsserver# vi /etc/hosts#添加一行,內(nèi)容為: tmsserver將 proftpd 添加到系統(tǒng)服務(wù)10.11.roottmsserver#/etc/rc.d/init.d/proftpdcp/home/proftpd-1.3.5/contrib/dist/rpm/proftpd.init.d#修改 proftpd 文件roottmsserver# vim /etc/rc.d/init.d/proftpd#將 proftpd 中的全部內(nèi)容替換為如
24、下內(nèi)容:#!/bin/sh# Startup script for ProFTPD # chkconfig: - 85 15# description: ProFTPD is an enhanced FTP server with a focus towards # # # #simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including
25、support for multiple virtual FTP servers, anonymous FTP, and permission-based directory visibility.# processname: proftpd# config: /etc/proftpd.conf# pidfile: /var/run/proftpd/proftpd.pid# BEGIN INIT INFO# Provides: proftpd ftpserver# Required-Start: $local_fs $network $named $remote_fs # Required-S
26、top: $local_fs $network $named $remote_fs # Default-Stop: 0 1 6# Short-Description: ProFTPd FTP Server# Description: ProFTPd is an enhanced FTP server with a focus towards# #simplicity, security, and ease of configuration.It features a very Apache-like configuration syntax, and a highly customizable
27、 server infrastructure,#including support for multiple virtual FTP servers,anonymous FTP, and permission-based directory visibility.# END INIT INFO#PATH=$PATH:/usr/local/proftpd/sbin # Source function library. /etc/rc.d/init.d/functions# Source networking configuration.#. /etc/sysconfig/network# Sou
28、rce ProFTPD configuration.#PROFTPD_OPTIONS=#if -f /etc/sysconfig/proftpd ; then#fi. /etc/sysconfig/proftpd# Check that networking is enabled.# $NETWORKING = no & exit 1# Make sure the binary is present.# -x /usr/sbin/proftpd | exit 5RETVAL=0prog=proftpdstart() echo -n $Starting $prog: #daemon proftp
29、d $PROFTPD_OPTIONS 2/dev/nulldaemon /usr/local/proftpd/sbin/proftpd -c /usr/local/proftpd/etc/proftpd.conf RETVAL=$?echo $RETVAL -eq 0 & touch /var/lock/subsys/proftpdstop() echo -n $Shutting down $prog: killproc proftpdRETVAL=$?echo $RETVAL -eq 0 & rm -f /var/lock/subsys/proftpd# See how we were ca
30、lled.case $1 instart)start;stop)stop;restart)stop start;*)echo Usage: $prog start|stop|restart exit 2esac#exit $RETVALroottmsserver# chmod 755 /etc/rc.d/init.d/proftpdroottmsserver# chkconfig -add proftpd roottmsserver# chkconfig proftpd on roottmsserver# chkconfig -list proftpdproftpd 0:關(guān)閉 1:關(guān)閉 2:啟
31、用 3:啟用 4:啟用5:啟用 6:關(guān)閉設(shè)置:只主動模式添加下面的第、條,只模式添加下12.面的、條,兩種模式都添加下面、條roottmsserver# /sbin/iptables -I INPUT -p tcp -dport 20 -j ACCEPTroottmsserver# /sbin/iptables -I INPUT -p tcp -dport 21 -j ACCEPT roottmsserver# /sbin/iptables -I INPUT -p tcp -dport 20000:30000 -j ACCEPT roottmsserver# service iptables
32、saveroottmsserver# service iptables restart啟動,proftpd 服務(wù)roottmsserver# service proftpd start13.正在啟動 proftpd: 安裝完畢,測試 ftp確定14.通過 ftp 客戶端連接此 FTP server 驗證可以連接和傳送數(shù)據(jù),即可。5.MySQL 數(shù)據(jù)庫配置:安裝 centos 后,mysql 已經(jīng)安裝完畢,這里我們需要對他進行配置。一數(shù)據(jù)庫配置【配置步驟】:1. 查看 Mysql 是否安裝,服務(wù)是否已啟動roottmsserver# servicemysqld 已停mysqldstatus#若狀
33、態(tài)為已停,則啟動roottmsserver# service正在啟動 mysqld:mysqldstart確定2. 設(shè)置root:因 mysql 默認root 用戶無,因此要為 root 設(shè)置,操作如下roottmsserver# mysqladmin -u root password !#123qwe3. 設(shè)置 mysql 開機自啟動#1. 查看 mysql 是否在自啟動列表中,如果在則顯示 mysqld 的狀態(tài)。roottmsserver# chkconfig-list mysqldmysqld0:關(guān)閉 1:關(guān)閉 2: 關(guān)閉 3: 關(guān)閉 4: 關(guān)閉 5: 關(guān)閉 6:關(guān)閉#如果沒有則不顯示,
34、需要執(zhí)行下列操作將 mysqld 服務(wù)添加到自啟動列表中roottmsserver #chkconfig-add mysqld#2.設(shè)置 mysql 開機自啟動roottmsserver #chkconfig mysqld on roottmsserver #chkconfig list mysqldmysqld0:關(guān)閉 1:關(guān)閉 2:啟用 3:啟用 4:啟用 5:啟用 6:關(guān)閉4. 設(shè)置字符集:將 mysql 的字符集設(shè)置為 UTF8 roottmsserver # vi /etc/f#1.在mysqld下增加: default-character-set=utf8init_connect=
35、SET NAMES utf8#2.在最后一行增加數(shù)據(jù)面默認關(guān)閉連接的時間,見如下兩行: wait_timeout=388000interactive_timeout=388000#3.保存后重新啟動 mysql: roottmsserver # service mysqld restart5. 設(shè)置,mysql 端口roottmsserver # /sbin/iptables -I INPUT -p tcp -dport 3306 -j ACCEPTroottmsserver # service iptables saveIptables: 將規(guī)則保存到 /etc/sysconfig/ipta
36、bles:確定roottmsserver # service iptables restart6. 設(shè)置 mysql 可以roottmsserver # mysql -u root -pmysqlgrant all privileges on *.* to root% identified by !#123qwe with grant option; query OK 0 rows affectedmysqlflush privileges;query OK 0 rows affectedmysql exitBye二. 創(chuàng)建數(shù)據(jù)庫及數(shù)據(jù)表1. 創(chuàng)建數(shù)據(jù)庫#登錄到 mysqlroottmsser
37、ver # mysql -u root p#查看要創(chuàng)建的數(shù)據(jù)庫是否存在mysql show databases;+| database+|+| information_schema| mysql| test+#創(chuàng)建數(shù)據(jù)庫mysql create database tms;Query OK, 1 row affected (0.00 sec)2. 創(chuàng)建數(shù)據(jù)表,導(dǎo)入初始化數(shù)據(jù)#進入剛創(chuàng)建的數(shù)據(jù)庫mysql use tms;Databasechanged#導(dǎo)入初始化數(shù)據(jù)mysql exit;roottmsserver #mysql -uroot -p -default-character-set=u
38、tf8 tms use tms;mysql show tables;+| tables_in_tms+| tmsspl| tmsdevice| .|+能夠顯示表,說明導(dǎo)入三Mysql 斷電,自啟動不了解決方法roottmsserver # /usr/libexec/mysqld -basedir=/usr -datadir=/var/lib/mysql -user=mysql-log-error=/var/log/mysqld.log-socket=/var/lib/mysql/mysql.sock-pid-file=/var/run/mysqld/mysqld.pidroottmsserve
39、r # service mysqld start6.USBKey 驅(qū)動安裝與配置:USBKey 驅(qū)動的安裝與配置步驟如下:將有驅(qū)動程序的目錄及文件(這里目錄是 pcsc_xh_20140721)拷貝到要安裝的的某個目錄下(例子中是拷貝到/home 目錄下)軟件安裝:進入 pcsc_xh_20140721 所在的目錄,解壓并安裝,如下:#1.安裝庫roottmsserver# cd /home/pcsc_xh_201407211.2.roottmsserver pcsc_xh_20140721# tar -jxvf libusb-1.0.8.tar.bz2libusb-1.0.8/ libusb
40、-1.0.8/sh.roottmsserver pcsc_xh_20140721# cd libusb-1.0.8roottmsserver libusb-1.0.8# ./configureCheck for a BSD-Compatible install.roottmsserver libusb-1.0.8# make makeall-recursive.make1: Entering directory.roottmsserver libusb-1.0.8# make installMaking install in libusbmake1: Entering directory .#
41、2.安裝 pcseroottmsserver libusb-1.0.8# cd /home/pcsc_xh_20140721roottmsserver pcsc_xh_20140721# tar -jxvf pcse-1.7.4.tar.bz2pcspcse-1.7.4/e-1.7.4/shroottmsserver pcsc_xh_20140721# cd pcse-1.7.4roottmsserverpcse-1.7.4#./configure-disable-libudev-enable-libusbLIBUSB_CFLAGS=-I/usr/local/include/libusb-1.
42、0 LIBUSB_LIBS=-lusb-1.0Check for a BSD-Compatible install.roottmsserver pcse-1.7.4#makeroottmsserver pcse-1.7.4#make install#3.安裝 ccid roottmsserver pcse-1.7.4# cd /home/pcsc_xh_20140721roottmsserver pcsc_xh_20140721# tar -jxvf ccid-1.4.4.tar.bz2ccid-1.4.4.tar.bz2/ ccid-1.4.4.tar.bz2/sh.roottmsserve
43、r pcsc_xh_20140721# cd ccid-1.4.4roottmsserverccid-1.4.4.#./configurePCSC_CFLAGS=-I/usr/local/include/PCSCPCSC_LIBS=-lpcseLIBUSB_CFLAGS=-I/usr/local/include/libusb-1.0LIBUSB_LIBS=-lusb-1.0-enable-usbdropdir=/usr/local/lib/pcsc/driversCheck for a BSD-Compatible install.roottmsserver ccid-1.4.4#makero
44、ottmsserver ccid-1.4.4#make install#4.拷貝配置文件roottmsserver ccid-1.4.4# cd /home/pcsc_xh_20140721roottmsserver pcsc_xh_20140721# cp pcscd.conf /etc/ld.so.conf.d3.設(shè)置roottmsserver #find / -name Info.plist/opt/cisc/ccid-1.4.4/src/Info.plist/usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist/u
45、sr/lib64/pcsc/drivers/openct-ifd.bundle/Contents/Info.plist/usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plistroottmsserver #cd /usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contentsroottmsserver Contents#vi Info.plist #找到,如下內(nèi)容ifdVendorID#加入一行:0xFFFF#找到,如下內(nèi)容ifdProductID加入一行:0x9004#找到,如下內(nèi)容ifdFr
46、iendlyName加入一行:BSD USBKEY4. 安裝測試工具并測試#4.1 安裝測試工具roottmsserver pcsc_xh_20140721# cd /homeroottmsserver home # tar -zxvf opensc-0.12.2.tar.gzroottmsserver home # cd opensc-0.12.2roottmsserver opensc-0.12.2 # cp /usr/local/include/PCSC/* /usr/include/roottmsserver opensc-0.12.2 # ./configureroottmsserv
47、er opensc-0.12.2 #makeroottmsserver opensc-0.12.2 #make installroottmsserveropensc-0.12.2#exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/:/usr/local/lib64/#4.2 測試#USBKey#執(zhí)行如下命令,如果有結(jié)果則表明 USBKey 驅(qū)動安裝roottmsserver opensc-0.12.2 # opensc-tool roottmsserver opensc-0.12.2 # opensc-tool info roottms
48、server opensc-0.12.2 # opensc-tool serialroottmsserver opensc-0.12.2 # opensc-tool -nameroottmsserver opensc-0.12.2 # opensc-tool -iroottmsserver opensc-0.12.2 # opensc-tool -a7.NTP Server 的配置:CentOS 6.5 系統(tǒng)一般已經(jīng)自帶了 NTPD 服務(wù),一般默認是安裝了的,如果沒有安裝,先檢查下,然后用 yum 方式安裝下就 OK,具體如下:#1.查看 NTPD 服務(wù)是否安裝roottmsserver #
49、rpm -q ntp/ 這表示已安裝了,如果沒有安裝,這是空白。ntp-4.2.6p5-1.el6.centos.x86_64#2.若沒有安裝,則按照如下安裝roottmsserver # yum install ntp.#3.安裝完成后,將 NTP 服務(wù)為配置自啟動roottmsserver# chkconfig -lisntpd0:關(guān)閉 1:關(guān)閉 2: 關(guān)閉pd3: 關(guān)閉 4: 關(guān)閉 5: 關(guān)閉 6:關(guān)閉roottmsserver# chkconfigntpdonroottmsserver# chkconfig -lispdntpd0:關(guān)閉 1:關(guān)閉 2:啟用 3:啟用 4:啟用 5:啟用
50、 6:關(guān)閉#4. 在配置前,先使用 ntpdate 手動同步下時間,免得本機與外部時間服務(wù)器時間差距太大, 讓 ntpd 不能正常同步。roottmsserver# ntpdate -u 622 Dec 16:52:38 ntpdate6400: adjust time server 6 offset 0.012135 sec#5. 配置內(nèi)網(wǎng)NTP Server#先備份 ntp server 原來的配置文件roottmsserver#vim/etc/ntp.conf /etc/ntp_conf_bak#修改 ntp server 的配置文件,紅色
51、加黑部分是修改的內(nèi)容,其他的是默認roottmsserver#vim/etc/ntp.conf# For more information about this file, see the man pages# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).driftfile /var/lib/ntp/drift# Permit time synchronization with our time source, but do not# permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noqueryrestrict -6 default kod nomodify notrap
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 快手運營簽約合同協(xié)議
- 門靜脈血栓治療
- 低鉀的診斷鑒別診斷治療
- 二零二五版書店租賃協(xié)議書
- 房地產(chǎn)中介買賣居間合同二零二五年
- 二零二五醫(yī)院專家聘用協(xié)議書
- 二零二五山地耕地承包合同
- ??谱o理領(lǐng)域中的醫(yī)療大數(shù)據(jù)技術(shù)應(yīng)用
- 借貸合同構(gòu)成要件包括
- 二零二五施工安全環(huán)保合同書協(xié)議書范例
- 連云港2025年連云港市贛榆區(qū)事業(yè)單位招聘31人筆試歷年參考題庫附帶答案詳解
- 8.1薪火相傳的傳統(tǒng)美德 課件-2024-2025學(xué)年統(tǒng)編版道德與法治七年級下冊
- 臨沂市羅莊區(qū)興羅資本投資有限公司招聘筆試題庫2025
- 湖北省武漢市2025屆高中畢業(yè)生四月調(diào)研考試語文試卷及答案(武漢四調(diào))
- 期中試題2024-2025學(xué)年人教PEP版英語六年級下冊(含答案)
- 食堂負面清單管理制度
- 2025年安徽省示范高中皖北協(xié)作區(qū)第27屆聯(lián)考 生物學(xué)(含解析)
- 2025年度專業(yè)技術(shù)人員繼續(xù)教育公需科目考試題(附答案)
- 2025年中考語文《教材字音、字形》梳理
- 2024年上半年教資科目一試題
- 施工員頂崗實習(xí)報告范文
評論
0/150
提交評論