当前位置: 首页 > news >正文

网站建设目标和功能介绍广告代运营公司

网站建设目标和功能介绍,广告代运营公司,全屋定制十大品牌,吉林seo排名公司Aidux阉割版Debain10,坑很多,比如找不到实际的系统日志,有知道的大神吗? 1 Apache2安装 # 测试Apache2 sudo apt update && sudo apt upgrade sudo apt install apache2 -y80端口疑似被禁止只能换端口 rootlocalhost:/…

Aidux阉割版Debain10,坑很多,比如找不到实际的系统日志,有知道的大神吗?

1 Apache2安装

# 测试Apache2  
sudo apt update && sudo apt upgrade
sudo apt install apache2 -y

80端口疑似被禁止只能换端口

root@localhost:/home# /etc/init.d/apache2 start
[....] Starting Apache httpd web server: apache2/usr/sbin/apache2ctl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
. ok
 

# 80端口疑似被禁止只能换端口
# 修改 /etc/apache2/ports.conf 将 Listen 80 改为自己需要的端口,如 Listen 9321

vim /etc/apache2/ports.conf 

 # 修改/etc/apache2/sites-enabled/000-default.conf 将第一行的
# <VirtualHost *:80> 改为自己需要的端口<VirtualHost *:9321>

vim /etc/apache2/sites-enabled/000-default.conf 

# 在document打开文件 /etc/apache2/apache2.conf
# 在最后添加:ServerName localhost:9321 

vim /etc/apache2/apache2.conf
apachectl start
apachectl restart
#几种不同写法
# service apache2 restart
# apachectl start
# apachectl restart
# /etc/init.d/apache2 start

root@localhost:/home# apachectl start

/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
httpd (pid 22631) already running
root@localhost:/home# apachectl restart
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
 

 成功打开 

2 Nextcloud部署 

参考Example installation on Ubuntu 22.04 LTS — Nextcloud latest Administration Manual latest documentation

安装包zip上传到/var/www

Index of /server/releases (nextcloud.com)

sudo apt install unzip
cd /var/www/
unzip -q nextcloud-29.0.2.zip
sudo apt install mariadb-server libapache2-mod-php php-gd php-mysql \
php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip -y

2.1 php8.x

现版本只支持php8.x以上的

sudo apt update
sudo apt-get install ca-certificates apt-transport-https software-properties-common -yecho "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.listwget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -sudo apt-get update -y

 如果装错了版本,这将卸载所有以php7.3开头的包,包括php7.3-commonphp7.3-cli

sudo apt-get remove `dpkg -l | grep php7.3 | awk '{print $2}'`

2.2 Mysql安装

# 此处SSH远端会报错要重启APP
sudo apt install mlocate libapache2-mod-php mariadb-client mariadb-server wget unzip bzip2 curl php php-common php-curl php-gd php-mbstring php-mysql php-xml php-zip php-intl php-apcu php-redis php-http-request -y

 启动MySQL

service mysql start
sudo mysql -u root -p
CREATE USER '账号'@'localhost' IDENTIFIED BY '密码';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO '账号'@'localhost';
FLUSH PRIVILEGES;
quit;

hass@m 2 

mkdir /var/www/html/nextcloud/data
# 最后,将Nextcloud目录的所有权更改为HTTP 用户:
cd /var/www/
sudo chown -Rfv www-data:www-data /var/www/nextcloud

 再看看

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bak

sudo vim /etc/apache2/sites-available/000-default.conf

<VirtualHost *:9321>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/nextcloud
Alias /nextcloud "/var/www/nextcloud/"<Directory "/var/www/nextcloud/">
Options +FollowSymlinks
AllowOverride All<IfModule mod_dav.c>
Dav off
</IfModule>Require all grantedSetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>ErrorLog ${APACHE_LOG_DIR}/nextcloud_error_log
CustomLog ${APACHE_LOG_DIR}/nextcloud_access_log common
</VirtualHost>

root@localhost:/home# apachectl start
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
root@localhost:/home# apachectl restart
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
httpd not running, trying to start
root@localhost:/home# /etc/init.d/apache2 start
[ ok ] Starting Apache httpd web server: apache2.
root@localhost:/home# apachectl status
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
/usr/sbin/apachectl: line 113: www-browser: command not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
root@localhost:/home#

离奇又打不开了,欢迎赐教

http://www.hkea.cn/news/936385/

相关文章:

  • 山东做网站的公司seo数据分析哪些方面
  • 做网站用哪几个端口 比较好百度贴吧官网网页
  • 弹幕网站是怎么做的百度在线翻译
  • 独立网站域名代发关键词包收录
  • 如何建立门户网站百度可以发布广告吗
  • 网站开发毕设文献郑州网站优化顾问
  • 青海建设银行的官方网站自己制作网页的网站
  • 网站建设的图片叠加步骤过程2021年搜索引擎排名
  • 网站链接到邮箱怎么做搜索引擎推广试题
  • 十堰城市建设网站制作自己的网站
  • 传媒网站建设公司深圳百度seo优化
  • 公司需要网站 该怎么做公司推广咨询
  • 高中男女做那个视频网站seo做的好的网站
  • 网站建设 摄影服务上海seo网站排名优化公司
  • 网页设计中html代码seo博客网站
  • 怎样建设小游戏网站google关键词搜索技巧
  • 淘宝 客要推广网站怎么做全媒体广告代理
  • 那个b2b网站可以做外贸武汉全网推广
  • 深圳css3网站开发多少钱如何策划一个营销方案
  • 织梦统计网站访问量代码网络营销公司如何建立
  • 外贸营销型网站建设今日最新重大新闻
  • 个性化定制网站长春网络推广优化
  • 合肥庐阳区疫情最新消息seo优化首页
  • h5网站制作接单最新中高风险地区名单
  • 北京市住房城乡建设委网站公司怎么在网上推广
  • 网站建设首页怎样插入视频百度指数在线查询小程序
  • 青州网站制作哪家好aso优化哪家好
  • wordpress做网站优点郑州网站seo优化
  • 宝安做棋牌网站建设找哪家公司好湖南长沙疫情最新消息
  • 四川专业网站建设中国十大企业培训机构排名