初识solaris

部署运行你感兴趣的模型镜像

初识solaris

        这两天到sun实验室测试,检测一下我们的系统在solaris操作系统下能否正常运行。浑浑噩噩进了实验室,对从来没用过solaris的我来说,还真有点紧张。经过两天战战兢兢的测试,终于ok了, 现在稍微总结一下。以备下次使用时参考。

        首先来个简短的介绍吧。Solaris是一种由Sun Microsystems公司生产的,基于Intel和Sparc处理器的一种操作系统。SUN公司一直掌握着大型UNIX工作站市场,随着90年代Internet的发展,SPARC/Solaris系统也被广泛地应用于Web站点上。Sun主要强调自己系统的稳定性,它的设计是面向网络的。它的高可用性指的是如果有了问题此系统不用停机即可修改错误。它是为网络计算而设计的,作为第一个也是最成功的一个网络服务器系统,它在网络功能上花费了不少功夫;在网络安全方面它支持IPsec,Kerberos,AMI和智能卡。

         好了,下面介绍一下实际操作中需要的吧。

一.与linux中不同的常用命令。

1.解压缩

          在linux下我们习惯了unzip xxx.zip,但是在solaris下必须用gunzip xxx.zip或者gunzip xxx.gz。如果文件是xxx.tar.gz,则需要先使用gunzip命令再使用tar命令。

2.安装包

        在linux下我们安装文件一般是安装rpm文件或者.bin文件,在solaris下,安装包解压后,就变成了libxxx,我们需要用如下命令来安装:pkgadd -d libxxx

3.查看进程

        在linux下我们一般用ps aux | grep java看java起了什么进程,而在solaris下则要用ps -ef | grep java。杀进程是一样的用kill -i pid。

4.添加用户

         在linux下直接使用命令useradd username -g groupname即可。但是在solaris系统下,需要使用useradd -G groupname username

二.与tomcat相关的一些设置

         和其他os一样,如果要从startup.sh上启动tomcat,需要在catalina.sh中配置JAVA_HOME="JDK路径"。然后使用./startup.sh命令启动tomcat,会提示环境没配好。我的处理方法是chmod +x *.sh(当然是在tomcat/bin目录下了)。ok,这里tomcat成功启动了。

         但是有个问题是,如果是通过我的pc上的ssh client发起的会话,启动了tomcat,则如果我把ssh client关闭,则tomcat就会shut down。我们肯定不希望这样了,解决方法是用如下命令:nohup %TOMCAT_HOME%/bin/start.up.sh

         还有一个问题就是查看日志了,在linux下,我一般会用tail catalina.out -f查看日志,但是这个命令在solaris下是没用的,必须把-f参数放在前面,如:tail -f catalina.out。

三.与mysql相关的一些设置:

        安装过程网上有很多资料,这里就不再赘述了。启动mysql时,需用命令:

mysqld_safe --username=mysql &

 

四.关于编码问题

1.数据库编码

在solaris下是没有ucs2编码的,所以数据库ddl中绝对不能出现ucs2编码。

2.文件编码

我们在这里碰了好大的钉子,我用下面的代码

File file = new File("/opt/中文");

if(!file.exists()){

file.mkdirs();

}

 

在solaris下创建一个中文文件夹,竟然变成了"??",这里就是编码问题了。sun自己出的两套东西竟然不兼容,岂不好笑?后来在实验室人员的帮助之下,才明白可能是那台服务器字符编码安装有问题。然后把系统的默认会话编码改成中文就万事大吉了。

五.设置开机自起

1.设置mysql的开机自起

首先找到mysql.server的所在目录,然后分别使用以下命令做软连就ok了:

 

