日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

resin php extensions sockets,linux 有关笔记

發布時間:2023/12/10 linux 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 resin php extensions sockets,linux 有关笔记 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

linux 相關筆記

==系統安裝==

1.啟動服務器

2.10秒內按F10進入DELL UNIFIED SERVER CONFIGURATION

3.進入左側OS Deployment菜單

4.點擊右側Deploy OS鏈接

5.插入Cent OS 5.5 x64光盤

6.選擇 Red Hat Enterorise Linux 5.5 64-bit,點擊next

7.在 Insert OS Media(Step 2 of 3) 頁面 點擊next

8.提示 內容不匹配頁面,點擊Yes

9.Reboot the System(Step 3 of 3)頁面 點擊Finish

10.服務器重啟,進入Cent OS5.5安裝界面

11.輸入 linux text

12.CD Found 頁面,選擇 Skip

13.Cent OS歡迎頁,選擇 OK

14.Language Selection頁面,選擇 English ,點擊OK

15.Keyboard Selection頁面,選擇us,點擊OK

16.Partition Type頁面,選擇 Remove all partition on selected drives and create default layout. 點擊OK

17.警告頁面,提示remove all data,選擇 Yes

18.Review Partition Layout 頁面,選擇 No

19.設置eth0和eth1

1 選擇 Activate on boot,Enable IPv4 support,Enable IPv6 support,點擊OK

2 IPv4設置選擇 Manual address configration

3 IPv6設置選擇 Automatic neighbor discovery

20.設置完畢eht0和eth1,選擇OK

21.設置網關,點擊OK

22.設置Hostname,localhost,點擊OK

32.設置時區,選擇 Asia/Shanghai,點擊OK

33.設置root密碼

34.選擇安裝包:Server,選中 Customise software selection,點擊OK

35.選擇:Administration Tools,Base,Development Libraries,Development Tools,Editors,Legacy Network Server,Lagacy Sofware Development,

Legacy Software Support,Network Servers,Server Configuration Tools,System Tools,Text-based Internet,點擊OK

36.Installation to begin 點擊OK

37.取出安裝光盤,點擊Reboot,重啟

38.運行Firewall configuration,全部 Disable

========================================================================

==基礎指令安裝==

1.yum install lrzsz

==========================

==安裝Mysql==

1. 準備mysql-5.0.45.tar.gz

2. tar zxvf mysql-5.0.45.tar.gz

3. cd mysql-5.0.45

4. groupadd mysql

5. useradd -g mysql mysql

6. ./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-extra-charsets=gbk

7. make

8. make install

9. cp support-files/my-large.cnf /etc/my.cnf

10. cd /usr/local/mysql

11. chown -R mysql .

12. chgrp -R mysql .

13. bin/mysql_install_db --user=mysql

14. chown -R root .

15. chown -R mysql var

16. cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld

17. chkconfig --add mysqld

18. chkconfig --level 2345 mysqld on

19. service mysqld start

20. bin/mysqladmin -u root password 123456

21. cd /usr/local/bin, ln -s /usr/local/mysql/bin/mysql mysql

測試 :

mysql -u root -p (輸入密碼 123456)

show databases; use test;show tables;

========================================================================

==安裝Java==

1. 準備jdk-6u14-linux-x64.bin

2. chmod 777 jdk-6u14-linux-x64.bin,運行 ./jdk-6u14-linux-x64.bin

3. 標準下一步

4. mv ./jdk1.6.0_14 /usr/local/

5. cd /usr/local

6. ln -s /usr/local/jdk1.6.0_14 jdk

7. vi /etc/profile

添加

JAVA_HOME=/usr/local/jdk

JAVA_BIN=/usr/local/jdk/bin

PATH=$PATH:$JAVA_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME JAVA_BIN PATH CLASSPATH

================================================

==安裝Resin==

1. 準備resin-pro-3.1.9.tar.gz

2. tar zxvf resin-pro-3.1.9.tar.gz

3. mv ./resin-pro-3.1.9 /usr/local/

4. cd /usr/local/

5. ln -s /usr/local/resin-pro-3.1.9 resin

6. cd resin

7. ./configure

8. make

9. make install

10. cp contrib/init.resin /etc/init.d/resin

11. chmod +x /etc/rc.d/init.d/resin

12. chkconfig --add resin

13. chkconfig --level 2345 resin on

14. 注釋 /etc/init.d/resin log_ 相關函數定義 vi /etc/init.d/resin 找到調用log_***函數的地方,將其前面加#注釋(函數定義不注釋),共四處,

a)log_daemon_msg "Starting resin"?? b)log_end_msg $? c)log_daemon_msg "Stopping resin" d)log_end_msg $?

15. service resin start

================================================

==相關類庫安裝1==

1.準備 jasper-1.900.1.zip jpegsrc.v6b.tar.gz libpng-1.2.24.tar.gz pcre-7.9.tar.gz

2. tar zxvf libpng-1.2.24.tar.gz

3. cd libpng-1.2.24

