-
systemctl enable xxx 配置開(kāi)機(jī)自啟
-
systemctl restart xxx 重啟服務(wù)
1余寥、安裝openssh
yum install openssh-server
systemctl restart sshd
systemctl enable sshd.service
2悯森、安裝vsftpd(FTP上傳)
yum install -y vsftpd
systemctl start vsftpd.service
systemctl enable vsftpd.service
systemctl restart vsftpd.service
---
//配置
anonymous_enable=NO
local_umask=022
allow_ftpd_full_access
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
---
如何關(guān)閉Linux里邊的selinux ?(解決FlashFxp中文件var目錄不能查看問(wèn)題)
sestatus -v
vi /etc/sysconfig/selinux
SELINUX=disabled
---
更改var目錄及其子目錄為讀寫權(quán)限
chmod -R 777 /var
---
關(guān)閉防火墻
systemctl stop firewalld
下載FileZilla肥缔,開(kāi)源的FTP上傳工具
3汹来、安裝Apache Server
yum install httpd httpd-devel
systemctl restart httpd
systemctl enable httpd.service
4、安裝mariadb(MYSQL)
yum install mariadb-server mariadb
systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
systemctl enable mariadb
//修改mysql密碼
set password for'root'@'localhost' =password('password');
5收班、安裝php(7.0)
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
---
yum install php70w php70w-opcache
yum install yum-plugin-replace yum replace php-common --replace-with=php70w-common
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者