{"id":42678,"date":"2024-10-03T23:17:25","date_gmt":"2024-10-03T15:17:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/42678\/"},"modified":"2024-10-03T23:17:25","modified_gmt":"2024-10-03T15:17:25","slug":"centos-6-x-%e5%ae%89%e8%a3%9d-tcexam","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/42678\/","title":{"rendered":"CentOS 6.x \u5b89\u88dd TCExam"},"content":{"rendered":"<h1 id=\"centos-6-x-%e5%ae%89%e8%a3%9d-tcexam-AjLxNdlFjO\">CentOS 6.x \u5b89\u88dd TCExam<\/h1>\n<p>TCExam \u662f\u4e00\u500b\u958b\u6e90\u7684\u8003\u8a66\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u7528\u65bc\u5728\u7dda\u6e2c\u8a66\u548c\u8a55\u4f30\u3002\u5b83\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u8003\u8a66\u8a2d\u8a08\u548c\u7ba1\u7406\u529f\u80fd\uff0c\u9069\u5408\u5b78\u6821\u3001\u4f01\u696d\u53ca\u5176\u4ed6\u6a5f\u69cb\u4f7f\u7528\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS 6.x \u7cfb\u7d71\u4e0a\u5b89\u88dd TCExam\uff0c\u5e6b\u52a9\u7528\u6236\u5feb\u901f\u642d\u5efa\u81ea\u5df1\u7684\u8003\u8a66\u5e73\u53f0\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e9%9c%80%e6%b1%82-AjLxNdlFjO\">\u7cfb\u7d71\u9700\u6c42<\/h2>\n<p>\u5728\u5b89\u88dd TCExam \u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684 CentOS 6.x \u7cfb\u7d71\u6eff\u8db3\u4ee5\u4e0b\u9700\u6c42\uff1a<\/p>\n<ul>\n<li>Apache 2.0 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>PHP 5.2 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>MySQL 5.0 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>GD Library\uff08\u7528\u65bc\u5716\u5f62\u8655\u7406\uff09<\/li>\n<li>OpenSSL\uff08\u7528\u65bc\u5b89\u5168\u9023\u63a5\uff09<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e6%ad%a5%e9%a9%9f-AjLxNdlFjO\">\u5b89\u88dd\u6b65\u9a5f<\/h2>\n<h3 id=\"1-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-AjLxNdlFjO\">1. \u66f4\u65b0\u7cfb\u7d71<\/h3>\n<p>\u9996\u5148\uff0c\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u662f\u6700\u65b0\u7684\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u7cfb\u7d71\uff1a<\/p>\n<pre><code>sudo yum update<\/code><\/pre>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d%e5%bf%85%e8%a6%81%e7%9a%84%e8%bb%9f%e4%bb%b6%e5%8c%85-AjLxNdlFjO\">2. \u5b89\u88dd\u5fc5\u8981\u7684\u8edf\u4ef6\u5305<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u5b89\u88dd Apache\u3001PHP \u548c MySQL\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo yum install httpd php php-mysql php-gd php-xml mysql-server<\/code><\/pre>\n<h3 id=\"3-%e5%95%9f%e5%8b%95%e5%92%8c%e8%a8%ad%e7%bd%ae-apache-%e5%92%8c-mysql-AjLxNdlFjO\">3. \u555f\u52d5\u548c\u8a2d\u7f6e Apache \u548c MySQL<\/h3>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u555f\u52d5 Apache \u548c MySQL \u670d\u52d9\uff1a<\/p>\n<pre><code>sudo service httpd start\nsudo service mysqld start<\/code><\/pre>\n<p>\u70ba\u4e86\u8b93\u9019\u4e9b\u670d\u52d9\u5728\u7cfb\u7d71\u555f\u52d5\u6642\u81ea\u52d5\u555f\u52d5\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo chkconfig httpd on\nsudo chkconfig mysqld on<\/code><\/pre>\n<h3 id=\"4-%e9%85%8d%e7%bd%ae-mysql-AjLxNdlFjO\">4. \u914d\u7f6e MySQL<\/h3>\n<p>\u5728\u9996\u6b21\u555f\u52d5 MySQL \u670d\u52d9\u5f8c\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e root \u5bc6\u78bc\u548c\u5176\u4ed6\u5b89\u5168\u9078\u9805\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u5165 MySQL \u5b89\u5168\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>sudo mysql_secure_installation<\/code><\/pre>\n<p>\u6839\u64da\u63d0\u793a\u8a2d\u7f6e\u5bc6\u78bc\u4e26\u9078\u64c7\u5176\u4ed6\u5b89\u5168\u9078\u9805\u3002<\/p>\n<h3 id=\"5-%e4%b8%8b%e8%bc%89-tcexam-AjLxNdlFjO\">5. \u4e0b\u8f09 TCExam<\/h3>\n<p>\u524d\u5f80 TCExam \u7684\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684 TCExam\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f09\uff1a<\/p>\n<pre><code>wget http:\/\/www.tcexam.org\/download\/tcexam-latest.zip<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u89e3\u58d3\u7e2e\u6587\u4ef6\uff1a<\/p>\n<pre><code>unzip tcexam-latest.zip -d \/var\/www\/html\/tcexam<\/code><\/pre>\n<h3 id=\"6-%e8%a8%ad%e7%bd%ae%e6%96%87%e4%bb%b6%e6%ac%8a%e9%99%90-AjLxNdlFjO\">6. \u8a2d\u7f6e\u6587\u4ef6\u6b0a\u9650<\/h3>\n<p>\u70ba\u4e86\u78ba\u4fdd TCExam \u6b63\u5e38\u904b\u884c\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e\u6b63\u78ba\u7684\u6587\u4ef6\u6b0a\u9650\uff1a<\/p>\n<pre><code>sudo chown -R apache:apache \/var\/www\/html\/tcexam<\/code><\/pre>\n<h3 id=\"7-%e9%85%8d%e7%bd%ae-apache-AjLxNdlFjO\">7. \u914d\u7f6e Apache<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u70ba TCExam \u914d\u7f6e Apache\u3002\u7de8\u8f2f Apache \u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>sudo vi \/etc\/httpd\/conf\/httpd.conf<\/code><\/pre>\n<p>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>&lt;Directory \"\/var\/www\/html\/tcexam\"&gt;\n    AllowOverride All\n&lt;\/Directory&gt;<\/code><\/pre>\n<h3 id=\"8-%e9%87%8d%e5%95%9f-apache-AjLxNdlFjO\">8. \u91cd\u555f Apache<\/h3>\n<p>\u5b8c\u6210\u914d\u7f6e\u5f8c\uff0c\u91cd\u555f Apache \u670d\u52d9\u4ee5\u61c9\u7528\u66f4\u6539\uff1a<\/p>\n<pre><code>sudo service httpd restart<\/code><\/pre>\n<h3 id=\"9-%e8%a8%ad%e7%bd%ae-tcexam-AjLxNdlFjO\">9. \u8a2d\u7f6e TCExam<\/h3>\n<p>\u5728\u700f\u89bd\u5668\u4e2d\u8a2a\u554f TCExam \u7684\u5b89\u88dd\u9801\u9762\uff0c\u901a\u5e38\u662f <a href=\"http:\/\/your-server-ip\/tcexam\/install.php\" rel=\"nofollow\">http:\/\/your-server-ip\/tcexam\/install.php<\/a>\u3002\u6309\u7167\u9801\u9762\u4e0a\u7684\u6307\u793a\u5b8c\u6210\u5b89\u88dd\u904e\u7a0b\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-AjLxNdlFjO\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u6b65\u9a5f\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u5728 CentOS 6.x \u7cfb\u7d71\u4e0a\u6210\u529f\u5b89\u88dd TCExam\u3002\u9019\u500b\u958b\u6e90\u8003\u8a66\u7ba1\u7406\u7cfb\u7d71\u80fd\u5920\u5e6b\u52a9\u60a8\u8f15\u9b06\u5730\u9032\u884c\u5728\u7dda\u6e2c\u8a66\u548c\u8a55\u4f30\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u74b0\u5883\u4f86\u904b\u884c TCExam\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u6216 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u4ee5\u78ba\u4fdd\u6700\u4f73\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install TCExam on CentOS 6.x with this step-by-step guide, ensuring a smooth setup for your online examination needs.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-42678","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=42678"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42678\/revisions"}],"predecessor-version":[{"id":42679,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42678\/revisions\/42679"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=42678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=42678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=42678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}