{"id":405,"date":"2024-06-22T11:05:31","date_gmt":"2024-06-22T03:05:31","guid":{"rendered":"https:\/\/www.aqrboyblog.top\/?p=405"},"modified":"2026-02-01T16:47:38","modified_gmt":"2026-02-01T08:47:38","slug":"tp-nginxmysqlphpredisactivemq-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8e%9f%e7%94%9f%e6%90%ad%e5%bb%ba","status":"publish","type":"post","link":"https:\/\/www.aqrboyblog.top\/?p=405","title":{"rendered":"TP nginx+mysql+php+redis+activemq \u670d\u52a1\u5668\u539f\u751f\u642d\u5efa"},"content":{"rendered":"\n<p>TP\u6846\u67b6 \u76ee\u5f55\u6743\u9650<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u7f13\u5b58\u76ee\u5f55 \r\nchmod -R 777 \/home\/fastadmin\/runtime\r\nchmod -R 777 \/home\/fastadmin\/application\r\nchmod -R 777 \/home\/fastadmin\/public<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5nginx<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum list installed | grep nginx\n\nyum -y  install nginx \nsystemctl start  nginx\nvi \/etc\/nginx\/nginx.conf\n\nsystemctl restart nginx\nsystemctl status nginx\nsystemctl enable nginx\nsystemctl stop nginx<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5mysql<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum list installed | grep mysql\r\nps aux | grep mysql\r\n\r\ncd \/home &amp;&amp; wget http:\/\/dev.mysql.com\/get\/mysql57-community-release-el7-11.noarch.rpm\r\nrpm -ivh mysql57-community-release-el7-11.noarch.rpm\r\n\r\nyum clean all\r\nyum makecache\r\nyum -y install mysql-community-server\r\n\r\nrpm --import https:\/\/repo.mysql.com\/RPM-GPG-KEY-mysql-2022\r\n\r\n\r\nsystemctl start mysqld\r\nsystemctl status mysqld\r\nsystemctl enable mysqld\r\nsystemctl restart mysqld<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y epel-release\r\nsudo yum install -y https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\r\n\r\nsudo yum install -y yum-utils\r\n\r\nsudo yum-config-manager --enable remi-php74\r\n\r\nsudo yum install -y php php-cli php-fpm php-common php-gd  php-json php-mysqlnd php-pdo php-imagick php-zip\r\n\r\nsudo systemctl start php-fpm\r\nsudo systemctl enable php-fpm\r\n\r\nyum list installed | grep php\r\nsudo yum remove php*<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5redis<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum list installed | grep redis\nps aux | grep redis-server\n\ncd \/home &amp;&amp; wget http:\/\/download.redis.io\/releases\/redis-3.2.8.tar.gz\ntar xzf redis-3.2.8.tar.gz\ncd redis-3.2.8 &amp;&amp; make install\nmake\nmake install\n\ncp \/home\/redis.conf \/etc\/\ncp \/home\/redis.service \/etc\/systemd\/system\/redis.service\nsudo vi \/etc\/systemd\/system\/redis.service\n\nsudo systemctl daemon-reload\nsudo systemctl start redis.service\nsudo systemctl status redis.service\nsudo systemctl enable redis.service\nsudo systemctl restart redis.service<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5activemq<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/usr\/local\r\ntar  -xzvf  apache-activemq-5.18.4-bin.tar.gz\r\n\r\ncp \/home\/activemq.service  \/etc\/systemd\/system\/\r\ncp \/home\/activemq.xml  \/usr\/local\/apache-activemq-5.18.4\/conf\r\ncp \/home\/env  \/usr\/local\/apache-activemq-5.18.4\/bin\r\nsudo vi  \/etc\/systemd\/system\/activemq.service\r\n\r\n\/usr\/local\/jdk\/jdk-11.0.2\r\n\r\nchmod +x \/etc\/systemd\/system\/activemq.service\r\n\r\nsystemctl start activemq.service\r\nsystemctl status activemq.service\r\nsystemctl enable  activemq.service\r\nsystemctl restart activemq.service\r\nsystemctl stop activemq.service\r\n\r\n\/usr\/local\/apache-activemq-5.18.4\/bin\/activemq start\r\n\/usr\/local\/apache-activemq-5.18.4\/bin\/activemq stop<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"text-justify\">TP\u6846\u67b6 \u76ee\u5f55\u6743\u9650 \u5b89\u88c5nginx \u5b89\u88c5my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,65],"tags":[],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-linux","category-65"],"_links":{"self":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=405"}],"version-history":[{"count":4,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}