-
Centos,ubuntu,redhat,红旗 都是linux的发行版本查看全部
-
修改对应网卡网络信息: vi /etc/sysconfig/network-scripts/ifcfg-enp0s3查看全部
-
exit 退出当前用户 sudo su切换用户查看全部
-
编译安装软件步骤查看全部
-
编译安装的查看全部
-
nginx查看全部
-
linux安装软件方式两种 1.源安装,如:yum install 2.编译安装软件 编译安装软件步骤: 1.编译前准备工作:./configure 2.编译:make 3.安装:make install查看全部
-
apache的作用:监听端口/解析http请求/查看全部
-
PHP环境搭建查看全部
-
./configure make make install查看全部
-
./nginx -s reload 重启 459 nginx/sbin/nginx -t 检查有无错误 server { #侦听80端口 listen 80; #定义使用www.xx.com访问 server_name www.xx.com; #设定本虚拟主机的访问日志 access_log logs/www.xx.com.access.log main; #默认请求 location / { root /root; #定义服务器的默认网站根目录位置 index index.php index.html index.htm; #定义首页索引文件的名称 fastcgi_pass www.xx.com; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include /etc/nginx/fastcgi_params;查看全部
-
nginx php协同工作 cd /usr/local/php7/sbin/ sudo ./php-fpm cd ../etc/ sudo mv php-fpm.conf.default php-fpm.conf cd ../sbin/ ./php-fpm sudo vi /usr/local/php7/etc/php-fpm.conf cd ../etc/php-fpm.d/ sudo cp www.conf.default www.conf cd ../../sbin/ sudo ./php-fpm cd /usr/local/nginx/ cd conf/ sudo vi nginx.conf >>location ~ \.php { fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php; include /usr/local/nginx/conf/fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } cd ../html/ vi test.php >> <?php echo 'this is a php website';查看全部
-
wget https://nginx.org/download/nginx-1.10.1.tar.gz tar -zxvf nginx-1.10.1.tar.gz cd nginx-1.10.1 ./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.38/ make &&sudo make install cd /usr/local/nginx/sbin/ ps -aux |grep httpd sudo kill -9 22853 杀掉apache进程 sudo ./nginx查看全部
-
wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.23.tar.gz tar -zxf httpd-2.4.23.tar.gz wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.5.2.tar.gz wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.5.4.tar.gz tar -zxf apr-1.5.2.tar.gz tar -zxf apr-util-1.5.4.tar.gz mv apr-1.5.2 apr mv apr-util-1.5.4 apr-util mv apr apr-util httpd-2.4.23/srclib/ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz tar -zxf pcre-8.38.tar.gz&&cd pcre-8.38 ./configure --prefix=/usr/local/pcre-8.38 make &&sudo make install cd ../httpd-2.4.23 ./configure --prefix=/usr/local/apache -with-pcre=/usr/local/pcre-8.38/bin/pcre-config -with-included-apr make &&sudo make install cd /usr/local/apache/bin/ sudo ./apachectl -k start查看全部
-
yum install -y cmake gcc-c++ ncurses-devel perl-Data-Dumper boost boost-doc boost-devel 安装依赖 wget MySQL-5.5 1G内存mysql源码包 tar -zxf mysql-5.5.53.tar.gz&&cd mysql-5.5.53 cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DWITH_MY ISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci -DWITH_READLINE=1 -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 make &&sudo make install cd support-files/ cp my-medium.cnf /etc/my.cnf groupadd mysql useradd -s /sbin/nologin -M -g mysql mysql chown -R mysql:mysql /usr/local/mysql /usr/local/mysql/scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql sudo /usr/local/mysql/support-files/mysql.server start --skip-grant-tables /usr/local/mysql/bin/mysql -u root mysql /usr/local/mysql/bin/mysql -u root -p查看全部
举报
0/150
提交
取消