Materials Studio8.0安装教程
一.环境准备
1.切换root用户
2.首先检查主机名。
hostname
3.检查环境:
rpm -qa|grep glibc; rpm -qa|grep libgcc; rpm -qa|grep libstdc++ ;rpm -qa|grep redhat-lsb
与下列对照,安装缺少文件
glibc-common-2.12-1.80.el6.x86_64 glibc-2.12-1.80.el6.x86_64 glibc-devel-2.12-1.80.el6.x86_64 glibc-2.12-1.80.el6.i686 glibc-headers-2.12-1.80.el6.x86_64 compat-glibc-2.5-46.2.x86_64 compat-glibc-headers-2.5-46.2.x86_64 libgcc-4.4.6-4.el6.i686 libgcc-4.4.6-4.el6.x86_64 libstdc++-devel-4.4.6-4.el6.x86_64 compat-libstdc++-33-3.2.3-69.el6.x86_64 compat-libstdc++-296-2.96-144.el6.i686 redhat-lsb-printing-4.0-3.el6.centos.x86_64 redhat-lsb-graphics-4.0-3.el6.centos.x86_64 redhat-lsb-4.0-3.el6.centos.x86_64 |
这些库都要有,如果缺少哪个库,自行用 yumlist | grep 库名 和 yum install 库名 去查询和安装,版本不重要
4.重启电脑,使安装环境生效(无安装,则跳过)
二.Materials Studio8.0安装
此时切换普通用户
1.拷贝Materials Studio8.0 linux版压缩包,并解压:
tar xzvf MaterialsStudio80.tgz
解压完毕后,检查一下MaterialsStudio80文件夹的个头儿,应该是1G多:
du -sh MaterialsStudio80
2.安装
cd MaterialsStudio80
./install
Performing per-user installation of Materials Studio 8.0. Restart this
installation as root if you wish to perform an RPM-based installation.
Please enter the location in which to install Materials Studio 8.0
The location where Materials Studio will be installed is /MaterialsStudio8.0
[/home/gg/Accelrys] /home/gg/Accelrys80(安装有老版本,所以Accelrys文件夹存在,故改为Accelrys80)
The Accelrys License Pack is required in order to run Materials Studio 8.0.
Please enter the location of a License Pack installation, or an empty directory
into which the License Pack will be installed.
[/home/gg/Accelrys80]
/home/gg/Accelrys80 does not appear to contain a supported License Pack installation. Would you like to install it to that location? [Y/n]
Y
Do you wish to start the Gateway service after installation? Answer no here if
you wish to configure security settings before starting. (Y/n)
Y
Running LicensePack installation...
Initializing InstallShield Wizard........
Launching InstallShield Wizard........
/home/gg/Accelrys80/MaterialsStudio80/LicensePack/lp_setup_linux.sh: line 1735: warning: here-document at line 1735
delimited by end-of-file (wanted `/dev/null')
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Welcome to the InstallShield Wizard for Accelrys License Pack 7.6.11
The InstallShield Wizard will install Accelrys License Pack 7.6.11 on your
computer.
To continue, choose Next.
Accelrys License Pack 7.6.11
Accelrys Software Inc.
http://www.accelrys.com
Press 1 for Next, 3 to Cancel or 5 to Redisplay [1]
回车
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Accelrys License Pack 7.6.11 Install Location
Please specify a directory or press Enter to accept the default directory.
Destination Directory [/home/gg/Accelrys80]
Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
回车
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Select the features for "Accelrys License Pack 7.6.11" you would like to
install:
Accelrys License Pack 7.6.11
To select/deselect a feature or to view its children, type its number:
1. [x] LicensePack
2. [ ] Compatibility LicensePack
The Compatibility LicensePack is required for supporting Accelrys software
shipped with License Packs 6.x or lower and to support IRIX and Solaris
platforms. See License Pack documentation for complete list of Accelrys
software supported by this License Pack.
Other options:
0. Continue installing
Enter command [0]
Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
回车
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Accelrys License Pack 7.6.11 will be installed in the following location:
/home/gg/Accelrys80/LicensePack
with the following features:
LicensePack
for a total size:
157.7 MB
Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1]
回车
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
Installing Accelrys License Pack 7.6.11. Please wait...
|-----------|-----------|-----------|------------|
0% 25% 50% 75% 100%
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6
Creating uninstaller...
Finalizing the Vital Product Data Registry. Please wait...
Configuring License Pack
回车
-------------------------------------------------------------------------------
Accelrys License Pack 7.6.11 - InstallShield Wizard
The InstallShield Wizard has successfully installed Accelrys License Pack
7.6.11. Choose Finish to exit the wizard.
Press 3 to Finish or 5 to Redisplay [3]
回车
Running installation ...
Running ConfigureMaterialsStudio.pl
/usr/bin/free: invalid option -- 'o'
Usage:
free [options]
Options:
-b, --bytes show output in bytes
-k, --kilo show output in kilobytes
-m, --mega show output in megabytes
-g, --giga show output in gigabytes
--tera show output in terabytes
-h, --human show human-readable output
--si use powers of 1000 not 1024
-l, --lohi show detailed low and high memory statistics
-t, --total show total for RAM + swap
-s N, --seconds N repeat printing every N seconds
-c N, --count N repeat printing N times, then exit
-w, --wide wide output
--help display this help and exit
-V, --version output version information and exit
For more details see free(1).
Gateway configuration...
Port 18888 appears to be available right now...
Starting gateway at:
http://zifeng:18888/
/home/gg/Accelrys80/MaterialsStudio8.0/etc/Gateway/root_default/httpd/bin/apachectl start: httpd started
Gateway start succeeded - running as process 10355.
Testing gateway installation for script u/dsd_test.pl
Running GET for url http://zifeng:18888/dsd/commands/u/dsd_test.pl
It works! ...
This is the simple cgi test output ...
Test succeeded, it appears!
1) Enter temporary license password
2) Set connection to license server
3) List command line license administration tools
99) Finished with license configuration
Choose one of the above options: Invalid response. Choices are: <1/2/3/99>
Choose one of the above options:99
Exiting program
3.修改证书
cd /home/gg/software/MaterialsStudio8.0/_SolidSQUAD_
vi msi.lic
更改文件第一行主机名:
SERVER localhost ANY 25100
保存
4.复制证书至License目录
cp msi.lic /home/gg/Accelrys80/LicensePack/Licenses/
5.启动license服务
cd /home/gg/Accelrys80/LicensePack/etc/
. lp_profile
lp_server -s
三.添加自启
切换root用户
1.添加gateway服务至开机自启列表
cd /home/gg/Accelrys80/MaterialsStudio8.0/etc/Gateway/
cp ./msgateway_control_18888 /etc/rc.d/init.d/
chkconfig --add msgateway_control_18888
2.添加license服务至开机自启列表
用以下命令获取当前路径:
cd /home/gg/Accelrys80/LicensePack/etc/
pwd
复制路径,更改文件:
vi /etc/rc.d/rc.local
在末尾添加以下内容:
. /home/gg/Accelrys80/LicensePack/etc /lp_profile
lp_server–s
3.开放端口号
Centos7执行以下命令:
systemctl stop firewalld.service
systemctl disable firewalld.service
Centos6执行以下命令:
service iptables stop
chkconfig iptables off
显示success即为成功
注意:Materials Studio默认网关端口号为18888,若端口号更改为其它,将18888替换即可。