4. ./configure? && make && make install && cd..

5. unzip jasper-1.900.1.zip

6. cd jasper-1.900.1

7. ./configure? && make && make install && cd..

8. tar zxvf jpegsrc.v6b.tar.gz

9. cd jpeg-6b

10. ./configure? && make && make install-lib && cd..

11. tar -zxvf pcre-7.9.tar.gz

12. cd pcre-7.9

13. ./configure? && make && make install && cd..

==================

==安裝nginx==

1. 準備nginx-0.7.61.tar.gz

2. tar zxvf nginx-0.7.61.tar.gz

3. cd nginx-0.7.61

4. ./configure && make && make install && cd..

5. cd /usr/local/nginx/sbin

6. ./nginx

7. vi /etc/rc.local 增加一行 /usr/local/nginx/sbin/nginx

==========================

==相關類庫安裝2==

yum install net-snmp net-snmp-libs net-snmp-utils net-snmp-devel

========================

到這里

==安裝php==

1. 準備php-5.2.6.tar.gz ZendOptimizer-3.3.4-linux-glibc23-x86_64.tar.gz lighttpd-1.4.19.tar.gz

2. tar zxvf php-5.2.6.tar.gz

3. cd php-5.2.6

4. ./configure --with-mysql=/usr/local/mysql --enable-fastcgi --with-snmp --enable-sockets --with-gd

5. make && make install

6. cp php.ini-recommended? /usr/local/lib/php.ini 并修改 short_open_tag = Off 為 short_open_tag = On

7. cd..

8. tar zxvf ZendOptimizer-3.3.4-linux-glibc23-x86_64.tar.gz

9. cd ZendOptimizer-3.3.4-linux-glibc23-x86_64

10. cd data/5_2_x_comp

11. cp ./ZendOptimizer.so ./TS

12. cd -

10. ./install

11.? OK; EXIT; Yes; OK; 設置/usr/local/lib OK; No; OK;OK

12. tar zxvf lighttpd-1.4.19.tar.gz

13. cd lighttpd-1.4.19

14. ./configure

15. make

16. cp src/spawn-fcgi /usr/local/bin

17. /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -g nobody -C 5 -f /usr/local/bin/php-cgi

18. vi /etc/rc.local 增加一行 /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -g nobody -C 5 -f /usr/local/bin/php-cgi

測試php的安裝:

在 vi /usr/local/nginx/conf/nginx.conf ,在此文件的server的{ } 中加入 一下內容:

location ~ \.php$ {

root?????????? html ;

fastcgi_pass?? 127.0.0.1:9000;

fastcgi_index? index.php;

fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;

include??????? fastcgi_params;

}

把i.php文件放到/usr/local/nginx/html下, (i.php 可以到20的/usr/local/nginx/html/i.php 這里找)

重啟nginx:

cd /usr/local/nginx/logs

kill -HUP `cat nginx.pid`

然后訪問 http://ip:port/i.php 能看到內容,就說明php安裝成功

================================

==相關類庫安裝3==

1. vi /etc/yum.repos.d/CentOS-Base.repo

添加

[dag]

name=Dag RPM Repository for Red Hat Enterprise Linux

baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag

gpgcheck=1

gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

enabled=1

2. yum install rrdtool

========================

==安裝Cacti==

1. 準備 cacti-0.8.7g.tar.gz

2. tar zxvf cacti-0.8.7g.tar.gz

3. mv ./cacti-0.8.7g /opt/

4. cd /opt

5. ln -s /opt/cacti-0.8.7g cacti

6. cd cacti

7. /usr/local/mysql/bin/mysqladmin -u root -p create cacti //輸入密碼 123456

8. /usr/local/mysql/bin/mysql -u root -p cacti < cacti.sql

9. useradd cactiuser

10. vi /etc/snmp/snmpd.conf

==========

更改 1、com2sec notConfigUser? default????? public

改為:com2sec notConfigUser (你想監控的那臺機器的IP)????? public

2、access? notConfigGroup ""????? any????? noauth??? exact? systemview? none

none

改為:access? notConfigGroup ""????? any????? noauth??? exact? all? none

none

3、#view all??? included? .1??????? 80

將前面的 # 注釋 去掉。

保存退出 :wq

service snmpd restart

增加 snmpd 開機啟動,通過setup 選擇“系統服務”,找到snmpd,空格選擇此項

============

11. chown -R cactiuser ./rra

12. chown -R cactiuser ./log

13. vi ./include/config.php 修改

===

$database_type = “mysql”;

$database_default = “cacti”;

$database_hostname = “localhost”;

$database_username = “cactiuser”; //對應第7步的用戶 root

$database_password = “cactipw”;?? //對應第7步時輸入的密碼

===

14. su cactiuser

15. crontab -e 添加

*/5 * * * * /usr/local/bin/php /opt/cacti/poller.php > /dev/null 2>&1

16. exit

17.執行

===

wget http://www.cacti.net/downloads/patches/0.8.7g/data_source_deactivate.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/graph_list_view.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/html_output.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/ldap_group_authenication.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/script_server_command_line_parse.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/ping.patch

