国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊 Sun Sparc Solaris 2.6 Apache-1.3.12+MySQL-3.23.5+PHP-3.0.15 安裝記

Sun Sparc Solaris 2.6 Apache-1.3.12+MySQL-3.23.5+PHP-3.0.15 安裝記

Jun 21, 2016 am 09:12 AM
apache home mysql nbsp

apache|mysql

????用慣了Microsft的東西,人也變得越來越懶了:-)不過還是希望Microsoft不要垮臺~~,拿到了什么新軟件包首先就是迫不及待的把光盤往光驅(qū)里面一塞,如果能夠自動運行(嘿嘿,服務(wù)還真的周到)就直接跳到下一步了,如果不行的話就找Setup.exe,Install.exe...反正很容易搞定的,然后就去泡一杯茶來,慢慢的坐下來一邊喝茶一邊不停的敲回車鍵,偶爾還要輸入什么Serial NO.*&(*&(鄙人囊中羞澀,沒有注冊碼就去。。。。呵呵,我可不知道什么地方有)。一直等到了Enerything is OK,然后就重新啟動機器,一個軟件就裝完了。
????
????前幾天,朋友對PHP感興趣,他有一臺SUN E3500,(哇塞,機器爽死了。。。1G內(nèi)存 雙 Sparc CPU)要我?guī)兔ρb一個,我滿口答應(yīng)下來,憑借7,8年前在學(xué)校里面用Xenix,VAX的經(jīng)驗,我想過去這么多年了,UNIX不會還在原地不動吧。況且,這兩年來Linux這么火爆,我也在家里倒騰了一個在玩。我想這還不是小Case...
????
????首先,想都沒有想啪、啪、啪的打開幾個IE窗口,只奔www.php.net ,www.mysql.com ,www.apache.org 去下載軟件去了。一進去,就往Latest Version 跑,哈哈,果然,有好多*.*.tar.gz包,我趕快當(dāng)、當(dāng)、當(dāng),一下子就把apache_1.3.12.tar.gz mysql-3.23.32.tar.gz(為什么不是3.23.5等下解釋),php-3.0.15.tar.gz Download 下來了~~哎呀,把我的眼睛都拖花了~~先休息休息。
????
????好了,現(xiàn)在開工了~~,撥號網(wǎng)絡(luò)-163-。。。。登陸網(wǎng)絡(luò)。。,上去了,然后telnet ***.***.***.***??username:*** password:***
$ ls 回車,嗯,扯得一大堆東西都還在~~,先規(guī)劃好目錄,因為我是普通用戶(朋友怕我用超級用戶搗亂:),我先把源代碼都cp到了$HOME/soft目錄下面,計劃東西裝到 $HOME/apache???$HOME/mysql???$HOME/php3 下面。安裝順序為先安裝MySQL再配置Apache編譯項,再安裝PHP,最后安裝Apache.然后修改各種配置(這個都是先看了別人的安裝文檔的~~牛頓不是說過嗎~~要站在巨人的肩上~~呵呵)。

