suse 版本安装 csm
1. 关闭防火墙
service SuSEfirewall2_init stop
service SuSEfirewall2_setup stop
不是永久关闭防火墙,没有写自检脚本,请各位同事注意每次开关机之后要自动启动服务,很多命令 suse 不支持,所以请注意!!!!
把安装包上传到服务器上面解压
2. 安装 gcc 包
cd /mnt/suse/x86_64/
查看一下是否镜像包,我们软件环境基于镜像包
zypper ar file:///mnt/ local-sles
zypper install gcc
zypper install gcc-c++
zypper install vsftpd
3. 安装 isa
cd /root/csm_2.0_zjrcbank/
cp sysconfig/i18n /etc/sysconfig/
cp -rf sysconfig/sag /usr/local/
mkdir -p /usr/local/isa/conf
cp -rf sysconfig/.TM_ERROR /usr/local/isa/conf/
cp /etc/profile /etc/profile.bak
cp sysconfig/profile /etc/profile
source /etc/profile *******重点必须执行
echo "* - nofile 20480" >> /etc/security/limits.conf
4. 配置 vsftpd
useradd -g 0 -m ftpuser
echo 'ftp!o@o' | passwd --stdin ftpuser
替换文件 vsftpd.conf、vsftpd.user_list 与 vsftpd.conf 同一目录在 /etc 下面
(见附件文档) 替换到 cd/root/csm_2.0_zjrcbank/sysconfig 下面
(见附件文档) 替换到 cd /etc/vsftpd.conf 下面
cp /root/csm_2.0_zjrcbank/sysconfig/vsftpd.conf /etc/vsftpd.conf
service vsftpd restart
检查是否配置成功,本地验证:ftp+ip 能否进行输入用户名、密码进入 ftp,连接工具验证:是通过连接 ftp 工具验证
5. 安装配置 mysql
groupadd -g 501 mysql
useradd -u 501 -g mysql -s /sbin/nologin mysql
cd /root/csm_2.0_zjrcbank/
tar -zxvf com_pkg/mysql-5.5.0-m2-linux-x86_64-glibc23.tar.gz -C /usr/local/
ln -s /usr/local/mysql-5.5.0-m2-linux-x86_64-glibc23/ /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql-5.5.0-m2-linux-x86_64-glibc23/
cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
id mysql 查询mysql组号
chown -R root /usr/local/mysql
cd /root/csm_2.0_zjrcbank/
替换文件 mysql
(见附件文档) 替换到 cd /root/csm_2.0_zjrcbank/ser_script 下面
cp ser_script/mysqld /etc/init.d/
cp sysconfig/my.cnf /etc/my.cnf
chmod +x /etc/init.d/mysqld
service mysqld start
echo "GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'isa1qaz2wsx' WITH GRANT OPTION;" >grant_user.sql
echo "GRANT ALL PRIVILEGES ON *.* TO isa@'%' IDENTIFIED BY 'isa1qaz2wsx' WITH GRANT OPTION;" >>grant_user.sql
echo "delete from mysql.user where user='';">>grant_user.sql
echo "flush privileges;" >>grant_user.sql
/usr/local/mysql/bin/mysql -h 127.0.0.1 -u root mysql --default-character-set=gbk
/usr/local/mysql/bin/mysql -h 127.0.0.1 -u root -pisa1qaz2wsx
本地的验证:/usr/local/mysql/bin/mysql -h127.0.0.1 -uisa -pisa1qaz2wsx isa 连接工具验证:用户名:isa 密码 isa1qaz2wsx 端口号 13306
6. 安装 jdk(先 jdk 安装后安装 solr)
tar -zxvf com_pkg/jdk-7u45-linux-x64.gz -C /usr/local/
ln -s /usr/local/jdk1.7.0_45/ /usr/local/jdk
7. 安装 solr
cd /root/csm_2.0_zjrcbank/
cp -rf com_pkg/solr/ /usr/local/solr/
cp -rf /usr/local/solr/solr/conf/*.xml /usr/local/solr/solr/CdaCollection/conf/
cp -rf /usr/local/solr/solr/conf/*.xml /usr/local/solr/solr/SimCollection/conf/
cp -rf /usr/local/solr/solr/conf/*.xml /usr/local/solr/solr/SearchCollection/conf/
cp -rf /usr/local/solr/solr.sh /etc/init.d/solr
vi /etc/init.d/solr 在开头加. /etc/profile
chmod 777 /etc/init.d/solr
service solr start
验证方法:在网页输入 http:+ip:8983(单机 8983 集群 8080)/solr
8. 安装 tomcat
cd /root/csm_2.0_zjrcbank/
tar -zxvf com_pkg/ihcapture.tar.gz -C /usr/local/isa/
tar -zxvf com_pkg/apache-tomcat-7.0.56.tar.gz -C /usr/local/
ln -s /usr/local/apache-tomcat-7.0.56/ /usr/local/tomcat
cp -rf sysconfig/ROOT.xml /usr/local/tomcat/conf/Catalina/localhost/
cp -rf sysconfig/cda.xml /usr/local/tomcat/conf/Catalina/localhost/
cp -rf sysconfig/server.xml /usr/local/tomcat/conf/
cp -rf sysconfig/catalina.sh /usr/local/tomcat/bin/catalina.sh
chmod +x /usr/local/tomcat/bin/catalina.sh
替换 tomcat
(见附件文档) 替换到 cd/root/csm_2.0_zjrcbank/ser_script 下面
cp ser_script/tomcat /etc/init.d/
chmod +x /etc/init.d/tomcat
mkdir -p /usr/local/isa
tar -zxvf com_pkg/isa-portal.tar.gz -C /usr/local/isa/
mkdir -p /usr/local/isa/webapp//downloads/
service tomcat start
9. 安装 ffmpeg
cd /root/csm_2.0_zjrcbank/com_pkg/
tar -zxvf yamdi-1.9.tar.gz
tar -zxvf x264.tar.gz
tar -zxvf lame.tar.gz
tar -zxvf ffmpeg-2.5.3.tar.gz
10. 安装 yamdi
cd /root/csm_2.0_zjrcbank/com_pkg/yamdi-1.9/
make
make install
11. 安装 x264
cd /root/csm_2.0_zjrcbank/com_pkg/x264
./configure --disable-asm --enable-shared
make && make install
12. 安装 lame
cd /root/csm_2.0_zjrcbank/com_pkg/lame
./configure --enable-shared
make && make install
13. #ffmpeg
cd /root/csm_2.0_zjrcbank/com_pkg/ffmpeg-2.5.3/
./configure --disable-yasm --enable-gpl --enable-libx264 --enable-libmp3lame
make && make install
14. 添加 crontab 脚本
cd /root/csm_2.0_zjrcbank/
cp -rf sysconfig/bin/ /usr/local/isa/
chmod 777 /usr/local/isa/bin/*
ll /usr/local/isa/bin/*
crontab -e
把下面的复制粘贴到里面保存
*/5 * * * * /usr/local/isa/bin/ICaptureWatcher.sh 1>/dev/null 2>&1
59 23 * * * /usr/local/isa/bin/LicenseIncreaseDay.sh 1>/dev/null 2>&1
*/5 * * * * /usr/local/isa/bin/restart_tomcat.sh 1>/dev/null 2>&1
59 23 * * * rm -rf /usr/local/isa/webapp/app/cda/temp/pixels/* 1>/dev/null 2>&1
mkdir -p /usr/local/isa/apps/cda/session
chmod 777 /usr/local/isa/apps/cda/session
service solr restart
service tomcat restart
suse 处理第一人啊,👍
好的,林总我修改一下
最好编辑到帖子里面,不然不便于搜索