ln /usr/local/mysql/share/mysql/mysql.server /etc/rc3.d/S99mysql
ln 
/usr/local/mysql/share/mysql/mysql.server /etc/rc0.d/K00mysql
ln 
/usr/local/mysql/share/mysql/mysql.server /etc/rc1.d/K00mysql
ln 
/usr/local/mysql/share/mysql/mysql.server /etc/rc2.d/K00mysql
ln 
/usr/local/mysql/share/mysql/mysql.server /etc/rcS.d/K00mysql

 

2.设置tomcat的开机自启

在/etc/init.d目录下创建一个tomcatstart文件,里面写入:

nohup /opt/tomcat/bin/startup.sh

 

然后再做这个文件的软连:

ln -s /etc/init.d/mottomcat /etc/rc3.d/S99tomcat
ln -s 
/etc/init.d/mottomcat /etc/rcS.d/K99tomcat

 

        这样就ok了。

          好了,就写这么多吧,如果大家遇到什么问题,千万别忘了google哦。对了还有一个东西可以向大家介绍一下,如果连接solaris,最好可以下载一个xmanager,很好用的。

 




您可能感兴趣的与本文相关的镜像

Qwen3-8B

Qwen3-8B

文本生成
Qwen3

Qwen3 是 Qwen 系列中的最新一代大型语言模型,提供了一整套密集型和专家混合(MoE)模型。基于广泛的训练,Qwen3 在推理、指令执行、代理能力和多语言支持方面取得了突破性进展