????首先
????$tar -zxvf mysql-3.23.32.tar.gz??
????看著終端里面的字符在飛快的往上面串,我想手氣還不錯,沒有想到,從這時開始,噩夢就降臨了,解壓縮完成了快一大半的時候。啪的跳出一排字來error ......,大意就是文件名太長。想不到,支持長文件名的鼻祖居然怕長文件名。沒辦法又轉(zhuǎn)到www.mysql.com去看Document,原來是Sun Solaris的tar 有BUG。哼,7456。沒辦法,按照它的提示,又去下了一個gtar-sparc.gz,這可是GNU自己的tar軟件。下回來了先:
????$gzip -d gtar-sparc.gz
????生成了一個文件??gtar-sparc,然后 ln -s gtar-sparc gt (為了以后少敲幾個字,我笨手笨腳的:)再 chmod 755 gt現(xiàn)在可以開始了
????$gt -zxvf mysql-3.23.32.tar.gz
????哈哈,一路水到渠成,一口作氣~~
????$gt -zxvf php-3.0.15.tar.gz
????$gt -zxvf apache_1.3.12.tar.gz
????一切OK。然后開始編譯了,先MySQL吧。
????$./configure --prefix=$HOME/mysql
????才開始了兩行,就停下了。一看錯誤提示check gcc????no;??check cc no;哇,當(dāng)場吐血暈倒!?。〔粫?,沒有裝編譯器,那個網(wǎng)管是誰呀?我要砍他?。。?!說歸說,做還是要做的(如果你的系統(tǒng)有g(shù)cc 或者 cc的話,你也別高興得太早,呵呵,走著瞧)。又去www.gnu.org看,這個是大名鼎鼎的GCC的老家,上面說最新版是gcc-2.95.2,我不敢下,就下了一個gcc-2.8.1-sol26-sparc-opt.tar.gz一個gcc的安裝包,和一個編譯好的libstdc2.8.1-sol26-sparc-opt庫文件還有一個make-3.76.1-sol26-sparc-local.gz,如果要用gcc的話,這幾個東西是必須的。注意要是sol26版本,要到這個地方去下www.sunfreeware.com下,哈哈,那個站點可是一個好地方~~光是那個freeware就很誘人呀;-P,況且,這個地方還是SUN公司維護的呢,如果你是SUN的用戶的話,那可要多去看看。當(dāng)下來了以后。
????$gt -zxvf gcc-2.8.1-sol26-sparc-opt.tar.gz
????$gzip -d make-3.76.1-sol26-sparc-local.gz
????$pkgadd -d gcc-2.8.1-sol26-sparc-opt (要Root用戶運行)
????$pkgadd -d make-3.76.1-sol26-sparc-local
????然后把/opt/GCC281/bin加到 PATH 環(huán)境變量中間去,注意,一定要加上去,可以用 SET 看看加了沒有。不然,就找不到gcc 好了,現(xiàn)在GCC也有了,重新來過,于是又 $./configure --prefix=$HOME/mysql 哈哈,好像通過了。接下來看著輸出信息一排排的飛快的跑,心里美滋滋的。誰知道,還沒高興2分鐘~~就出現(xiàn)了一個提示checking for restartable system calls... configure: error can not run test programs while cross compiling,哇,怎么這么命苦呀!!又去看文檔,哦原來GCC-2.8.1在Sun下面工作不是很好?。。?!推薦使用egcs-1.1.2我。。。。又去下吧,去了一看,沒有egcs的for solaris 2.6的二進制版,完了,先下一個gcc-2.92.2-sol26-sparc-local.tar.gz看看吧,好相比egcs還要新些。下過來了后。ZZzzz,都晚上3點了,明天還要上班呢?。?!先睡覺去了~
????
????第二天
????$gt -zxvf gcc-2.92.2-sol26-sparc-local.tar.gz
????$pkgadd -d gcc-2.92.2-sol26-sparc-local
????注意,這個版本的GCC裝到了/usr/local/bin下面了。當(dāng)然要把這個路徑加到/opt/GCC281的前面。接下來$./configure --prefix=$HOME/mysql,結(jié)果還是在那個地方卡殼了,我快要崩潰了!!又按照文檔提示的把下面一行插入到Config.cache 文件里面。
????ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls='no'}
????結(jié)果還是不行。哎,看來編譯mysql-3.23.32是沒有什么辦法了,認栽了吧,去下一個Binary版來吧??!于是又上去找,終于找到了一個mysql-3.23.5-alpha版的for solaris 2.6(我好像記得是新加坡的一個MySQL Mirror 上面下的ftp://ftp.hjc.edu.sg/mysql)下過來后解包到了$HOME/mysql 目錄下,然后
????$cd $HOME/mysql
????$scripts/mysql_install_db
????$bin/mysqld &
????$bin/mysqlshow
????哈哈,終于看到了mysql 和 test 兩個數(shù)據(jù)庫了
????
????接下來配置apache_1.3.12
????$cd $HOME/soft/apache_1.3.12
????$./configure --prefix=$HOME/apache
????
????再安裝 PHP3.0.15
????$cd $HOME/soft/php-3.0.15
????$./configure --with-apache=$HOME/soft/apache_1.3.12 --with-mysql=$HOME/mysql --with-charset=gb2312
????如果你還有什么別的PHP3模塊,也要先編譯好了,再在這里加上去,過了好長一段是時間,通過了
????$make
????$make install
????
????還算順利~~~接下來Apache了
????$cd $HOME/soft/apache_1.3.12
????$./configure --prefix=$HOME/apache --activate-module=src/modules/php3/libphp3.a
????注意,是libphp3.a這個文件會自動生成。另外,所有的命令行要在一行輸入,如果你的telnet 終端一行限制80 的話你要用\結(jié)束在另外起義行,這個很重要!?。〗酉聛?br>????$make
????一大堆信息過后,我滿以為勝利在望,誰知道,就在節(jié)骨眼上面又卡殼了。提示httpd.h找不到!??!天哪,叫我到哪里去照這個文件呀?。。∥夜烙嬍莾蓚€GCC有沖突,于是,我又在PATH環(huán)境變量里面,把/opt/GCC281提到了/usr/local/bin的前面。再
????$make
????哈哈,通過了。$符號出來了,趕快
????$make install????
????OOOOOOoooooooooo,z終于看到了編譯成功的消息。。。??Bingo??,同志們,革命成功了一半了。
????
????趕快去修改配置。其中有幾點要注意;
????$cd $HOME/apache/conf
????修改httpd.conf 文件,把下面幾條修改一下,去掉注釋
????1、ServerName http://。。。。。。。 這個一定要去掉注釋
????2、Listen XXX.XXX.XXX:8888(其中xxx.xxx.xxx為域名,或者IP地址)
????3、port 8888 (如果是小于1023的話,要root用戶才能夠啟動httpd)
????4、AddType application/x-httpd-php3 .php3
???????AddType application/x-httpd-php3-source .phps
???????找到這兩行,把注釋去掉。
???????
????好了,現(xiàn)在啟動Apache了。
????$cd $HOME/apache/bin
????$apachectl start
????
????然后轉(zhuǎn)到htdocs目錄下編輯一個test.php3
????????phpinfo();
?????>
????再瀏覽http://XXX.XXX.XXX:8888/test.php3 就可以看到你的勞動成果了特別是有一項mySQL信息~~~哎呀,總算搞定了。
????Email:tan_xin@163.net???OICQ:1304743???ICQ:9637614??測試地址http://202.103.112.27:8888/bbs/index.php3
????
????



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1502
276
How to set environment variables in PHP environment Description of adding PHP running environment variables How to set environment variables in PHP environment Description of adding PHP running environment variables Jul 25, 2025 pm 08:33 PM

There are three main ways to set environment variables in PHP: 1. Global configuration through php.ini; 2. Passed through a web server (such as SetEnv of Apache or fastcgi_param of Nginx); 3. Use putenv() function in PHP scripts. Among them, php.ini is suitable for global and infrequently changing configurations, web server configuration is suitable for scenarios that need to be isolated, and putenv() is suitable for temporary variables. Persistence policies include configuration files (such as php.ini or web server configuration), .env files are loaded with dotenv library, and dynamic injection of variables in CI/CD processes. Security management sensitive information should be avoided hard-coded, and it is recommended to use.en

How to build a PHP Nginx environment with MacOS to configure the combination of Nginx and PHP services How to build a PHP Nginx environment with MacOS to configure the combination of Nginx and PHP services Jul 25, 2025 pm 08:24 PM

The core role of Homebrew in the construction of Mac environment is to simplify software installation and management. 1. Homebrew automatically handles dependencies and encapsulates complex compilation and installation processes into simple commands; 2. Provides a unified software package ecosystem to ensure the standardization of software installation location and configuration; 3. Integrates service management functions, and can easily start and stop services through brewservices; 4. Convenient software upgrade and maintenance, and improves system security and functionality.

How to build an online customer service robot with PHP. PHP intelligent customer service implementation technology How to build an online customer service robot with PHP. PHP intelligent customer service implementation technology Jul 25, 2025 pm 06:57 PM

PHP plays the role of connector and brain center in intelligent customer service, responsible for connecting front-end input, database storage and external AI services; 2. When implementing it, it is necessary to build a multi-layer architecture: the front-end receives user messages, the PHP back-end preprocesses and routes requests, first matches the local knowledge base, and misses, call external AI services such as OpenAI or Dialogflow to obtain intelligent reply; 3. Session management is written to MySQL and other databases by PHP to ensure context continuity; 4. Integrated AI services need to use Guzzle to send HTTP requests, safely store APIKeys, and do a good job of error handling and response analysis; 5. Database design must include sessions, messages, knowledge bases, and user tables, reasonably build indexes, ensure security and performance, and support robot memory

How to develop AI intelligent form system with PHP PHP intelligent form design and analysis How to develop AI intelligent form system with PHP PHP intelligent form design and analysis Jul 25, 2025 pm 05:54 PM

When choosing a suitable PHP framework, you need to consider comprehensively according to project needs: Laravel is suitable for rapid development and provides EloquentORM and Blade template engines, which are convenient for database operation and dynamic form rendering; Symfony is more flexible and suitable for complex systems; CodeIgniter is lightweight and suitable for simple applications with high performance requirements. 2. To ensure the accuracy of AI models, we need to start with high-quality data training, reasonable selection of evaluation indicators (such as accuracy, recall, F1 value), regular performance evaluation and model tuning, and ensure code quality through unit testing and integration testing, while continuously monitoring the input data to prevent data drift. 3. Many measures are required to protect user privacy: encrypt and store sensitive data (such as AES

How to make PHP container support automatic construction? Continuously integrated CI configuration method of PHP environment How to make PHP container support automatic construction? Continuously integrated CI configuration method of PHP environment Jul 25, 2025 pm 08:54 PM

To enable PHP containers to support automatic construction, the core lies in configuring the continuous integration (CI) process. 1. Use Dockerfile to define the PHP environment, including basic image, extension installation, dependency management and permission settings; 2. Configure CI/CD tools such as GitLabCI, and define the build, test and deployment stages through the .gitlab-ci.yml file to achieve automatic construction, testing and deployment; 3. Integrate test frameworks such as PHPUnit to ensure that tests are automatically run after code changes; 4. Use automated deployment strategies such as Kubernetes to define deployment configuration through the deployment.yaml file; 5. Optimize Dockerfile and adopt multi-stage construction

How to use PHP combined with AI to analyze video content PHP intelligent video tag generation How to use PHP combined with AI to analyze video content PHP intelligent video tag generation Jul 25, 2025 pm 06:15 PM

The core idea of PHP combining AI for video content analysis is to let PHP serve as the backend "glue", first upload video to cloud storage, and then call AI services (such as Google CloudVideoAI, etc.) for asynchronous analysis; 2. PHP parses the JSON results, extract people, objects, scenes, voice and other information to generate intelligent tags and store them in the database; 3. The advantage is to use PHP's mature web ecosystem to quickly integrate AI capabilities, which is suitable for projects with existing PHP systems to efficiently implement; 4. Common challenges include large file processing (directly transmitted to cloud storage with pre-signed URLs), asynchronous tasks (introducing message queues), cost control (on-demand analysis, budget monitoring) and result optimization (label standardization); 5. Smart tags significantly improve visual

How to build an independent PHP task container environment. How to configure the container for running PHP timed scripts How to build an independent PHP task container environment. How to configure the container for running PHP timed scripts Jul 25, 2025 pm 07:27 PM

Building an independent PHP task container environment can be implemented through Docker. The specific steps are as follows: 1. Install Docker and DockerCompose as the basis; 2. Create an independent directory to store Dockerfile and crontab files; 3. Write Dockerfile to define the PHPCLI environment and install cron and necessary extensions; 4. Write a crontab file to define timing tasks; 5. Write a docker-compose.yml mount script directory and configure environment variables; 6. Start the container and verify the log. Compared with performing timing tasks in web containers, independent containers have the advantages of resource isolation, pure environment, strong stability, and easy expansion. To ensure logging and error capture

How to build a log management system with PHP PHP log collection and analysis tool How to build a log management system with PHP PHP log collection and analysis tool Jul 25, 2025 pm 08:48 PM

Select logging method: In the early stage, you can use the built-in error_log() for PHP. After the project is expanded, be sure to switch to mature libraries such as Monolog, support multiple handlers and log levels, and ensure that the log contains timestamps, levels, file line numbers and error details; 2. Design storage structure: A small amount of logs can be stored in files, and if there is a large number of logs, select a database if there is a large number of analysis. Use MySQL/PostgreSQL to structured data. Elasticsearch Kibana is recommended for semi-structured/unstructured. At the same time, it is formulated for backup and regular cleaning strategies; 3. Development and analysis interface: It should have search, filtering, aggregation, and visualization functions. It can be directly integrated into Kibana, or use the PHP framework chart library to develop self-development, focusing on the simplicity and ease of interface.

See all articles