到搜灵首页

您查询的关键词仅在网页标题或指向此网页的链接中出现。

(搜灵和网页http://www.fuckbe.net/sbckkm/309123_490531.html的作者无关,不对其内容负责。搜灵快照谨为网络故障时之索引,不代表被搜索网站的即时页面。)


C++鐨勬爣鍑嗗簱澶存枃浠舵墍鍦ㄧ洰褰昣鐢靛奖澶╁爞

鏂伴椈涓績

褰撳墠浣嶇疆 > 鏂伴椈涓績> 鐢佃剳鍔炲叕 > CPU

绀惧尯鍐嚦涓鸿佷汉鍖呴ズ瀛

鍩哄洜缂栬緫濠村効鍗仴濮-C++鐨勬爣鍑嗗簱澶存枃浠舵墍鍦ㄧ洰褰

鍦ㄧ敤ifstream鐨剆eekg()鍑芥暟鏃堕亣鍒颁簡闂锛屾兂鏌ョ湅涓涓婥++鏍囧噯搴撶殑澶存枃浠讹紝鎵句簡鍗婂ぉ缁堜簬鎵惧埌鎴戞満鍣ㄤ笂鐨勬爣鍑嗗簱澶存枃浠舵墍鍦ㄧ洰褰曘傚湪鎴戞満鍣ㄤ笂鏄細/usr/include/c++/4.0.0

鍏朵腑浠.h涓哄悗缂鐨勫ご鏂囦欢鍦ㄨ繖涓洰褰曚笅鐨刡ackward鏂囦欢澶归噷

鏌ユ壘鏂囦欢鐨勭浉搴斿懡浠:姣斿瑕佹壘iostream锛屽彲浠ヤ娇鐢╨ocate鍛戒护锛屽locate iostream

涔熷彲浠ヤ娇鐢╢ind鍛戒护锛宖ind鍛戒护姣攍ocate澶嶆潅涓鐐

鍏充簬 Linux涓嬫垨鑰卪ac os涓嬬殑鏌ユ壘鍛戒护鍙互鍙傝冿細

http://www.linuxidc.com/Linux/2008-07/14300.htm

zai yong ifstream de seekg han shu shi yu dao le wen ti, xiang zha kan yi xia C biao zhun ku de tou wen jian, zhao le ban tian zhong yu zhao dao wo ji qi shang de biao zhun ku tou wen jian suo zai mu lu. zai wo ji qi shang shi: usr include c 4. 0. qi zhong yi. h wei hou zhui de tou wen jian zai zhe ge mu lu xia de backward wen jian jia li cha zhao wen jian de xiang ying ming ling: bi ru yao zhao iostream, ke yi shi yong locate ming ling, ru locate iostream ye ke yi shi yong find ming ling, find ming ling bi locate fu za yi dian guan yu Linux xia huo zhe mac os xia de cha zhao ming ling ke yi can kao: http: www. linuxidc. com Linux 200807 14300. htm

褰撳墠鏂囩珷锛歨ttp://www.fuckbe.net/sbckkm/309123_490531.html

鍙戝竷鏃堕棿锛13:02:10

PHP鐩掑瓙  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  Jiacrontab  

{鐩稿叧鏂囩珷}

CentOS 7.0 鎼缓LAMP鐜

涓銆乤pache銆乸hp銆乵ysql瀹夎

瀹夎椤哄簭锛歛pache/mysql    鏈鍚庡畨瑁卲hp   鍓嶄袱鑰呴『搴忔棤鎵璋撱 

1.瀹夎apache

銆銆闇瑕佹湇鍔″櫒鑱旂綉

銆銆瀹夎锛yum install -y httpd

銆銆杩愯锛/bin/systemctl start httpd.service

銆銆鎵ц瀹岃繍琛屽懡浠や箣鍚庢槸鐪嬩笉鍒版晥鏋滅殑锛岃繖鏃跺欏啀杈撳叆鏌ョ湅apache鏈嶅姟鐘舵佸懡浠ゆ潵鏌ョ湅鏈嶅姟鏄惁宸茬粡鍚姩锛

銆銆銆銆鏌ョ湅鐘舵侊細service hNHDTB-211_鐢靛奖澶╁爞ttpd status

銆銆銆銆Apache寮鍚湇鍔★細systemctl start httpd

銆銆銆銆Apache鍋滄鏈嶅姟锛systemctl stop httpd

 

銆銆娴嬭瘯apache鏈嶅姟鏄惁姝e父寮鍚紝鍦ㄦ垜浠湰鍦版祻瑙堝櫒閲岃緭鍏ヤ簯鏈嶅姟鍣ㄧ殑鍏綉ip锛屾垜杩欓噷浠118.89.32.6涓轰緥

濡備笂鎵绀猴紝琛ㄧずapache姝e父寮鍚紱

 

2.瀹夎mysql

銆銆銆銆wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
銆銆銆銆rpm -ivh mysql-community-release-el7-5.noarch.rpm
銆銆銆銆yum install mysql-community-server
銆銆銆銆鎴愬姛瀹夎涔嬪悗閲嶅惎mysql鏈嶅姟

銆銆銆service mysqld restart

銆銆銆銆鍒濇瀹夎mysql鏄痳oot璐︽埛鏄病鏈夊瘑鐮佺殑
銆銆銆銆璁剧疆瀵嗙爜鐨勬柟娉

銆銆銆銆杈撳叆mysql -uroot杩涘叆mysql鏁版嵁搴
銆銆銆銆銆銆mysql> set password for ‘root’@‘localhost’ = password('newpasswd');
銆銆銆銆銆銆mysql> quit銆銆銆

銆銆銆銆杩滅▼鎺堟潈杩炴帴mysql
銆銆銆銆mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '浣犺璁剧疆鐨勬暟鎹簱瀵嗙爜' WITH GRANT OPTION;

銆銆銆銆mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '浣犺璁剧疆鐨勬暟鎹簱瀵嗙爜' WITH GRANT OPTION;
銆銆銆銆mysql>FLUSH PRIVILEGES;

娉ㄨВ锛

1.RPM锛  RPM Package ManagerRPM杞欢鍖呯鐞嗗櫒锛涓绉嶇敤浜浜掕仈缃涓嬭浇鍖呯殑鎵撳寘鍙婂畨瑁呭伐鍏凤紝瀹冨寘鍚湪鏌愪簺Linux鍒嗗彂鐗堜腑銆傚畠鐢熸垚鍏锋湁.RPM鎵╁睍鍚嶇殑鏂囦欢銆備笌Dpkg绫讳技

瀵瑰簲鍛戒护锛

銆銆鍦═erminal涓紝鍩烘湰鐨勫畨瑁呮寚浠ゅ涓嬶細

銆銆rpm i xv3.10a13.i386.rpm

銆銆濡傛灉浣犵殑杩炵綉閫熷害瓒冲蹇紝涔熷彲浠ョ洿鎺ヤ粠缃戠粶涓婂畨瑁呭簲鐢ㄨ蒋浠讹紝鍙渶瑕佸湪杞欢鐨勬枃浠跺悕鍓嶅姞涓婇傚綋鐨刄RL璺緞銆

銆銆浣滀负涓涓蒋浠跺寘绠$悊宸ュ叿锛孯PM绠$悊鐫绯荤粺宸插畨瑁呯殑鎵鏈RPM绋嬪簭缁勪欢鐨勮祫鏂欍傛垜浠篃鍙互浣跨敤RPM鏉ュ嵏杞界浉鍏崇殑搴旂敤绋嬪簭銆

銆銆rpm e xv

銆銆RPM鐨勫父鐢ㄥ弬鏁拌繕鍖呮嫭锛

銆銆銆銆锛峷h锛氭樉绀哄畨瑁呰繘搴︼紱

銆銆銆銆锛峌锛氬崌绾ц蒋浠跺寘锛

銆銆銆銆锛峲pl锛氬垪鍑RPM杞欢鍖呭唴鐨勬枃浠朵俊鎭紱

銆銆銆銆锛峲pi锛氬垪鍑RPM杞欢鍖呯殑鎻忚堪淇℃伅锛

銆銆銆銆锛峲f锛氭煡鎵炬寚瀹氭枃浠跺睘浜庡摢涓RPM杞欢鍖咃紱

銆銆銆銆锛峍a锛氭牎楠屾墍鏈夌殑RPM杞欢鍖咃紝鏌ユ壘涓㈠け鐨勬枃浠讹紱

銆銆銆銆锛峲a: 鏌ユ壘鐩稿簲鏂囦欢锛屽 rpm -qa mysql

2.YUM锛歒um锛堝叏绉颁负 Yellow dog Updater, Modified锛夋槸涓涓湪FedoraRedHat浠ュ強CentOS涓殑Shell鍓嶇杞欢鍖呯鐞嗗櫒銆傚熀浜嶳PM鍖呯鐞嗭紝鑳藉浠庢寚瀹氱殑鏈嶅姟鍣ㄨ嚜鍔ㄤ笅杞絉PM鍖呭苟涓斿畨瑁咃紝鍙互鑷姩澶勭悊渚濊禆鎬у叧绯伙紝骞朵笖涓娆″畨瑁呮墍鏈変緷璧栫殑杞欢鍖咃紝鏃犻』绻佺悙鍦颁竴娆℃涓嬭浇銆佸畨瑁

瀵瑰簲鍛戒护锛

 

銆銆瀹夎杞欢(foo-x.x.x.rpm涓轰緥锛锛歽um install foo-x.x.x.rpm

銆銆鍒犻櫎杞欢锛歽um remove浠绘闈炴垜浠仛鐨勪笉澶熷ソ_鐢靛奖澶╁爞 foo-x.x.x.rpm鎴栬yum erase foo-x.x.x.rpm

銆銆鍗囩骇杞欢锛歽um upgrade foo鎴栬yum update fo

銆銆鏌ヨ淇℃伅锛歽um info foo

銆銆鎼滅储杞欢锛堜互鍖呭惈foo瀛楁涓轰緥锛锛歽um search foo

銆銆鏄剧ず杞欢鍖呬緷璧栧叧绯锛歽um deplist foo
銆銆銆銆-e 闈欓粯鎵ц 
銆銆銆銆-t 蹇界暐閿欒
銆銆銆銆-R[鍒嗛挓] 璁剧疆绛夊緟鏃堕棿
銆銆銆銆-y 鑷姩搴旂瓟yes
銆銆銆銆--skip-broken 蹇界暐渚濊禆闂
銆銆銆銆--nogpgcheck 蹇界暐GPG楠岃瘉

銆銆銆銆check-update 妫鏌ュ彲鏇存柊鐨勫寘
銆銆銆銆clearn 娓呴櫎鍏ㄩ儴
銆銆銆銆clean packages 娓呴櫎涓存椂鍖呮枃浠讹紙/var/cache/yum 涓嬫枃浠讹級
銆銆銆銆clearn headers 娓呴櫎rpm澶存枃浠
銆銆銆銆clean oldheaders 娓呴櫎鏃х殑rpm澶存枃浠
銆銆銆銆deplist 鍒楀嚭鍖呯殑渚濊禆
銆銆銆銆list 鍙畨瑁呭拰鍙洿鏂扮殑RPM
銆銆銆銆list installed 宸插畨瑁呯殑鍖
銆銆銆銆list extras 宸插畨瑁呬笖涓嶅湪璧勬簮搴撶殑鍖
銆銆銆銆info 鍙畨瑁呭拰鍙洿鏂扮殑RPM鍖 淇℃伅
銆銆銆銆info 鏀归潻寮鏀40鍛ㄥ勾澶т細瑙嗛_鐢靛奖澶╁爞installed 宸插畨瑁呭寘鐨勪俊鎭(-qa 鍙傛暟鐩镐技)
銆銆銆銆install[RPM] 瀹夎鍖
銆銆銆銆localinstall 瀹夎鏈湴鐨 RPM
銆銆銆銆update[RPM] 鏇存柊鍖
銆銆銆銆upgrade 鍗囩骇绯荤粺
銆銆銆銆search[鍏抽敭璇] 鎼滅储鍖
銆銆銆銆provides[鍏抽敭璇] 鎼滅储鐗瑰畾鍖呮枃浠跺悕
銆銆銆銆reinstall[RPM] 閲嶆柊瀹夎鍖
銆銆銆銆repolist 鏄剧ず璧勬簮搴撶殑閰嶇疆
銆銆銆銆resolvedep 鎸囧畾渚濊禆
銆銆銆銆remove[RPM] 鍗歌浇鍖

 

3.WGET

 銆銆wget 鏄竴涓粠缃戠粶涓婅嚜鍔ㄤ笅杞芥枃浠剁殑鑷敱宸ュ叿锛屾敮鎸侀氳繃 HTTPHTTPSFTP 涓変釜鏈甯歌鐨 TCP/IP鍗忚 涓嬭浇锛屽苟鍙互浣跨敤 HTTP 浠g悊銆"wget" 杩欎釜鍚嶇О鏉ユ簮浜 “World Wide Web” “get” 鐨勭粨鍚堛 

銆銆鎵璋撹嚜鍔ㄤ笅杞斤紝鏄寚 wget 鍙互鍦ㄧ敤鎴烽鍑虹郴缁熺殑涔嬪悗鍦ㄧ户缁悗鍙版墽琛岋紝鐩村埌涓嬭浇浠诲姟瀹屾垚銆

 

濡傛灉浠ヤ笂涓よ鍛戒护閮芥墽琛屾垚鍔燂紝鏄剧ずcomplete锛屽垯鍙互浣跨敤Navicat 涔嬬被鐨勬潵绠$悊Mysql鏁版嵁搴

 

 

3.瀹夎php

 銆銆銆銆鍒嗘寮忓畨瑁咃細

銆銆銆銆涓嬭浇php锛歸get http://cn2.php.NET/get/php-7.0.11.tar.gz/from/this/mirror
銆銆銆銆瑙e帇锛歵ar -zxvf mirror
銆銆銆銆瀹夎gcc锛歽um install -y gcc gcc+ libxml2-devel
銆銆銆銆缂栬瘧锛./configure --prefix=/usr/local/php7 --enable-fpm

銆銆銆銆涔熸湁姣旇緝绠鍗曠殑yum瀹夎鏂瑰紡锛堝湪绾垮畨瑁咃紝鏂逛究鐪佷簨锛

銆銆銆銆銆銆銆銆yum install -y php     绛夊緟瀹夎瀹屾垚

銆銆銆銆鍐嶈緭鍏ュ涓嬪懡浠よ繘琛宲hp缁勪欢瀹夎锛

銆銆銆銆yum install -y php-gd php-mysql libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt

銆銆銆銆娴嬭瘯php鏄惁姝e父瀹夎锛岃緭鍏hp echo XXX,鑻ユ樉绀 could not open input file echo ,璇存槑宸茬粡瀹夎鎴愬姛锛屾垨鑰呭啓涓涓猵hp鏂囦欢鎵ц涓涓嬪嵆鍙;

銆濡傛灉php-mysql鎵╁睍鏈敓鎴愶紝鍒欎娇鐢▂um

銆銆銆銆yum search php-mysql

銆銆銆銆yum install pgp-mysql.xxxx

銆銆姝ゆ椂鍐嶇湅灏变細鎵惧埌mysql.so

浜屻閰嶇疆apachephp

2.1閰嶇疆apache

浣跨敤httpd -V 鍛戒护鏌ョ湅apache鐨勯厤缃枃浠httpd.conf鏂囦欢鎵鍦ㄧ洰褰曪細

濡傜孩鑹插湀鍑虹殑鎵绀猴紝apache閰嶇疆鏂囦欢鍦etc/httpd/conf/鐩綍涓

杩涘叆璇ョ洰褰曪紝cd  /etc/httpd/conf

瑕佷慨鏀圭殑鍐呭锛

1娣诲姞#鍔犺浇PHP澶勭悊妯″潡

LoadModule php5_module modules/libph瀹夊崜鎬庝箞鏇存柊涓嶄簡寰俊_鐢靛奖澶╁爞p5.so#娣诲姞PHP绛夊悗缂鐨勫鐞

AddType application/x-httpd-php .php

2淇敼

DirectoryIndex index.html

   鏀规垚

DirectoryIndex index.php index.html

3銆佷慨鏀归粯璁よ闂矾寰

Documentroot = “/var/www”

鏂逛究璧疯锛屼箣鍚庣殑鎵鏈塂irectory 閮戒慨鏀逛负/var/www

淇敼瀹屾墍鏈夌殑閰嶇疆涔嬪悗锛岀偣鍑籩sc閿 鍐嶆寜浣shift+锛涜繘鍏ュ簳琛屾ā寮忥紝杈撳叆wq 淇濆瓨閫鍑恒

 

 2.2閰嶇疆php.ini

銆銆1銆佽緭鍏php --ini鍛戒护鏌ョ湅php.ini鏂囦欢璺緞锛氭澶勪笉鍐嶄笂鍥俱

銆銆2銆佹壘鍒extension鏈澶氱殑鍦版柟锛灏嗗墠闈㈢殑;鍘绘帀浣PHP鏀寔mysql锛屽苟涓旈厤缃椂瑕佹寚瀹--with-mysql鐨勫硷紝濡傛灉涔嬪墠瀹夎鏃舵湭閰嶇疆锛岄渶瑕侀噸鏂伴厤缃紝缂栬瘧锛屽畨瑁

銆銆;extension=php_mysql.dll

 銆銆瑕佷娇鐢╬hpmyadminmysqli鍑芥暟鎵撳紑锛屽苟涓旈厤缃椂瑕佹寚瀹--with-mysqli鐨勫硷紝濡傛灉涔嬪墠瀹夎鏃舵湭閰嶇疆锛岄渶瑕侀噸鏂伴厤缃紝缂栬瘧锛屽畨瑁

 銆銆;extension=php_mysqli.dll

銆銆瑕丳HP鏀寔pngjpggif(phpcmsV9蹇呴』)鎵撳紑

 銆銆;extension=php_gd2.dll

 銆銆澶у瓧绗﹂泦,鏀寔澶氬瓧绗﹂泦涔嬮棿鐨勮浆鎹㈡墦寮

 銆銆;extension=php_mbstring.dll

銆銆php5榛樿<?php娣槾甯堣寖瀛﹂櫌鍓櫌闀垮コ瀛︾敓娴佷骇_鐢靛奖澶╁爞 echo date("Y-m-d H:i:s");?>鏃堕棿涓庡寳浜椂闂寸浉宸叓灏忔椂(灏戝叓灏忔椂)

銆銆涓轰粈涔堝憿?PHP5绯诲垪鐗堟湰鏂板浜嗘椂鍖鸿缃紝榛樿涓烘牸鏋楀▉娌绘椂闂达紝涓庝腑鍥芥墍鍦ㄧ殑涓8鍖烘濂界浉宸8涓皬鏃讹紝鏌ユ壘

 銆銆;date.timezone =

 銆銆灏;鍘绘帀锛屽苟淇敼鎴date.timezone = PRC 

銆銆闄や簡E_NOTICE绫诲瀷鐨勯敊璇(Notice)涓嶆姤鍛婏紝鍏朵粬鐨勯兘鎶ュ憡,鏌ユ壘error_reporting = E_ALL 

銆銆鏀规垚error_reporting = E_ALL & ~E_NOTICE

        3銆佹壘鍒extension_dir锛堟澶勫鏋滃紑鍚紝鍏朵粬鐨勫氨涓嶉渶瑕佷簡锛

銆銆鍘绘帀鍓嶉潰鐨勫垎鍙凤紝淇敼涓篹xtension_dir = “浣犵殑php瀹夎鐩綍”锛屼緥濡傛垜鐨   extension_dir="/usr/lib64/php/modules"

銆銆Php瀹夎鐩綍鏌ョ湅锛

        4銆佸湪linux涓緭鍏rpm -ql php   鏌ョ湅php瀹夎鐩綍锛

淇敼瀹屾墍鏈夌殑閰嶇疆涔嬪悗閲嶅惎apache

銆銆systemctl stop httpd

銆銆systemctl start httpd

    銆銆鎴栬咃細

銆銆systemctl restart httpd

 涓夈涓閿畨瑁咃細锛堟柟渚跨渷浜媈_^

銆銆

銆銆闇瑕佷竴閿畨瑁呭寘锛屾垜杩欓噷浣跨敤鐨勬槸闃块噷浜戞彁渚涚殑瀹夎鍖咃細

銆銆鎵撳紑xshell ,杩涘叆xftp鐣岄潰:灏嗘湰鍦板畨瑁呭寘鎷栧叆杩滅▼鏈嶅姟鍣root鐩綍涓嬶細

鍒囨崲鍒皒shell绐楀彛锛岃繘鍏root鐩綍涓 锛cd /root  

渚濇閿叆浠ヤ笅鍛戒护瀹夎:

  1. chmod -R 777 sh-1.5.5
  2. cd sh-1.5.5
  3. ./install.sh

 

 

鍓╀綑鐨勯厤缃楠ゅ悓涓婇潰涓鏍凤紝鍏蜂綋鐩綍濡備笅锛

涔嬪悗渚垮彲浠ラ氳繃xftp涓婁紶鑷繁鐨勯」鐩埌缃戠珯鏍圭洰褰曚簡銆

涓嬮潰鍏充簬LAMP鐩稿叧鐨勫唴瀹逛綘鍙兘涔熷枩娆

LAMP骞冲彴瀹夎Xcache鍜孧emcached鍔犻熺綉绔欒繍琛  http://www.linuxidc.com/Linux/2015-06/118835.htmlol鏂版晫浜篲鐢靛奖澶╁爞

CentOS 7涓嬫惌寤篖AMP骞冲彴鐜  http://www.linuxidc.com/Linux/2015-06/118818.htm

CentOS 7.3涓嬮厤缃甃AMP瀹炵幇WordPress  http://www.linuxidc.com/Linux/2017-07/145947.htm

Ubuntu 14.04 閰嶇疆 LAMP+phpMyAdmin PHP(5.5.9)寮鍙戠幆澧  http://www.linuxidc.com/Linux/2014-10/107924.htm

LAMP缁撳悎NFS鏋勫缓灏忓瀷鍗氬绔欑偣  http://www.linuxidc.com/Linux/2015-08/121029.htm

CentOS7涓嬪畨瑁呴儴缃睱AMP鐜  http://www.linuxidc.com/Linux/2016-04/130653.htm

CentOS 7 涓婂畨瑁咃紙LAMP锛夋湇鍔 Linux锛孉pache锛孧ySQL锛孭HP  http://www.linuxidc.com/Linux/2017-05/143868.htm

Ubuntu Server 14.04 LTS涓嬫惌寤篖AMP鐜鍥炬枃璇﹁В  http://www.linuxidc.com/Linux/2016-12/138758.htm

Ubuntu Server 16.04涓嬮厤缃甃AMP鐜 http://www.linuxidc.com/Linux/2016-12/138757.htm

鍦║buntu 17.04 涓婂畨瑁呮惌寤 LAMP 缁勪欢鐜  http://www.linuxidc.com/Linux/2017-07/145644.htm

CentOS 6.7缂栬瘧瀹夎LAMP 璇﹁В http://www.linuxidc.com/Linux/2017-03/141244.htm

Ubuntu 16.04鎼缓LAMP寮鍙戠幆澧 http://www.linuxidc.com/Linux/2016-10/136327.htm

鏈枃姘镐箙鏇存柊閾炬帴鍦板潃锛歨ttp://www.linuxidc.com/Linux/2017-10/147689.htm

鏂囩珷瑙傜偣鏀寔

鏂囩珷浠峰兼墦鍒
褰撳墠鏂囩珷鎵撳垎0 鍒嗭紝鍏辨湁0浜烘墦鍒
Powered by 搜灵