- 浏览: 847944 次
- 性别:
- 来自: 南京
-
文章分类
最新评论
-
xieye:
jetty插件有好几个版本,1.6,1.7,1.8
我选的是用 ...
tapestry入门(翻译)3 导入项目到eclipse -
xieye:
还有,
注:第2部分时,需要先安装jetty,我自己在安装过程 ...
tapestry入门(翻译)3 导入项目到eclipse -
xieye:
说明一下:实际使用中,导入时我并没有错误。2、我把eclips ...
tapestry入门(翻译)3 导入项目到eclipse -
xieye:
其实还是有一些先决条件的。1是外部环境,2是进步是阶段性的(意 ...
(转载文章)如何愉悦起来:一位精神治疗师的见解 -
mandy_yanzi:
我都已经饿7天了坚持为了我的衣衣
身体健康的问题
# 操作系统 centos7.4
# 所谓套件,就是nginx,php7.2最新版本,mysql5.7,redis
这是查看centos版本的命令
cat /etc/redhat-release
# 设置centos的阿里镜像源。
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y wget epel-release
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y yum-utils
## 设置epel的阿里镜像源。
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum-config-manager --enable remi-php72
# 设置remi 的清华大学镜像源。
yum-config-manager --setopt=remi-php72.baseurl="https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php72/$basearch/" --save
yum-config-manager --setopt=remi-php56.baseurl="https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php56/$basearch/" --save
yum install -y nginx php72 redis zip unzip p7zip rsync crontabs vim supervisor
yum install -y php72-php-devel php72-php-fpm php72-php-mbstring php72-php-memcache php72-php-redis php72-php-mysqli php72-php-mysqlnd php72-php-pdo php72-php-bcmath php72-php-dom php72-php-gd php72-php-gmp php72-php-igbinary php72-php-imagick php72-php-mcrypt php72-php-pdo_mysql php72-php-posix php72-php-simplexml php72-php-opcache php72-php-xsl php72-php-xmlwriter php72-php-xmlreader php72-php-xml php72-php-swoole php72-php-zip php72-php-phalcon php72-php-yaml
ln -s /usr/bin/php72 /usr/bin/php
sed -i 's/user\ =\ apache/user\ =\ nginx/g' /etc/opt/remi/php72/php-fpm.d/www.conf
sed -i 's/group\ =\ apache/group\ =\ nginx/g' /etc/opt/remi/php72/php-fpm.d/www.conf
等效于
vi /etc/opt/remi/php72/php-fpm.d/www.conf
~~~
# user=apche, group=apache改成
user = nginx
group = nginx
~~~
echo "location ~ \.php\$ {root /usr/share/nginx/html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi_params;fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;}" > /etc/nginx/default.d/php.conf
等效于
vi /etc/nginx/default.d/php.conf
~~~
## enable php support ##
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
~~~
vi /usr/share/nginx/html/phpinfo.php
~~~
<?php
phpinfo();
~~~
systemctl enable php72-php-fpm.service
systemctl start php72-php-fpm
systemctl enable nginx.service
systemctl start nginx
systemctl enable redis
systemctl start redis
# 打开浏览器
http://127.0.0.1/phpinfo.php
# 下面一大段 mysql 5.7
wget http://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
yum install -y mysql57-community-release-el7-11.noarch.rpm
yum install -y mysql-community-server
systemctl start mysqld
# 这一步查看到初始密码
grep "password" /var/log/mysqld.log
# 这一步输入刚才的初始密码
mysql -uroot -p
# 以下语句在mysql的shell里执行,最后一句是设置密码
set global validate_password_policy=0;
set global validate_password_mixed_case_count=0;
set global validate_password_number_count=3;
set global validate_password_special_char_count=0;
set global validate_password_length=3;
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123');
# 下面这句话去除 mysql在yum仓库的记录,避免每次更新。
yum -y remove mysql57-community-release-el7-11.noarch
# 这句话查看mysql的安装配置
# mysql_config
systemctl stop mysqld
systemctl start mysqld
git 和composer
curl https://setup.ius.io | sh
yum remove -y git
yum install -y git2u
git config --global core.autocrlf false
git config --global core.safecrlf false
git config --global user.name 'test'
git config --global user.email 'test@qq.com'
curl -s http://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/
chmod a+x /usr/local/bin/composer.phar
ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://developer.aliyun.com/composer
=====================================================
关闭防火墙和Selinux
CentOS6
[root@node1 ~]#chkconfig iptables off
[root@node1 ~]#vi /etc/selinux/config
修改:SELINUX=disabled
CentOS7
[root@node1 ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@node1 ~]# systemctl stop firewalld
[root@node1 ~]# setenforce 0
[root@node1 ~]# vi /etc/selinux/config
SELINUX=disabled
配置iptables
yum install iptables-services
vim /etc/sysconfig/iptables
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
yum restart iptables
systemctl enable iptables
---------------------
更改镜像源
3.1 安装wget
[root@node1 ~]#yum install -y wget
3.2 下载aliyun的repo
[root@node1 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.3 更新镜像源
[root@node1 ~]#yum clean all
[root@node1 ~]#yum makecache
---------------------
参考
https://blog.csdn.net/chengyuqiang/article/details/55044073
# 所谓套件,就是nginx,php7.2最新版本,mysql5.7,redis
这是查看centos版本的命令
cat /etc/redhat-release
# 设置centos的阿里镜像源。
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y wget epel-release
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y yum-utils
## 设置epel的阿里镜像源。
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum-config-manager --enable remi-php72
# 设置remi 的清华大学镜像源。
yum-config-manager --setopt=remi-php72.baseurl="https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php72/$basearch/" --save
yum-config-manager --setopt=remi-php56.baseurl="https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/php56/$basearch/" --save
yum install -y nginx php72 redis zip unzip p7zip rsync crontabs vim supervisor
yum install -y php72-php-devel php72-php-fpm php72-php-mbstring php72-php-memcache php72-php-redis php72-php-mysqli php72-php-mysqlnd php72-php-pdo php72-php-bcmath php72-php-dom php72-php-gd php72-php-gmp php72-php-igbinary php72-php-imagick php72-php-mcrypt php72-php-pdo_mysql php72-php-posix php72-php-simplexml php72-php-opcache php72-php-xsl php72-php-xmlwriter php72-php-xmlreader php72-php-xml php72-php-swoole php72-php-zip php72-php-phalcon php72-php-yaml
ln -s /usr/bin/php72 /usr/bin/php
sed -i 's/user\ =\ apache/user\ =\ nginx/g' /etc/opt/remi/php72/php-fpm.d/www.conf
sed -i 's/group\ =\ apache/group\ =\ nginx/g' /etc/opt/remi/php72/php-fpm.d/www.conf
等效于
vi /etc/opt/remi/php72/php-fpm.d/www.conf
~~~
# user=apche, group=apache改成
user = nginx
group = nginx
~~~
echo "location ~ \.php\$ {root /usr/share/nginx/html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi_params;fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;}" > /etc/nginx/default.d/php.conf
等效于
vi /etc/nginx/default.d/php.conf
~~~
## enable php support ##
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
~~~
vi /usr/share/nginx/html/phpinfo.php
~~~
<?php
phpinfo();
~~~
systemctl enable php72-php-fpm.service
systemctl start php72-php-fpm
systemctl enable nginx.service
systemctl start nginx
systemctl enable redis
systemctl start redis
# 打开浏览器
http://127.0.0.1/phpinfo.php
# 下面一大段 mysql 5.7
wget http://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
yum install -y mysql57-community-release-el7-11.noarch.rpm
yum install -y mysql-community-server
systemctl start mysqld
# 这一步查看到初始密码
grep "password" /var/log/mysqld.log
# 这一步输入刚才的初始密码
mysql -uroot -p
# 以下语句在mysql的shell里执行,最后一句是设置密码
set global validate_password_policy=0;
set global validate_password_mixed_case_count=0;
set global validate_password_number_count=3;
set global validate_password_special_char_count=0;
set global validate_password_length=3;
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123');
# 下面这句话去除 mysql在yum仓库的记录,避免每次更新。
yum -y remove mysql57-community-release-el7-11.noarch
# 这句话查看mysql的安装配置
# mysql_config
systemctl stop mysqld
systemctl start mysqld
git 和composer
curl https://setup.ius.io | sh
yum remove -y git
yum install -y git2u
git config --global core.autocrlf false
git config --global core.safecrlf false
git config --global user.name 'test'
git config --global user.email 'test@qq.com'
curl -s http://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/
chmod a+x /usr/local/bin/composer.phar
ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://developer.aliyun.com/composer
=====================================================
关闭防火墙和Selinux
CentOS6
[root@node1 ~]#chkconfig iptables off
[root@node1 ~]#vi /etc/selinux/config
修改:SELINUX=disabled
CentOS7
[root@node1 ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@node1 ~]# systemctl stop firewalld
[root@node1 ~]# setenforce 0
[root@node1 ~]# vi /etc/selinux/config
SELINUX=disabled
配置iptables
yum install iptables-services
vim /etc/sysconfig/iptables
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
yum restart iptables
systemctl enable iptables
---------------------
更改镜像源
3.1 安装wget
[root@node1 ~]#yum install -y wget
3.2 下载aliyun的repo
[root@node1 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.3 更新镜像源
[root@node1 ~]#yum clean all
[root@node1 ~]#yum makecache
---------------------
参考
https://blog.csdn.net/chengyuqiang/article/details/55044073
发表评论
-
召唤神龙 - 安装 centos 8, php 8, mysql 8, laravel 8 的整套 php 运行环境
2020-11-27 16:26 768本文编写时间:2020-11-27 传说集齐龙珠可以召唤神 ... -
centos安装denyhost
2020-11-21 14:29 570安装denyhost 下面这个不知是否是官网。 https: ... -
centos8 使用阿里镜像快速安装php7.4套件
2020-11-15 00:48 946centos8 使用阿里镜像快速安装php7.4套件 本文只 ... -
centos7 使用阿里镜像快速安装php7.4套件
2020-11-15 00:32 1333本文只考虑centos7 今日 2020-11-16 rem ... -
win10 安装docker
2020-11-14 11:26 438首先,需到docker官网注册,有个账号和密码。 1.进入d ... -
rabbitmq的终端管理命令rabbitmqadmin
2020-11-13 17:03 1030启动rabbitmq systemctl start rab ... -
centos 安装 RabbitMQ
2020-11-11 14:40 575安装 erlang语言环境。 千万不要直接 yum inst ... -
composer常用命令
2020-11-05 14:46 1554列出当前全局配置 composer config -l -g ... -
期待centos8+php8 + mysql8 + laravel8,8888
2020-10-29 19:24 591期待centos8+php8 + mysql8 目前主要使用 ... -
ubuntu 安装 php7.4以及各类插件
2020-10-24 13:20 1201ubuntu 安装 php7.4以及各类插件 安装系统 最近 ... -
centos的证书配置
2020-06-09 20:32 1098用百度云,发现对其他https 的 网站访问时有时无。 排查 ... -
宝塔定义站点
2020-02-24 10:41 2宝塔定义站点。 1111111111111111111111 ... -
让php-fpm以root账号运行
2020-02-19 21:41 855一般来说,我们没有这种需求,但是当需要时, 可以让php-fp ... -
git常用命令
2020-02-03 15:27 407git常用命令 删除本地分支。 git branch -d ... -
shadowsocks 故障解决
2020-02-01 12:06 4972今天突然发现shadowsocks无法使用。 解决方案:修改服 ... -
将代码部署到coding.net
2020-01-10 14:20 700coding.net 是一个git仓库,有免费有收费。 首先 ... -
php部署工具deployer技巧 - vendor目录创建
2020-01-06 12:06 961deployer是个好东西,可是每次都composer ,其实 ... -
自定义redis多个实例
2020-01-04 01:17 676假如多个项目部署到同一台服务器,有时会被redis的各项目前缀 ... -
推荐使用php的部署工具 deployer
2020-01-03 16:48 960php部署代码可以使用 https://deployer.or ... -
使用composer 类库 cachetool 清除opcache 的缓存
2020-01-03 16:38 997php的生产服务器上,需要把opche打开。 但有时,会被缓 ...
相关推荐
win7修复本地系统工具
《自动化专业英语》04-Automatic-Detection-Block(自动检测模块).ppt
《计算机专业英语》chapter12-Intelligent-Transportation.ppt
内容概要:本文详细介绍了基于西门子S7-1200博图平台的3轴伺服螺丝机程序。该程序使用SCL语言编写,结合KTP700组态和TIA V14及以上版本,实现了对X、Y、Z三个轴的精密控制。文章首先概述了程序的整体架构,强调了其在自动化控制领域的高参考价值。接着深入探讨了关键代码片段,如轴初始化、运动控制以及主程序的设计思路。此外,还展示了如何通过KTP700组态实现人机交互,并分享了一些实用的操作技巧和技术细节,如状态机设计、HMI交互、异常处理等。 适用人群:从事自动化控制系统开发的技术人员,尤其是对西门子PLC编程感兴趣的工程师。 使用场景及目标:适用于希望深入了解西门子S7-1200博图平台及其SCL语言编程特点的学习者;旨在帮助读者掌握3轴伺服系统的具体实现方法,提高实际项目中的编程能力。 其他说明:文中提供的代码示例和设计理念不仅有助于理解和学习,还能直接应用于类似的实际工程项目中。
内容概要:本文详细探讨了五种非线性滤波器(卡尔曼滤波(KF)、扩展卡尔曼滤波(EKF)、无迹卡尔曼滤波(UKF)、粒子滤波(PF)和变维卡尔曼滤波(VDKF))在水下长基线定位(LBL)系统中的应用。通过对每种滤波器的具体实现进行MATLAB代码展示,分析了它们在不同条件下的优缺点。例如,KF适用于线性系统但在非线性环境中失效;EKF通过雅可比矩阵线性化处理非线性问题,但在剧烈机动时表现不佳;UKF利用sigma点处理非线性,精度较高但计算量大;PF采用蒙特卡罗方法,鲁棒性强但计算耗时;VDKF能够动态调整状态维度,适合信标数量变化的场景。 适合人群:从事水下机器人(AUV)导航研究的技术人员、研究生以及对非线性滤波感兴趣的科研工作者。 使用场景及目标:①理解各种非线性滤波器的工作原理及其在水下定位中的具体应用;②评估不同滤波器在特定条件下的性能,以便为实际项目选择合适的滤波器;③掌握MATLAB实现非线性滤波器的方法和技术。 其他说明:文中提供了详细的MATLAB代码片段,帮助读者更好地理解和实现这些滤波器。此外,还讨论了数值稳定性问题和一些实用技巧,如Cholesky分解失败的处理方法。
VMware-workstation-full-14.1.3-9474260
DeepSeek系列-提示词工程和落地场景.pdf
javaSE阶段面试题
《综合布线施工技术》第5章-综合布线工程测试.ppt
安川机器人NX100使用说明书.pdf
内容概要:本文详细介绍了将M7120型平面磨床的传统继电器控制系统升级为基于西门子S7-1200 PLC的自动化控制系统的过程。主要内容涵盖IO分配、梯形图设计和组态画面实现。通过合理的IO分配,确保了系统的可靠性和可维护性;梯形图设计实现了主控制逻辑、砂轮升降控制和报警逻辑等功能;组态画面则提供了友好的人机交互界面,便于操作和监控。此次改造显著提高了设备的自动化水平、运行效率和可靠性,降低了维护成本。 适合人群:从事工业自动化领域的工程师和技术人员,尤其是熟悉PLC编程和控制系统设计的专业人士。 使用场景及目标:适用于需要进行老旧设备升级改造的企业,旨在提高生产设备的自动化水平和可靠性,降低故障率和维护成本。具体应用场景包括但不限于金属加工行业中的平面磨床等设备的控制系统改造。 其他说明:文中还分享了一些实际调试中的经验和技巧,如急停逻辑的设计、信号抖动的处理方法等,有助于读者在类似项目中借鉴和应用。
chromedriver-linux64-136.0.7103.48.zip
IMG_20250421_180507.jpg
《网络营销策划实务》项目一-网络营销策划认知.ppt
Lianantech_Security-Vulnerabil_1744433229
MybatisCodeHelperNew2019.1-2023.1-3.4.1
【深度学习部署】基于Docker的BERT模型训练与API服务部署:实现代码复用与模型共享
摘 要 传统办法管理信息首先需要花费的时间比较多,其次数据出错率比较高,而且对错误的数据进行更改也比较困难,最后,检索数据费事费力。因此,在计算机上安装火车票订票系统软件来发挥其高效地信息处理的作用,可以规范信息管理流程,让管理工作可以系统化和程序化,同时,火车票订票系统的有效运用可以帮助管理人员准确快速地处理信息。 火车票订票系统在对开发工具的选择上也很慎重,为了便于开发实现,选择的开发工具为Eclipse,选择的数据库工具为Mysql。以此搭建开发环境实现火车票订票系统的功能。其中管理员管理用户,新闻公告。 火车票订票系统是一款运用软件开发技术设计实现的应用系统,在信息处理上可以达到快速的目的,不管是针对数据添加,数据维护和统计,以及数据查询等处理要求,火车票订票系统都可以轻松应对。 关键词:火车票订票系统;SpringBoot框架,系统分析,数据库设计
【ABB机器人】-00标准保养简介.pdf
最新校园跑腿小程序源码 多校版本,多模块,适合跑腿,外卖,表白,二手,快递等校园服务 此版本为独立版本,不需要微擎 直接放入就可以 需要自己准备好后台的服务器,已认证的小程序,备案的域名!