wget http://www.cacti.net/downloads/patches/0.8.7g/poller_interval.patch

patch -p1 -N < data_source_deactivate.patch

patch -p1 -N < graph_list_view.patch

patch -p1 -N < html_output.patch

patch -p1 -N < ldap_group_authenication.patch

patch -p1 -N < script_server_command_line_parse.patch

patch -p1 -N < ping.patch

patch -p1 -N < poller_interval.patch

===

vi /usr/local/nginx/conf/nginx.conf

在其中加入:

location ~ \.php$ {

root?? /opt/cacti;

fastcgi_pass?? 127.0.0.1:9000;

fastcgi_index? index.php;

fastcgi_param SCRIPT_FILENAME /opt/cacti$fastcgi_script_name;

include??????? fastcgi_params;

}

保存退出

頁面配置next->new install -> finish -> 輸入用戶名和密碼

============================================================

打開防火墻,并開啟80和22端口

1.setup ,打開防火墻,并保存

2.service network restart (重啟network)

查看防火墻狀態:

/etc/init.d/iptables status

3. 輸入 接收80 和22 端口的指令

/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT

/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT

4. 保存iptables

/etc/rc.d/init.d/iptables save

5. 設置iptables為自動啟動

chkconfig --level 2345 iptables on

/etc/init.d/iptables restart

centos5.5

yum install openssh-server

yum -y install lrzsz

useradd fify

svnadmin create /usr/local/svn/yixin

建立版本庫:

svnadmin create /usr/local/svn/svnroot

svnadmin create /opt/svndata/repos2

修改版本庫配置文件:

版本庫1:

vi /opt/svndata/repos1/conf/svnserve.conf

開啟SVN服務:svnserve -d? 或者 /usr/local/svn/bin/svnserve -d

檢測服務是否開啟:netstat -ntlp如果看到3690的端口正常開放了,證明SVN啟動了。

svn命令:

lsof -i :3690?? 查看svn是否啟動

ps aux |grep ’svn’ 查找所有svn啟動的進程

kill -9 2505??? 殺死2505這個查找到的svn進程

svnserve -d -r /usr/local/svn/yixin 啟動svn(可以把這個放到/etc/local/rc.local文件中,實現開機自啟動)

svn up????????????????????? //更新文件

svn ci -m’aaa’ test.php???? //提交文件

svn delete test.php???????? //刪除test.php

svn co svn://172.19.5.12 ./??? //檢出一份版本庫文件到當前目錄

apache

./configure --prefix=/usr/local/apache2 --enable-dav --enable-so --enable-maintainer-mode --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config

apache2的開機自啟:

vi /etc/rc.local

加入 /usr/local/apache2/bin/apachectl start

svn

./configure --prefix=/usr/local/svn --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr

neon

./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-ssl

./configure --sysconfdir=/etc --enable-ssl --enable-modules

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

DAV svn

SVNPath /usr/local/svn/svnroot

/usr/local/sbin/apachectl restart

/usr/local/apache2/bin/apachectl restart

svn添加用戶

htpasswd -m /usr/local/svn/svnroot Username2

把/usr/local/subversion/repository目錄下的所有文件和子目錄添加讀寫權限

#chmod? –R? o+rw? /usr/local/subversion/repository

svn list --verbose file:///usr/local/svn/svnroot

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

DAV svn

SVNPath /var/svn/svnroot

AuthzSVNAccessFile /var/svn/svnroot/conf/authz

#SVNListParentPath on

AuthType Basic

AuthName "Repo Auth"

AuthUserFile /var/svn/svnroot/conf/passwd

Require valid-user

GY5WR-62Y9N-M8DAQ-UGWG9-MVKT4

-enable-lib64

創建用戶

htpasswd -m /usr/local/svn/conf/passwd lijunpeng (md5加密)

htpasswd -b /usr/local/svn/conf/passwd yanyiyao yanyiyao (非md5加密,目前用這個)

創建svn庫

/var/svn

./createSVNRoot.sh webadmin (webadmin為倉庫名稱)

cd /usr/local/svn/conf/

vi authz

添加權限

[webadmin:/]

@architect = rw

@tech = rw

* =

修改權限的文件

/usr/local/svn/conf/authz

share1機器web訪問地址

http://share1:8080/cgi-bin/html/login.html?3.2.4.0315T

resin 位置

cd /usr/local/resin

service resin start

service resin stop

我把服務器的resin裝上了

用service的方式啟動和關閉

路徑是/usr/local/resin/

前臺地址:http://www.myhuile.net:8080/

啟動nginx 進入 : /usr/local/nginx/logs? kill -HUP `cat nginx.pid`

jira 重啟:

停止

cd /opt/oa/jira/bin

./shutdown.sh

cd /opt/oa/jira/data

ll -a

rm .jira-home.lock

./startup.sh

總結

以上是生活随笔為你收集整理的resin php extensions sockets,linux 有关笔记的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。