2013年最新版的强悍Unix版本Solaris 11.1系统文件,功能十分强大,不愧是真正血统的Unix系统! Oracle Announces Availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1 Delivers Oracle Database and Java Enhancements, Expanded Mission Critical Cloud Management Capabilities and Advanced Platform Features Redwood Shores, Calif – October 26, 2012 News Facts Oracle today announced general availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1. Oracle Solaris 11 is the first cloud OS that allows customers to build large-scale enterprise-class Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS) clouds on a wide range of SPARC and x86 servers and Oracle engineered systems. Oracle Solaris Cluster 4.1 extends high availability and disaster recovery capabilities of Oracle Solaris and includes unique virtual cluster features supporting highly efficient application consolidation with best-in-class availability. Oracle Solaris 11 is already widely in production with thousands of customers with mission critical deployments across industries such as financial services, communications, healthcare, retail, public sector and media and entertainment. Read customer success stories about Oracle Solaris here. Oracle Solaris 11 is also gaining strong momentum among enterprise application vendors with hundreds of applications already qualified for Oracle Solaris Ready status through the Oracle PartnerNetwork (OPN). OPN members can develop, sell and implement their solutions on Oracle Solaris 11 and take advantage of specialized Oracle Solaris resources to expand their market reach. Customers and partners can quickly and safely upgrade to Oracle Solaris 11.1 using the built-in update tools and software repositories available with Oracle Solaris 11. Oracle will host a webcast on November 7, 2012 at 8 a.m. Pacific time on Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1, featuring Markus Flierl, vice president, Oracle Solaris Engineering, Core Technology and Bill Nesheim, vice president, Oracle Solaris Engineering, Platform Software. Register here. This event will also include an interactive chat with core developers of Oracle Solaris and Oracle Solaris Cluster. New and Enhanced Features in Oracle Solaris 11.1 Oracle Solaris 11.1 increases the performance, availability and I/O throughput of the latest Oracle Database technology. A new, optimized shared memory interface between the Oracle Database and Oracle Solaris 11.1 provides 8x faster database startup and shutdown, as well as online resizing of the Oracle Database System Global Area (SGA). Oracle Solaris 11.1 introduces unique new capabilities for optimizing Oracle Database performance. Oracle Solaris 11.1 exposes Oracle Solaris DTrace I/O interfaces that allow an Oracle Database administrator to identify I/O outliers and subsequently isolate network or storage bottlenecks. A new Oracle Solaris DTrace plug-in for Oracle Java Mission Control to enable customers to profile Java applications on Oracle Solaris production systems. New cloud management features add to Oracle Solaris 11’s zero overhead built-in virtualization capabilities across system, network and storage resources, including expanded support for Software Defined Networks (SDN) with Edge Virtual Bridging enhancements, to maximize network resource utilization and manage bandwidth in cloud environments. New built-in memory predictor monitors application memory use and provides optimized memory page sizes and resource location to speed overall application performance. Support for an unprecedented 32 TB of RAM and thousands of CPUs unlocks the full potential of Oracle’s latest server systems. Oracle Solaris Cluster 4.1 Highlights New Oracle Solaris 10 Zone Clusters allow customers to consolidate mission critical Oracle Solaris 10 applications on Oracle Solaris 11 cloud environments. Expanded disaster recovery operations using Oracle’s Sun ZFS Storage Appliance services along with Oracle Solaris Cluster 4.1 to coordinate failover of applications and data to a remote disaster recovery site. Faster application recovery with improved storage failure detection and resource dependencies management. New labeled security capability in Oracle Solaris Zone Clusters provides military grade application separation in highly consolidated mission-critical deployments using Oracle Solaris 11 Trusted Extensions. Integrated Oracle Deployments and Support Oracle Enterprise Manager Ops Center provides comprehensive cloud management capabilities for Oracle Solaris 11, including self-service provisioning of Oracle Solaris 11 Zones. Ops Center’s integrated systems management delivers enterprise scale cloud performance. Oracle Enterprise Manager Ops Center is available to Oracle Solaris customers at no additional cost under the Ops Center Everywhere Program. Oracle Solaris Studio delivers the latest in compiler optimizations, multithread performance and powerful analysis tools for native development, and optimized application performance and reliability on Oracle Solaris 11.1 systems. Oracle Solaris 11 guarantees binary compatibility with previous Oracle Solaris versions through the Oracle Solaris Binary Application Guarantee Program, which provides customers a seamless upgrade path and the industry’s best investment protection. Oracle Solaris Legacy Containers allows older Oracle Solaris environments to be brought forward onto latest generation hardware to provide power, cooling and footprint consolidation savings. OPN members can find Oracle Solaris tools and resources in the Oracle Solaris Knowledge Zone, including Oracle Solaris Ready, Oracle Solaris 11 Specialization and Oracle Solaris Development Initiative. The Oracle Solaris Remote Lab now provides a secure cloud environment for OPN members to test and validate their applications with Oracle Solaris 11 in SPARC and x86 virtual environments. Supporting Quotes “Oracle recommends Oracle Solaris 11 for all UNIX®-based Oracle implementations. Oracle Solaris 11.1 delivers over 300 new performance and feature enhancements and is engineered together with Oracle Database, middleware, applications to increase performance, streamline management and automate support for Oracle deployments,” said John Fowler, executive vice president, Systems, Oracle. “The combination of the secure, highly available capabilities of Oracle Solaris Cluster 4.1 and the built-in virtualization of Oracle Solaris 11.1 helps customers bring their most mission-critical applications into a cost effective, agile cloud environment and delivers extreme availability for enterprise applications.” “Clients are looking for ways to reduce the complexity of systems management while enabling Platform as a Service (PaaS) & Software as a Service (SaaS) clouds,” says Lee Diamante, solutions architect, Systems Computing Solutions at Forsythe. “The value of Oracle Solaris 11 is that it maintains all the enterprise-class features expected with a mission-critical OS, while bringing in new, innovative technologies. Forsythe has a long and rich history of delivering customer solutions on Oracle Solaris systems. This is why we are excited about the Solaris 11.1 release.” “Oracle is making it much easier for partners like Informatica to gain access to their software with the new testing environments; shrinking the time to measurable results and value,” said Julie Lockner, vice president, ILM, Informatica. “With the release of Oracle Solaris 11.1 Informatica customers now have access to mission critical deployments across major industries, with an environment of high performance and high availability. With all the new feature enhancements, we look forward to making the Informatica Platform certified on the Oracle Solaris 11 product family.”
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值