solaris

Solaris apache2 php

元气小坏坏 提交于 2019-12-05 03:09:13
設定、測試與啟動 Apache2 Solaris 10 已經內置安裝了 Apache 2.xx,只需要做一些設定便可以使用。 1. 首先用 Root 了登入文字模式系統 ( Console Mode ) 2. 複制 /etc/apache2/httpd.conf-example 到 /etc/apache2/httpd.conf # cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf 3. 編輯 /etc/apache2/httpd.conf 設定你所需要的 ServerName 伺服器名稱,預設為 127.0.0.1 在 ServerAdmin 設定正確的 E-mail 地址 4. 使用以下指令啟動 Apache # svcadm enable apache2 然後,試一試從新啟動 Solaris ,看一看 Apache 能不自動啟動。基本網頁文件位置為 /var/apache2/htdocs 。 設定、測試與啟動 MySQL Solaris 10 已經內置安裝了 MySQL。安裝者必須要用 Root 身份登入系統。以下的安裝步驟可以在 /usr/sfw/src/mysql/Docs 目錄中找到。 用 root 身份 login 到 Console mode 中,並且進行資料庫的事前準備。 # /usr/sfw

【译】Java8官方教程(一):Java技术概述

雨燕双飞 提交于 2019-12-05 03:03:40
原文地址: docs.oracle.com/javase/tuto… 课程:Java技术概述 关于Java技术的讨论似乎无处不在,但它究竟是什么呢?下面几节将解释Java技术是怎样同时作为编程语言和平台的,并且提供这项技术能为你做些什么的概述。 Java技术到底是什么? Java技术能做什么? Java技术将如何改变我们的生活? Java技术到底是什么? Java技术既是一门编程语言,同时又是一个平台。 Java编程语言 Java编程语言是一门高级语言,可以用以下的所有流行词汇来描述它: 简单 面向对象 分布式 多线程 动态的 体系结构中立 可移植 高效 健壮 安全 前面的每个术语都在James Gosling和Henry McGilton撰写的白皮书-《The Java Language Environment》中进行了解释。 在Java编程语言中,所有的源代码都是用.java拓展名的纯文本文件编写的,这些源文件通过javac编译器编译成.class文件。.class文件中包含的不是与本地机器相关的机器码,而是可被Java虚拟机(Java VM)执行的字节码,Java启动工具使用Java虚拟机实例运行你的程序。 因为Java VM可以在不同的操作系统上使用,因此.class文件也可以在Microsoft Windows,Solaris OS, Linux, 或者 Mac

How to install R on Solaris on a VirtualBox virtual machine?

本小妞迷上赌 提交于 2019-12-05 02:58:41
This Q&A is a response to this comment . The answer to the question in the comment is not trivial, is too big for a comment, and not suitable as an answer to the question in that thread (answering my own question is officially encouraged ). If you have a better answer please post it! The question is: How to install R on Solaris on a VirtualBox virtual machine? Start by downloading and installing Oracle VM VirtualBox . Then download and unzip the Oracle Solaris 11.1 VirtualBox Template . After you unzip the Oracle template you should see a file called OracleSolaris11_1.ova , that's what you'll

what is the role of “vm thread” in JDK 1.6 [duplicate]

Deadly 提交于 2019-12-05 01:55:29
This question already has an answer here: What does java “VM thread” do? 3 answers We are seeing lot of activity of this thread in our customer's system and hence would like to know what might be happening. any links, info, tutorials ? P.S : this is happening on Solaris 10 with JDK 1.6.0_23. developer this thread will give you some step to proceed. If possible i will provide more. http://mail.openjdk.java.net/pipermail/hotspot-dev/2009-February/001249.html This some more details i can share about VM thread If the “Current thread” is the VMThread then you need to look for the “VM_Operation”

Export an application using Sparc architecture to intel x86

烂漫一生 提交于 2019-12-04 21:00:16
I'm using an application developed in Sun Solaris 8 and it depends of the architecture SPARC ( the application using some librairies of the system Solaris 8) . Is it possible to export that application from SPARC to intel x86 ? Can i export also in another OS like Ubuntu, Windows or other ? I hope that was clear and if you need more information i'll try to clarify. Thanks. I'm assuming we're talking about a native application here (a machine code binary). Short answer: No to both questions. Long answer: Is it possible to export that application from SPARC to Intel x86? Yes, but that would

CORBA ORB runtime define local IP interface usage

人盡茶涼 提交于 2019-12-04 20:16:26
We have an existing application which has set up a CORBA ORB runtime environment as client. At the moment we don't specify any local interface (IP/Ethernet) to use and the runtime seems to get some default interface on our local machine. The machine used is Oracle with Solaris operating system. The ORB runtime environment used here is Java 7 JDK built-in ORB. Is there any way to explicitly indicate that a certain local IP interface should be used via some property to ORB.init(...) ? For Oracle JDKs ORB it is -Dcom.sun.CORBA.ORBServerPort=10023 -Dcom.sun.CORBA.ORBServerHost=1.2.3.4 on cmdline

solaris - compile 64bit gcc - elf class error

北城以北 提交于 2019-12-04 20:15:22
I'm installing a modern version of gcc on solaris. I compiled gmp, mpfr and mpc, they're all 64bit. When I try to configure gcc as follows I get an error complaining that mpc,mpfr and gmp are the wrong elf class. What gives? ./../gcc-4.5.1/configure --prefix=/opt/OurAppDir/gcc --with-gmp=/opt/OurAppDir/gmp --with-mpfr=/opt/OurAppDir/mpfr --with-gnu-as --with-gnu-ld --build=sparc-sun-solaris2.10 checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking target system type... sparc-sun-solaris2.10 checking for a BSD-compatible install... ./..

How to get process info programmatically in C/C++ from a Solaris system?

偶尔善良 提交于 2019-12-04 15:12:16
Is there a C/C++ library, and documentation about how to collect system and process information on Solaris? Although I could parse command-line tools, I'd rather use a library that makes the task easier to do. Thanks Edit: It has been suggested to use the /proc virtual directory to collect information, however its not much better than parsing command-line tools, in the sense that I'll need to implement some sort of custom parsing for every piece of data I need. I'm looking for something along the lines of c libraries for Windows or MacOS that provides this information through a c-based systems

Ansible: How to globally set PATH for solaris

£可爱£侵袭症+ 提交于 2019-12-04 11:45:11
I am writing Ansible playbooks to setup and install our applications on Solaris servers. The problem is that the (bash) scripts which I need to execute all assume that a certain directory lies on the PATH, namely /data/bin - which would normally not be a problem were it not for Ansible ignoring all the .profile and .bashrc config. Now, I know that you can specify the environment for shell tasks via the environment flag, for example like this: - shell: printenv environment: PATH: /usr/bin:/usr/sbin:/data/bin This will properly path the /data/bin folder, and the printenv command will correctly

Java Solaris NIO OP_CONNECT problem

こ雲淡風輕ζ 提交于 2019-12-04 08:13:19
I have a Java client that connects to a C++ server using TCP Sockets using Java NIO. This works under Linux, AIX and HP/UX but under Solaris the OP_CONNECT event never fires. Further details: Selector.select() is returning 0, and the 'selected key set' is empty. The issue only occurs when connecting to the local machine (via loopback or ethernet interface), but works when connecting to a remote machine. I have confirmed the issue under two different Solaris 10 machines; a physical SPARC and virtual x64 (VMWare) using both JDK versions 1.6.0_21 and _26. Here is some test code which demonstrates